@babel/helper-module-imports
Advanced tools
Comparing version 7.0.0-beta.47 to 7.0.0-beta.48
@@ -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" | ||
} | ||
} |
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
407
17411
+ Added@babel/types@7.0.0-beta.48(transitive)
- Removed@babel/types@7.0.0-beta.47(transitive)
Updated@babel/types@7.0.0-beta.48