@endo/static-module-record
Advanced tools
Comparing version 0.8.2 to 1.0.0
{ | ||
"name": "@endo/static-module-record", | ||
"version": "0.8.2", | ||
"version": "1.0.0", | ||
"description": "Shim for the SES StaticModuleRecord and module-to-program transformer", | ||
@@ -29,7 +29,7 @@ "keywords": [ | ||
"build": "exit 0", | ||
"prepack": "tsc --build jsconfig.build.json", | ||
"postpack": "git clean -f '*.d.ts*'", | ||
"build:types": "tsc --build tsconfig.build.json", | ||
"clean:types": "git clean -f '*.d.ts*'", | ||
"cover": "c8 ava", | ||
"lint": "yarn lint:types && yarn lint:js", | ||
"lint:types": "tsc -p jsconfig.json", | ||
"lint:types": "tsc", | ||
"lint:js": "eslint .", | ||
@@ -41,9 +41,9 @@ "lint-fix": "eslint --fix .", | ||
"@agoric/babel-generator": "^7.17.6", | ||
"@babel/parser": "^7.17.3", | ||
"@babel/traverse": "^7.17.3", | ||
"@babel/types": "^7.17.0", | ||
"ses": "^0.18.8" | ||
"@babel/parser": "^7.23.6", | ||
"@babel/traverse": "^7.23.6", | ||
"@babel/types": "^7.23.6", | ||
"ses": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@endo/ses-ava": "^0.2.44", | ||
"@endo/ses-ava": "^1.0.0", | ||
"ava": "^5.3.0", | ||
@@ -57,3 +57,3 @@ "babel-eslint": "^10.0.3", | ||
"eslint-plugin-eslint-comments": "^3.1.2", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-import": "^2.29.0", | ||
"prettier": "^3.0.0", | ||
@@ -83,3 +83,6 @@ "typescript": "~5.2.2" | ||
}, | ||
"gitHead": "9c779d317c4b02133172dbe142c5b2d1727efc49" | ||
"typeCoverage": { | ||
"atLeast": 40.33 | ||
}, | ||
"gitHead": "6aa22009bf8128575c446aebceb0f9a01459d165" | ||
} |
@@ -85,11 +85,12 @@ import { makeTransformSource } from './transformSource.js'; | ||
// The functor captures the SES `arguments`, which is definitely | ||
// less bad than the functor's arguments (which we are trying to | ||
// hide). | ||
// | ||
// It must also be strict to enforce strictness of modules. | ||
// We use destructuring parameters, so 'use strict' is not allowed | ||
// but the function actually is strict. | ||
// The outer function destructures the module calling convention's internal | ||
// variables into hidden lexical variables. | ||
// The inner function binds `this` to `undefined` and overshadows the | ||
// evaluator's `arguments` with a completely empty `arguments` object. | ||
// There is no avoiding the overshadowing of `globalThis.arguments` if it | ||
// exists in this emulation of ESM since the evaluator binds `arguments` as | ||
// well. | ||
// Relies on the evaluator to ensure these functions are strict. | ||
let functorSource = `\ | ||
(({ \ | ||
({ \ | ||
imports: ${h.HIDDEN_IMPORTS}, \ | ||
@@ -99,6 +100,6 @@ liveVar: ${h.HIDDEN_LIVE}, \ | ||
importMeta: ${h.HIDDEN_META}, \ | ||
}) => { \ | ||
}) => (function () { \ | ||
${preamble} \ | ||
${scriptSource} | ||
}) | ||
})() | ||
`; | ||
@@ -105,0 +106,0 @@ |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
60645
1089
1
+ Added@endo/env-options@1.1.8(transitive)
+ Addedses@1.10.0(transitive)
- Removed@endo/env-options@0.1.4(transitive)
- Removedses@0.18.8(transitive)
Updated@babel/parser@^7.23.6
Updated@babel/traverse@^7.23.6
Updated@babel/types@^7.23.6
Updatedses@^1.0.0