Comparing version 0.13.2 to 0.13.3
@@ -6,2 +6,11 @@ # Change Log | ||
### [0.13.3](https://github.com/endojs/endo/compare/ses@0.13.2...ses@0.13.3) (2021-06-16) | ||
### Features | ||
* **ses:** Improve link errors ([71a509c](https://github.com/endojs/endo/commit/71a509cd67305b5af60d66f0b2b600ed0df8b632)) | ||
### [0.13.2](https://github.com/endojs/endo/compare/ses@0.13.1...ses@0.13.2) (2021-06-14) | ||
@@ -8,0 +17,0 @@ |
User-visible changes in SES: | ||
# Next version | ||
- Adds descriptive detail to module system link error messages and fixes the | ||
reported exports for one. | ||
# 0.2.1 (2021-06-05) | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "ses", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"description": "Secure ECMAScript", | ||
@@ -45,6 +45,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@endo/compartment-mapper": "^0.3.2", | ||
"@endo/eslint-config": "^0.3.9", | ||
"@endo/static-module-record": "^0.5.2", | ||
"@endo/test262-runner": "^0.1.3", | ||
"@endo/compartment-mapper": "^0.4.0", | ||
"@endo/eslint-config": "^0.3.10", | ||
"@endo/static-module-record": "^0.5.3", | ||
"@endo/test262-runner": "^0.1.4", | ||
"ava": "^3.12.1", | ||
@@ -92,3 +92,3 @@ "babel-eslint": "^10.0.3", | ||
}, | ||
"gitHead": "68cb467c5be67d84ea8f980076c3407365213854" | ||
"gitHead": "f91c84cde6cfe82c085ebe316da939d04ca74aa4" | ||
} |
@@ -54,3 +54,6 @@ /* eslint no-underscore-dangle: ["off"] */ | ||
function validatePrecompiledStaticModuleRecord(staticModuleRecord) { | ||
function validatePrecompiledStaticModuleRecord( | ||
staticModuleRecord, | ||
moduleSpecifier, | ||
) { | ||
const { __fixedExportMap__, __liveExportMap__ } = staticModuleRecord; | ||
@@ -61,3 +64,3 @@ assert( | ||
__fixedExportMap__, | ||
)}`, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
@@ -68,3 +71,3 @@ assert( | ||
__liveExportMap__, | ||
)}`, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
@@ -77,3 +80,6 @@ } | ||
function validateThirdPartyStaticModuleRecord(staticModuleRecord) { | ||
function validateThirdPartyStaticModuleRecord( | ||
staticModuleRecord, | ||
moduleSpecifier, | ||
) { | ||
const { exports } = staticModuleRecord; | ||
@@ -84,7 +90,7 @@ assert( | ||
exports, | ||
)}`, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
} | ||
function validateStaticModuleRecord(staticModuleRecord) { | ||
function validateStaticModuleRecord(staticModuleRecord, moduleSpecifier) { | ||
assert( | ||
@@ -94,3 +100,3 @@ isObject(staticModuleRecord), | ||
staticModuleRecord, | ||
)}`, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
@@ -102,3 +108,3 @@ const { imports, exports, reexports = [] } = staticModuleRecord; | ||
imports, | ||
)}`, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
@@ -108,4 +114,4 @@ assert( | ||
`Property 'exports' of a precompiled module record must be an array, got ${q( | ||
reexports, | ||
)}`, | ||
exports, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
@@ -116,3 +122,3 @@ assert( | ||
reexports, | ||
)}`, | ||
)}, for module ${q(moduleSpecifier)}`, | ||
); | ||
@@ -139,3 +145,3 @@ } | ||
validateStaticModuleRecord(staticModuleRecord); | ||
validateStaticModuleRecord(staticModuleRecord, moduleSpecifier); | ||
@@ -145,3 +151,3 @@ const importedInstances = new Map(); | ||
if (isPrecompiled(staticModuleRecord)) { | ||
validatePrecompiledStaticModuleRecord(staticModuleRecord); | ||
validatePrecompiledStaticModuleRecord(staticModuleRecord, moduleSpecifier); | ||
moduleInstance = makeModuleInstance( | ||
@@ -154,3 +160,3 @@ compartmentPrivateFields, | ||
} else if (isThirdParty(staticModuleRecord)) { | ||
validateThirdPartyStaticModuleRecord(staticModuleRecord); | ||
validateThirdPartyStaticModuleRecord(staticModuleRecord, moduleSpecifier); | ||
moduleInstance = makeThirdPartyModuleInstance( | ||
@@ -157,0 +163,0 @@ compartmentPrivateFields, |
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
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
2793927
55162