Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@endo/static-module-record

Package Overview
Dependencies
Maintainers
5
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endo/static-module-record - npm Package Compare versions

Comparing version 0.8.2 to 1.0.0

25

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc