Comparing version 0.18.5 to 0.18.7
User-visible changes in SES: | ||
# v0.18.6 (2023-08-07) | ||
- Censors the pattern `{...import(specifier)`}. | ||
We previously censored `import(specifier)` and expressly allowed | ||
`object.import(specifier)`. | ||
The relaxation for the latter form in version 0.13.0 inadvertently allowed | ||
import with the spread operator. | ||
# v0.18.5 (2023-07-14) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "ses", | ||
"version": "0.18.5", | ||
"version": "0.18.7", | ||
"description": "Hardened JavaScript for Fearless Cooperation", | ||
@@ -63,7 +63,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@endo/env-options": "^0.1.1" | ||
"@endo/env-options": "^0.1.3" | ||
}, | ||
"devDependencies": { | ||
"@endo/compartment-mapper": "^0.8.5", | ||
"@endo/static-module-record": "^0.7.20", | ||
"@endo/compartment-mapper": "^0.9.1", | ||
"@endo/static-module-record": "^0.8.1", | ||
"@endo/test262-runner": "^0.1.32", | ||
@@ -74,3 +74,3 @@ "ava": "^5.3.0", | ||
"core-js": "^3.31.0", | ||
"eslint": "^8.44.0", | ||
"eslint": "^8.46.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
@@ -184,3 +184,3 @@ "eslint-config-prettier": "^8.8.0", | ||
}, | ||
"gitHead": "106da55b8bcea3067f70c29c357806f3f2e55c52" | ||
"gitHead": "b38361616f968415291b089dcca75cc4a2672a35" | ||
} |
@@ -6,4 +6,9 @@ // @ts-check | ||
String, | ||
isArray, | ||
arrayJoin, | ||
arraySlice, | ||
arraySort, | ||
arrayMap, | ||
keys, | ||
fromEntries, | ||
freeze, | ||
@@ -124,3 +129,22 @@ is, | ||
} | ||
return val; | ||
if (isArray(val)) { | ||
return val; | ||
} | ||
const names = keys(val); | ||
if (names.length < 2) { | ||
return val; | ||
} | ||
let sorted = true; | ||
for (let i = 1; i < names.length; i += 1) { | ||
if (names[i - 1] >= names[i]) { | ||
sorted = false; | ||
break; | ||
} | ||
} | ||
if (sorted) { | ||
return val; | ||
} | ||
arraySort(names); | ||
const entries = arrayMap(names, name => [name, val[name]]); | ||
return fromEntries(entries); | ||
} | ||
@@ -127,0 +151,0 @@ case 'function': { |
@@ -855,2 +855,3 @@ /* eslint-disable no-restricted-globals */ | ||
global: getter, | ||
hasIndices: getter, | ||
ignoreCase: getter, | ||
@@ -868,8 +869,6 @@ '@@match': fn, | ||
unicode: getter, | ||
unicodeSets: getter, | ||
// Annex B: Additional Properties of the RegExp.prototype Object | ||
compile: false, // UNSAFE and suppressed. | ||
// Seen on FF Nightly 88.0a1, Chrome Canary 91.0.4446.0, | ||
// Safari Tech Preview Release 122 (Safari 14.2, WebKit 16612.1.6.2) | ||
hasIndices: false, | ||
}, | ||
@@ -876,0 +875,0 @@ |
@@ -109,3 +109,3 @@ // @ts-check | ||
const importPattern = new FERAL_REG_EXP( | ||
'(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))', | ||
'(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))', | ||
'g', | ||
@@ -112,0 +112,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
3020291
64795
Updated@endo/env-options@^0.1.3