File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 63
63
"@types/type-is" : " ^1.6.7" ,
64
64
"beautify-benchmark" : " ^0.2.4" ,
65
65
"benchmark" : " ^2.1.4" ,
66
- "egg" : " ^4.0.1 " ,
66
+ "egg" : " ^4.0.4 " ,
67
67
"egg-view-nunjucks" : " ^2.3.0" ,
68
68
"eslint" : " 8" ,
69
69
"eslint-config-egg" : " 14" ,
111
111
" src"
112
112
],
113
113
"types" : " ./dist/commonjs/index.d.ts" ,
114
- "main" : " ./dist/commonjs/index.js"
114
+ "main" : " ./dist/commonjs/index.js" ,
115
+ "module" : " ./dist/esm/index.js"
115
116
}
Original file line number Diff line number Diff line change @@ -270,9 +270,12 @@ export default class SecurityContext extends Context {
270
270
271
271
declare module '@eggjs/core' {
272
272
interface Context {
273
+ // @ts -ignore
273
274
get securityOptions ( ) : Partial < SecurityConfig & SecurityHelperConfig > ;
274
275
isSafeDomain ( domain : string , customWhiteList ?: string [ ] ) : boolean ;
276
+ // @ts -ignore
275
277
get nonce ( ) : string ;
278
+ // @ts -ignore
276
279
get csrf ( ) : string ;
277
280
ensureCsrfSecret ( rotate ?: boolean ) : void ;
278
281
rotateCsrfSecret ( ) : void ;
You can’t perform that action at this time.
0 commit comments