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

reify

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reify - npm Package Compare versions

Comparing version 0.19.1 to 0.20.0

examples/babel-parser-example/index.js

2

lib/assignment-visitor.js

@@ -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",

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