Skip to content

Commit

Permalink
fix: remove duplicate identifier ssrf (#5113)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Jan 3, 2023
1 parent cd29bfb commit 2b407eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 1 addition & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ declare module 'egg' {
csrf: any;
ssrf: {
ipBlackList: string[];
ipExceptionList: string[];
checkAddress?(ip: string): boolean;
};
xframe: {
Expand All @@ -504,11 +505,6 @@ declare module 'egg' {
noopen: { enable: boolean; }
xssProtection: any;
csp: any;
ssrf: {
ipBlackList: string[];
ipExceptionList: string[];
checkAddress(ip: string): boolean;
};
};

siteFile: PlainObject<string | Buffer>;
Expand Down
1 change: 1 addition & 0 deletions index.test-d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '.';
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"spy": "^1.0.0",
"supertest": "^6.2.4",
"ts-node": "^10.9.1",
"tsd": "^0.25.0",
"typescript": "^4.8.3",
"umi": "^3.5.36"
},
Expand All @@ -107,11 +108,12 @@
],
"scripts": {
"lint": "eslint app config lib test *.js",
"test": "npm run lint -- --fix && egg-bin pkgfiles && npm run test-local",
"tsd": "tsd",
"test": "npm run lint -- --fix && npm run tsd && npm run test-local",
"test-local": "egg-bin test",
"test-local-changed": "egg-bin test --changed",
"cov": "egg-bin cov --timeout 100000",
"ci": "npm run lint && egg-bin pkgfiles --check && npm run cov",
"ci": "npm run lint && npm run tsd && npm run cov",
"site:dev": "APP_ROOT=./site dumi dev",
"site:build": "APP_ROOT=./site dumi build",
"site:prettier": "prettier --config site/.prettierrc --ignore-path site/.prettierignore --write \"site/**/*.{js,jsx,tsx,ts,less,md,json}\"",
Expand Down

0 comments on commit 2b407eb

Please sign in to comment.