-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathpackage.json
115 lines (115 loc) · 2.72 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "@eggjs/security",
"version": "4.0.0",
"publishConfig": {
"access": "public"
},
"description": "security plugin in egg framework",
"eggPlugin": {
"name": "security",
"optionalDependencies": [
"session"
],
"exports": {
"import": "./dist/esm",
"require": "./dist/commonjs",
"typescript": "./src"
}
},
"keywords": [
"egg",
"eggPlugin",
"egg-plugin",
"security"
],
"repository": {
"type": "git",
"url": "git+https://github.com/eggjs/security.git"
},
"bugs": {
"url": "https://github.com/eggjs/egg/issues"
},
"homepage": "https://github.com/eggjs/security#readme",
"author": "jtyjty99999",
"license": "MIT",
"engines": {
"node": ">= 18.19.0"
},
"dependencies": {
"@eggjs/core": "^6.2.13",
"@eggjs/ip": "^2.1.0",
"csrf": "^3.0.6",
"egg-path-matching": "^2.1.0",
"escape-html": "^1.0.3",
"extend": "^3.0.1",
"koa-compose": "^4.1.0",
"matcher": "^4.0.0",
"nanoid": "^3.3.8",
"type-is": "^1.6.18",
"xss": "^1.0.3",
"zod": "^3.24.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@eggjs/bin": "7",
"@eggjs/mock": "^6.0.5",
"@eggjs/supertest": "^8.2.0",
"@eggjs/tsconfig": "1",
"@types/escape-html": "^1.0.4",
"@types/extend": "^3.0.4",
"@types/koa-compose": "^3.2.8",
"@types/mocha": "10",
"@types/node": "22",
"@types/type-is": "^1.6.7",
"beautify-benchmark": "^0.2.4",
"benchmark": "^2.1.4",
"egg": "^4.0.1",
"egg-view-nunjucks": "^2.3.0",
"eslint": "8",
"eslint-config-egg": "14",
"rimraf": "6",
"snap-shot-it": "^7.9.10",
"spy": "^1.0.0",
"supertest": "^6.3.3",
"tshy": "3",
"tshy-after": "1",
"typescript": "5"
},
"scripts": {
"lint": "eslint --cache src test --ext .ts",
"pretest": "npm run clean && npm run lint -- --fix",
"test": "egg-bin test",
"test:snapshot:update": "SNAPSHOT_UPDATE=1 egg-bin test",
"preci": "npm run clean && npm run lint",
"ci": "egg-bin cov",
"postci": "npm run prepublishOnly && npm run clean",
"clean": "rimraf dist",
"prepublishOnly": "tshy && tshy-after && attw --pack"
},
"type": "module",
"tshy": {
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
}
},
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
},
"./package.json": "./package.json"
},
"files": [
"dist",
"src"
],
"types": "./dist/commonjs/index.d.ts",
"main": "./dist/commonjs/index.js"
}