@babel/plugin-transform-runtime
Advanced tools
Comparing version 7.10.5 to 7.11.0
@@ -236,3 +236,3 @@ "use strict"; | ||
node.callee = _core.types.memberExpression(_core.types.callExpression(this.addDefaultImport(`${moduleName}/${corejsRoot}/instance/${InstanceProperties[propertyName].path}`, `${propertyName}InstanceProperty`), [context2]), _core.types.identifier("call")); | ||
node.callee = _core.types.memberExpression(_core.types.callExpression(this.addDefaultImport(`${modulePath}/${corejsRoot}/instance/${InstanceProperties[propertyName].path}`, `${propertyName}InstanceProperty`), [context2]), _core.types.identifier("call")); | ||
node.arguments.unshift(context1); | ||
@@ -276,3 +276,3 @@ return; | ||
if (!injectCoreJS2 && node.computed && path.get("property").matchesPattern("Symbol.iterator")) { | ||
path.replaceWith(_core.types.callExpression(this.addDefaultImport(`${moduleName}/core-js/get-iterator-method`, "getIteratorMethod"), [object])); | ||
path.replaceWith(_core.types.callExpression(this.addDefaultImport(`${modulePath}/core-js/get-iterator-method`, "getIteratorMethod"), [object])); | ||
return; | ||
@@ -286,3 +286,3 @@ } | ||
if (injectCoreJS3 && hasMapping(InstanceProperties, propertyName) && maybeNeedsPolyfill(path, InstanceProperties, propertyName)) { | ||
path.replaceWith(_core.types.callExpression(this.addDefaultImport(`${moduleName}/${corejsRoot}/instance/${InstanceProperties[propertyName].path}`, `${propertyName}InstanceProperty`), [object])); | ||
path.replaceWith(_core.types.callExpression(this.addDefaultImport(`${modulePath}/${corejsRoot}/instance/${InstanceProperties[propertyName].path}`, `${propertyName}InstanceProperty`), [object])); | ||
} | ||
@@ -289,0 +289,0 @@ |
{ | ||
"name": "@babel/plugin-transform-runtime", | ||
"version": "7.10.5", | ||
"version": "7.11.0", | ||
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals", | ||
@@ -32,12 +32,12 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.10.5", | ||
"@babel/core": "^7.11.0", | ||
"@babel/helper-plugin-test-runner": "^7.10.4", | ||
"@babel/helpers": "^7.10.4", | ||
"@babel/plugin-transform-typeof-symbol": "^7.10.4", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/runtime": "^7.10.5", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/runtime": "^7.11.0", | ||
"@babel/runtime-corejs3": "^7.11.0", | ||
"@babel/template": "^7.10.4", | ||
"@babel/types": "^7.10.5" | ||
}, | ||
"gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7" | ||
"@babel/types": "^7.11.0" | ||
} | ||
} |
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
40137
9