egg 3.9.2 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -1
- package/package.json +5 -2
package/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import accepts = require('accepts');
|
|
3
2
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
4
3
|
import { EventEmitter } from 'events'
|
|
@@ -505,6 +504,11 @@ declare module 'egg' {
|
|
|
505
504
|
noopen: { enable: boolean; }
|
|
506
505
|
xssProtection: any;
|
|
507
506
|
csp: any;
|
|
507
|
+
ssrf: {
|
|
508
|
+
ipBlackList: string[];
|
|
509
|
+
ipExceptionList: string[];
|
|
510
|
+
checkAddress(ip: string): boolean;
|
|
511
|
+
};
|
|
508
512
|
};
|
|
509
513
|
|
|
510
514
|
siteFile: PlainObject<string | Buffer>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egg",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"tag": "latest"
|
|
6
6
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"delegates": "^1.0.0",
|
|
29
29
|
"egg-cluster": "^2.0.0",
|
|
30
30
|
"egg-cookies": "^2.6.1",
|
|
31
|
-
"egg-core": "^
|
|
31
|
+
"egg-core": "^5.1.1",
|
|
32
32
|
"egg-development": "^2.7.0",
|
|
33
33
|
"egg-errors": "^2.3.1",
|
|
34
34
|
"egg-i18n": "^2.1.1",
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
"ylru": "^1.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
+
"@eggjs/tsconfig": "^1.1.0",
|
|
63
|
+
"@types/node": "^18.11.18",
|
|
62
64
|
"@umijs/preset-react": "^2.1.6",
|
|
63
65
|
"address": "^1.2.1",
|
|
64
66
|
"antd": "^4.23.2",
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
"pedding": "^1.1.0",
|
|
83
85
|
"prettier": "^2.7.1",
|
|
84
86
|
"runscript": "^1.5.3",
|
|
87
|
+
"sdk-base": "^4.2.1",
|
|
85
88
|
"spy": "^1.0.0",
|
|
86
89
|
"supertest": "^6.2.4",
|
|
87
90
|
"ts-node": "^10.9.1",
|