@endo/static-module-record
Advanced tools
Comparing version 0.7.14 to 0.7.15
@@ -6,2 +6,13 @@ # Change Log | ||
### [0.7.15](https://github.com/endojs/endo/compare/@endo/static-module-record@0.7.14...@endo/static-module-record@0.7.15) (2022-11-14) | ||
### Bug Fixes | ||
* **static-module-record:** Do not mark live binding for non-exported name ([6846226](https://github.com/endojs/endo/commit/6846226552784200146a951b758b334dc442f598)) | ||
* **static-module-record:** error with module url on transform fail ([ee051b0](https://github.com/endojs/endo/commit/ee051b0b5da4c53b4cdebb282aeaf8c6b8c832a0)) | ||
* fail template ([#1334](https://github.com/endojs/endo/issues/1334)) ([725b987](https://github.com/endojs/endo/commit/725b987ffa812a070ff45fcd496cf8fd88df6963)) | ||
### [0.7.14](https://github.com/endojs/endo/compare/@endo/static-module-record@0.7.13...@endo/static-module-record@0.7.14) (2022-10-24) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@endo/static-module-record", | ||
"version": "0.7.14", | ||
"version": "0.7.15", | ||
"description": "Shim for the SES StaticModuleRecord and module-to-program transformer", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"@babel/types": "^7.17.0", | ||
"ses": "^0.17.0" | ||
"ses": "^0.18.0" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
"@endo/eslint-config": "^0.5.1", | ||
"@endo/ses-ava": "^0.2.35", | ||
"@endo/ses-ava": "^0.2.36", | ||
"ava": "^3.12.1", | ||
@@ -61,3 +61,3 @@ "babel-eslint": "^10.0.3", | ||
"prettier": "^1.19.1", | ||
"typescript": "~4.6.2" | ||
"typescript": "~4.8.4" | ||
}, | ||
@@ -89,3 +89,3 @@ "files": [ | ||
}, | ||
"gitHead": "8fb324d8f13a0c6939dc0c1feb831f72298f1853" | ||
"gitHead": "da16a94856482e36296b7cae16d715aa63344928" | ||
} |
@@ -189,11 +189,2 @@ /* eslint max-lines: 0 */ | ||
markLiveExport(name); | ||
} else { | ||
// Make this variable mutable with: let name = $c_name; | ||
soften(id); | ||
replacements.push( | ||
t.variableDeclaration('let', [ | ||
t.variableDeclarator(t.identifier(name), t.identifier(id.name)), | ||
]), | ||
); | ||
markLiveExport(name); | ||
} | ||
@@ -200,0 +191,0 @@ } else if (topLevelExported[name]) { |
@@ -35,3 +35,12 @@ import { makeTransformSource } from './transformSource.js'; | ||
} | ||
const scriptSource = transformSource(moduleSource, sourceOptions); | ||
let scriptSource; | ||
try { | ||
scriptSource = transformSource(moduleSource, sourceOptions); | ||
} catch (err) { | ||
const moduleLocation = url ? JSON.stringify(url) : '<unknown>'; | ||
throw new SyntaxError( | ||
`Error transforming source in ${moduleLocation}: ${err.message}`, | ||
{ cause: err }, | ||
); | ||
} | ||
@@ -38,0 +47,0 @@ let preamble = sourceOptions.importDecls.join(','); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62015
0
+ Added@endo/env-options@0.1.4(transitive)
+ Addedses@0.18.8(transitive)
- Removedses@0.17.1(transitive)
Updatedses@^0.18.0