ses 0.13.4 → 0.13.5
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/NEWS.md +9 -1
- package/dist/lockdown.cjs +1 -1
- package/dist/lockdown.mjs +1 -1
- package/dist/lockdown.umd.js +1 -1
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +1 -1
- package/dist/ses.mjs +1 -1
- package/dist/ses.umd.js +1 -1
- package/dist/ses.umd.min.js +1 -1
- package/package.json +2 -3
- package/src/transforms.js +4 -1
- package/CHANGELOG.md +0 -155
package/NEWS.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
-
# 0.
|
|
3
|
+
# 0.13.5 (2021-08-07)
|
|
4
|
+
|
|
5
|
+
- Censors the pattern `{...import(specifier)`}.
|
|
6
|
+
We previously censored `import(specifier)` and expressly allowed
|
|
7
|
+
`object.import(specifier)`.
|
|
8
|
+
The relaxation for the latter form in version 0.13.0 inadvertently allowed
|
|
9
|
+
import with the spread operator.
|
|
10
|
+
|
|
11
|
+
# 0.13.4 (2021-06-19)
|
|
4
12
|
|
|
5
13
|
- Adds more TypeScript definitions, importable with `/// <reference
|
|
6
14
|
types="ses"/>`, covering `harden`, `lockdown`, `assert`, and `Compartment`,
|
package/dist/lockdown.cjs
CHANGED
|
@@ -3394,7 +3394,7 @@ const htmlCommentPattern = new RegExp(`(?:${'<'}!--|--${'>'})`, 'g');
|
|
|
3394
3394
|
* @returns { string }
|
|
3395
3395
|
*/const evadeHtmlCommentTest = (src) => {const replaceFn = (match) => match[0] === '<' ? '< ! --' : '-- >';return src.replace(htmlCommentPattern, replaceFn);}; // /////////////////////////////////////////////////////////////////////////////
|
|
3396
3396
|
$h_once.evadeHtmlCommentTest(evadeHtmlCommentTest); // /////////////////////////////////////////////////////////////////////////////
|
|
3397
|
-
const importPattern = new RegExp('(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))', 'g'); /**
|
|
3397
|
+
const importPattern = new RegExp('(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))', 'g'); /**
|
|
3398
3398
|
* Conservatively reject the source text if it may contain a dynamic
|
|
3399
3399
|
* import expression. To reject without parsing, `rejectImportExpressions` will
|
|
3400
3400
|
* also reject some other text as well.
|
package/dist/lockdown.mjs
CHANGED
|
@@ -3394,7 +3394,7 @@ const htmlCommentPattern = new RegExp(`(?:${'<'}!--|--${'>'})`, 'g');
|
|
|
3394
3394
|
* @returns { string }
|
|
3395
3395
|
*/const evadeHtmlCommentTest = (src) => {const replaceFn = (match) => match[0] === '<' ? '< ! --' : '-- >';return src.replace(htmlCommentPattern, replaceFn);}; // /////////////////////////////////////////////////////////////////////////////
|
|
3396
3396
|
$h_once.evadeHtmlCommentTest(evadeHtmlCommentTest); // /////////////////////////////////////////////////////////////////////////////
|
|
3397
|
-
const importPattern = new RegExp('(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))', 'g'); /**
|
|
3397
|
+
const importPattern = new RegExp('(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))', 'g'); /**
|
|
3398
3398
|
* Conservatively reject the source text if it may contain a dynamic
|
|
3399
3399
|
* import expression. To reject without parsing, `rejectImportExpressions` will
|
|
3400
3400
|
* also reject some other text as well.
|
package/dist/lockdown.umd.js
CHANGED
|
@@ -3394,7 +3394,7 @@ const htmlCommentPattern = new RegExp(`(?:${'<'}!--|--${'>'})`, 'g');
|
|
|
3394
3394
|
* @returns { string }
|
|
3395
3395
|
*/const evadeHtmlCommentTest = (src) => {const replaceFn = (match) => match[0] === '<' ? '< ! --' : '-- >';return src.replace(htmlCommentPattern, replaceFn);}; // /////////////////////////////////////////////////////////////////////////////
|
|
3396
3396
|
$h_once.evadeHtmlCommentTest(evadeHtmlCommentTest); // /////////////////////////////////////////////////////////////////////////////
|
|
3397
|
-
const importPattern = new RegExp('(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))', 'g'); /**
|
|
3397
|
+
const importPattern = new RegExp('(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))', 'g'); /**
|
|
3398
3398
|
* Conservatively reject the source text if it may contain a dynamic
|
|
3399
3399
|
* import expression. To reject without parsing, `rejectImportExpressions` will
|
|
3400
3400
|
* also reject some other text as well.
|