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.7.19 to 0.7.20

20

package.json
{
"name": "@endo/static-module-record",
"version": "0.7.19",
"version": "0.7.20",
"description": "Shim for the SES StaticModuleRecord and module-to-program transformer",

@@ -44,17 +44,17 @@ "keywords": [

"@babel/types": "^7.17.0",
"ses": "^0.18.4"
"ses": "^0.18.5"
},
"devDependencies": {
"@endo/ses-ava": "^0.2.40",
"ava": "^5.2.0",
"@endo/ses-ava": "^0.2.41",
"ava": "^5.3.0",
"babel-eslint": "^10.0.3",
"benchmark": "^2.1.4",
"c8": "^7.7.3",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.0.0",
"c8": "^7.14.0",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.27.5",
"prettier": "^2.8.5",
"typescript": "~4.9.5"
"prettier": "^3.0.0",
"typescript": "~5.1.3"
},

@@ -82,3 +82,3 @@ "files": [

},
"gitHead": "38c2c59d6ae8c53f84cd333e6c7828e2d37604e2"
"gitHead": "106da55b8bcea3067f70c29c357806f3f2e55c52"
}

@@ -55,3 +55,3 @@ /* eslint max-lines: 0 */

if (sourceType !== 'module') {
throw new Error(`Module sourceType must be 'module'`);
throw Error(`Module sourceType must be 'module'`);
}

@@ -127,5 +127,5 @@

const markLiveExport = name => {
topLevelExported[name].forEach(importTo => {
for (const importTo of topLevelExported[name]) {
liveExportMap[importTo] = [name, true];
});
}
return hLiveId;

@@ -146,5 +146,5 @@ };

const markFixedExport = name => {
topLevelExported[name].forEach(importTo => {
for (const importTo of topLevelExported[name]) {
fixedExportMap[importTo] = [name];
});
}
return hOnceId;

@@ -332,3 +332,3 @@ };

}
specs.forEach(spec => {
for (const spec of specs) {
const importTo = spec.local.name;

@@ -371,3 +371,3 @@ importDecls.push(importTo);

}
});
}
}

@@ -479,5 +479,5 @@ if (doTransform) {

if (doAnalyze) {
vids.forEach(({ name }) => {
for (const { name } of vids) {
topLevelIsOnce[name] = path.scope.getBinding(name).constant;
});
}
}

@@ -539,3 +539,3 @@ if (doTransform) {

);
vids.forEach(({ name }) => {
for (const { name } of vids) {
let tle = topLevelExported[name];

@@ -547,6 +547,6 @@ if (!tle) {

tle.push(name);
});
}
}
specs.forEach(spec => {
for (const spec of specs) {
const { local, exported } = spec;

@@ -605,3 +605,3 @@ const importFrom =

}
});
}
}

@@ -608,0 +608,0 @@ if (doTransform) {

@@ -44,3 +44,3 @@ /* eslint no-underscore-dangle: ["off"] */

if (new.target === undefined) {
throw new TypeError(
throw TypeError(
"Class constructor StaticModuleRecord cannot be invoked without 'new'",

@@ -58,3 +58,3 @@ );

} = analyzeModule({ string: source, url });
this.imports = freeze([...keys(imports)].sort());
this.imports = freeze([...keys(imports)]);
this.exports = freeze(

@@ -61,0 +61,0 @@ [

@@ -41,3 +41,3 @@ import { makeTransformSource } from './transformSource.js';

const moduleLocation = url ? JSON.stringify(url) : '<unknown>';
throw new SyntaxError(
throw SyntaxError(
`Error transforming source in ${moduleLocation}: ${err.message}`,

@@ -44,0 +44,0 @@ { cause: err },

@@ -17,3 +17,3 @@ import * as babelParser from '@babel/parser';

if (babel !== null) {
throw new Error(
throw Error(
`transform-analyze.js no longer allows injecting babel; use \`null\``,

@@ -20,0 +20,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