Socket
Socket
Sign inDemoInstall

@babel/helper-module-imports

Package Overview
Dependencies
4
Maintainers
5
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-beta.47 to 7.0.0-beta.48

4

lib/import-builder.js

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

_assert = function _assert() {
_assert = function () {
return data;

@@ -22,3 +22,3 @@ };

t = function t() {
t = function () {
return data;

@@ -25,0 +25,0 @@ };

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

_assert = function _assert() {
_assert = function () {
return data;

@@ -22,3 +22,3 @@ };

t = function t() {
t = function () {
return data;

@@ -87,4 +87,3 @@ };

for (var _i = 0; _i < optsList.length; _i++) {
const opts = optsList[_i];
for (const opts of optsList) {
if (!opts) continue;

@@ -108,10 +107,12 @@ Object.keys(newOpts).forEach(key => {

const isNamespace = importName === null;
const importedSource = opts.importedSource,
importedType = opts.importedType,
importedInterop = opts.importedInterop,
importingInterop = opts.importingInterop,
ensureLiveReference = opts.ensureLiveReference,
ensureNoContext = opts.ensureNoContext,
nameHint = opts.nameHint,
blockHoist = opts.blockHoist;
const {
importedSource,
importedType,
importedInterop,
importingInterop,
ensureLiveReference,
ensureNoContext,
nameHint,
blockHoist
} = opts;
let name = nameHint || importName;

@@ -255,5 +256,6 @@ const isMod = (0, _isModule.default)(this._programPath);

const _builder$done = builder.done(),
statements = _builder$done.statements,
resultName = _builder$done.resultName;
const {
statements,
resultName
} = builder.done();

@@ -260,0 +262,0 @@ this._insertStatements(statements, blockHoist);

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

enumerable: true,
get: function get() {
get: function () {
return _importInjector.default;

@@ -19,3 +19,3 @@ }

enumerable: true,
get: function get() {
get: function () {
return _isModule.default;

@@ -22,0 +22,0 @@ }

@@ -9,3 +9,5 @@ "use strict";

function isModule(path) {
const sourceType = path.node.sourceType;
const {
sourceType
} = path.node;

@@ -12,0 +14,0 @@ if (sourceType !== "module" && sourceType !== "script") {

{
"name": "@babel/helper-module-imports",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Babel helper functions for inserting module loads",

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

"dependencies": {
"@babel/types": "7.0.0-beta.47",
"@babel/types": "7.0.0-beta.48",
"lodash": "^4.17.5"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc