Comparing version 0.19.1 to 0.20.0
@@ -90,3 +90,3 @@ "use strict"; | ||
type: "Identifier", | ||
name: "module" | ||
name: visitor.moduleAlias, | ||
}, | ||
@@ -93,0 +93,0 @@ property: { |
@@ -52,3 +52,3 @@ "use strict"; | ||
const rootPath = new FastPath(result.ast || parse(code)); | ||
options.moduleAlias = makeUniqueId(getOption(options, "moduleAlias"), code); | ||
options.moduleAlias = getOption(options, "moduleAlias"); | ||
importExportVisitor.visit(rootPath, code, options); | ||
@@ -55,0 +55,0 @@ |
@@ -41,8 +41,2 @@ "use strict"; | ||
if (bodyInfo.parent.type === "Program" && | ||
this.moduleAlias !== "module") { | ||
codeToInsert += this.generateLetDeclarations ? "const " : "var "; | ||
codeToInsert += this.moduleAlias + "=module;"; | ||
} | ||
const addExportsMap = (map, constant) => { | ||
@@ -49,0 +43,0 @@ const namedExports = toModuleExport(this, map, constant); |
@@ -28,2 +28,3 @@ "use strict"; | ||
exportedLocalNames: importExportVisitor.exportedLocalNames, | ||
moduleAlias: importExportOptions.moduleAlias, | ||
modifyAST: true | ||
@@ -30,0 +31,0 @@ }); |
@@ -44,2 +44,5 @@ "use strict"; | ||
// The reset method does nothing unless it is overridden. | ||
reset() {} | ||
_afterReset() { | ||
@@ -46,0 +49,0 @@ // Reset the bounds we are currently considering within |
{ | ||
"name": "reify", | ||
"version": "0.19.1", | ||
"version": "0.20.0", | ||
"main": "node/index.js", | ||
@@ -41,4 +41,4 @@ "browser": "lib/empty.js", | ||
"@babel/parser": "7.4.4", | ||
"@babel/plugin-transform-runtime": "7.4.4", | ||
"@babel/preset-env": "7.4.4", | ||
"babel-plugin-transform-es2015-modules-reify": "0.19.0", | ||
"lodash": "4.17.11", | ||
@@ -45,0 +45,0 @@ "mocha": "6.1.4", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
3546429
362
67963
1
37
3