Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-runtime

Package Overview
Dependencies
Maintainers
5
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.0.0-beta.47 to 7.0.0-beta.48

39

lib/index.js

@@ -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"
}
}
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