You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/helper-module-imports

Package Overview
Dependencies
Maintainers
5
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-rc.1 to 7.0.0-rc.2

10

lib/import-builder.js

@@ -33,9 +33,9 @@ "use strict";

class ImportBuilder {
constructor(importedSource, scope, file) {
constructor(importedSource, scope, hub) {
this._statements = [];
this._resultName = null;
this._scope = null;
this._file = null;
this._hub = null;
this._scope = scope;
this._file = file;
this._hub = hub;
this._importedSource = importedSource;

@@ -111,7 +111,7 @@ }

defaultInterop() {
return this._interop(this._file.addHelper("interopRequireDefault"));
return this._interop(this._hub.addHelper("interopRequireDefault"));
}
wildcardInterop() {
return this._interop(this._file.addHelper("interopRequireWildcard"));
return this._interop(this._hub.addHelper("interopRequireWildcard"));
}

@@ -118,0 +118,0 @@

@@ -49,3 +49,3 @@ "use strict";

this._programScope = programPath.scope;
this._file = programPath.hub.file;
this._hub = programPath.hub;
this._defaultOpts = this._applyDefaults(importedSource, opts, true);

@@ -119,3 +119,3 @@ }

const isModuleForBabel = isMod && importingInterop === "babel";
const builder = new _importBuilder.default(importedSource, this._programScope, this._file);
const builder = new _importBuilder.default(importedSource, this._programScope, this._hub);

@@ -122,0 +122,0 @@ if (importedType === "es6") {

{
"name": "@babel/helper-module-imports",
"version": "7.0.0-rc.1",
"version": "7.0.0-rc.2",
"description": "Babel helper functions for inserting module loads",

@@ -11,8 +11,7 @@ "author": "Logan Smyth <loganfsmyth@gmail.com>",

"dependencies": {
"@babel/types": "7.0.0-rc.1",
"lodash": "^4.17.10"
"@babel/types": "7.0.0-rc.2"
},
"devDependencies": {
"@babel/core": "7.0.0-rc.1"
"@babel/core": "7.0.0-rc.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc