Skip to content

Commit 66c114b

Browse files
committed
fix: ignore duplicate identifier
1 parent 58f097a commit 66c114b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@types/type-is": "^1.6.7",
6464
"beautify-benchmark": "^0.2.4",
6565
"benchmark": "^2.1.4",
66-
"egg": "^4.0.1",
66+
"egg": "^4.0.4",
6767
"egg-view-nunjucks": "^2.3.0",
6868
"eslint": "8",
6969
"eslint-config-egg": "14",
@@ -111,5 +111,6 @@
111111
"src"
112112
],
113113
"types": "./dist/commonjs/index.d.ts",
114-
"main": "./dist/commonjs/index.js"
114+
"main": "./dist/commonjs/index.js",
115+
"module": "./dist/esm/index.js"
115116
}

src/app/extend/context.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,12 @@ export default class SecurityContext extends Context {
270270

271271
declare module '@eggjs/core' {
272272
interface Context {
273+
// @ts-ignore
273274
get securityOptions(): Partial<SecurityConfig & SecurityHelperConfig>;
274275
isSafeDomain(domain: string, customWhiteList?: string[]): boolean;
276+
// @ts-ignore
275277
get nonce(): string;
278+
// @ts-ignore
276279
get csrf(): string;
277280
ensureCsrfSecret(rotate?: boolean): void;
278281
rotateCsrfSecret(): void;

0 commit comments

Comments
 (0)