Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-runtime

Package Overview
Dependencies
Maintainers
6
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-runtime - npm Package Compare versions

Comparing version 7.10.5 to 7.11.0

6

lib/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc