File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ export const ALLOW_MODALS = "allow-modals";
5
5
export const ALLOW_ORIENTATION_LOCK = "allow-orientation-lock" ;
6
6
export const ALLOW_POINTER_LOCK = "allow-pointer-lock" ;
7
7
export const ALLOW_POPUPS = "allow-popups" ;
8
- export const ALLOW_POPUPS_TO_ESACPE_SANDBOX = "allow-popups-to-escape-sandbox" ;
8
+ export const ALLOW_POPUPS_TO_ESCAPE_SANDBOX = "allow-popups-to-escape-sandbox" ;
9
+ /**
10
+ * @deprecated
11
+ */
12
+ export const ALLOW_POPUPS_TO_ESACPE_SANDBOX = ALLOW_POPUPS_TO_ESCAPE_SANDBOX ;
9
13
export const ALLOW_PRESENTATION = "allow-presentation" ;
10
14
export const ALLOW_SAME_ORIGIN = "allow-same-origin" ;
11
15
export const ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION = "allow-storage-access-by-user-activation" ;
Original file line number Diff line number Diff line change 6
6
ALLOW_ORIENTATION_LOCK ,
7
7
ALLOW_POINTER_LOCK ,
8
8
ALLOW_POPUPS ,
9
- ALLOW_POPUPS_TO_ESACPE_SANDBOX ,
9
+ ALLOW_POPUPS_TO_ESCAPE_SANDBOX ,
10
10
ALLOW_PRESENTATION ,
11
11
ALLOW_SAME_ORIGIN ,
12
12
ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION ,
@@ -48,7 +48,7 @@ export type CSPPresetsArray = Partial<CSPDirectives>[];
48
48
49
49
type TSource = string ;
50
50
type TNonce = `nonce-${string } `;
51
- type THash = `sha-${string } `;
51
+ type THash = `sha${ '256' | '384' | '512' } -${string } `;
52
52
type TMimeType = `${string } /${string } `;
53
53
54
54
type TFetchDirective = TSource |
@@ -111,7 +111,7 @@ export type CSPDirectives = {
111
111
typeof ALLOW_ORIENTATION_LOCK |
112
112
typeof ALLOW_POINTER_LOCK |
113
113
typeof ALLOW_POPUPS |
114
- typeof ALLOW_POPUPS_TO_ESACPE_SANDBOX |
114
+ typeof ALLOW_POPUPS_TO_ESCAPE_SANDBOX |
115
115
typeof ALLOW_PRESENTATION |
116
116
typeof ALLOW_SAME_ORIGIN |
117
117
typeof ALLOW_SCRIPTS |
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export {
17
17
ALLOW_ORIENTATION_LOCK ,
18
18
ALLOW_POINTER_LOCK ,
19
19
ALLOW_POPUPS ,
20
+ ALLOW_POPUPS_TO_ESCAPE_SANDBOX ,
20
21
ALLOW_POPUPS_TO_ESACPE_SANDBOX ,
21
22
ALLOW_PRESENTATION ,
22
23
ALLOW_SAME_ORIGIN ,
You can’t perform that action at this time.
0 commit comments