@babel/plugin-transform-runtime
Advanced tools
Comparing version 7.0.0-beta.47 to 7.0.0-beta.48
@@ -8,3 +8,3 @@ "use strict"; | ||
enumerable: true, | ||
get: function get() { | ||
get: function () { | ||
return _definitions.default; | ||
@@ -18,3 +18,3 @@ } | ||
_helperPluginUtils = function _helperPluginUtils() { | ||
_helperPluginUtils = function () { | ||
return data; | ||
@@ -29,3 +29,3 @@ }; | ||
_helperModuleImports = function _helperModuleImports() { | ||
_helperModuleImports = function () { | ||
return data; | ||
@@ -40,3 +40,3 @@ }; | ||
_core = function _core() { | ||
_core = function () { | ||
return data; | ||
@@ -54,9 +54,10 @@ }; | ||
api.assertVersion(7); | ||
const helpers = options.helpers, | ||
_options$moduleName = options.moduleName, | ||
moduleName = _options$moduleName === void 0 ? "@babel/runtime" : _options$moduleName, | ||
polyfill = options.polyfill, | ||
regenerator = options.regenerator, | ||
useBuiltIns = options.useBuiltIns, | ||
useESModules = options.useESModules; | ||
const { | ||
helpers, | ||
moduleName = "@babel/runtime", | ||
polyfill, | ||
regenerator, | ||
useBuiltIns, | ||
useESModules | ||
} = options; | ||
const regeneratorEnabled = regenerator !== false; | ||
@@ -112,5 +113,7 @@ const notPolyfillOrDoesUseBuiltIns = polyfill === false || useBuiltIns; | ||
ReferencedIdentifier(path) { | ||
const node = path.node, | ||
parent = path.parent, | ||
scope = path.scope; | ||
const { | ||
node, | ||
parent, | ||
scope | ||
} = path; | ||
@@ -154,3 +157,5 @@ if (node.name === "regeneratorRuntime" && regeneratorEnabled) { | ||
if (!path.isReferenced()) return; | ||
const node = path.node; | ||
const { | ||
node | ||
} = path; | ||
const obj = node.object; | ||
@@ -179,3 +184,5 @@ const prop = node.property; | ||
if (!path.isReferenced()) return; | ||
const node = path.node; | ||
const { | ||
node | ||
} = path; | ||
const obj = node.object; | ||
@@ -182,0 +189,0 @@ if (!has(_definitions.default.builtins, obj.name)) return; |
{ | ||
"name": "@babel/plugin-transform-runtime", | ||
"version": "7.0.0-beta.47", | ||
"version": "7.0.0-beta.48", | ||
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals", | ||
@@ -12,12 +12,12 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime", | ||
"dependencies": { | ||
"@babel/helper-module-imports": "7.0.0-beta.47", | ||
"@babel/helper-plugin-utils": "7.0.0-beta.47" | ||
"@babel/helper-module-imports": "7.0.0-beta.48", | ||
"@babel/helper-plugin-utils": "7.0.0-beta.48" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "7.0.0-beta.47" | ||
"@babel/core": "7.0.0-beta.48" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.47", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.47" | ||
"@babel/core": "7.0.0-beta.48", | ||
"@babel/helper-plugin-test-runner": "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
322
21863
+ Added@babel/code-frame@7.0.0-beta.48(transitive)
+ Added@babel/core@7.0.0-beta.48(transitive)
+ Added@babel/generator@7.0.0-beta.48(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.48(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.48(transitive)
+ Added@babel/helper-module-imports@7.0.0-beta.48(transitive)
+ Added@babel/helper-plugin-utils@7.0.0-beta.48(transitive)
+ Added@babel/helper-split-export-declaration@7.0.0-beta.48(transitive)
+ Added@babel/helpers@7.0.0-beta.48(transitive)
+ Added@babel/highlight@7.0.0-beta.48(transitive)
+ Added@babel/parser@7.0.0-beta.48(transitive)
+ Added@babel/template@7.0.0-beta.48(transitive)
+ Added@babel/traverse@7.0.0-beta.48(transitive)
+ Added@babel/types@7.0.0-beta.48(transitive)
- Removed@babel/code-frame@7.0.0-beta.47(transitive)
- Removed@babel/core@7.0.0-beta.47(transitive)
- Removed@babel/generator@7.0.0-beta.47(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.47(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.47(transitive)
- Removed@babel/helper-module-imports@7.0.0-beta.47(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.47(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.47(transitive)
- Removed@babel/helpers@7.0.0-beta.47(transitive)
- Removed@babel/highlight@7.0.0-beta.47(transitive)
- Removed@babel/template@7.0.0-beta.47(transitive)
- Removed@babel/traverse@7.0.0-beta.47(transitive)
- Removed@babel/types@7.0.0-beta.47(transitive)
- Removedbabylon@7.0.0-beta.47(transitive)