Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@babel/plugin-external-helpers

Package Overview
Dependencies
Maintainers
5
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-external-helpers - npm Package Compare versions

Comparing version 7.0.0-rc.3 to 7.0.0-rc.4

10

lib/index.js

@@ -31,4 +31,11 @@ "use strict";

const {
helperVersion = "7.0.0-beta.0"
helperVersion = "7.0.0-beta.0",
whitelist = false
} = options;
if (whitelist !== false && (!Array.isArray(whitelist) || whitelist.some(w => typeof w !== "string"))) {
throw new Error(".whitelist must be undefined, false, or an array of strings");
}
const helperWhitelist = whitelist ? new Set(whitelist) : null;
return {

@@ -41,2 +48,3 @@ pre(file) {

if (helperWhitelist && !helperWhitelist.has(name)) return;
return _core().types.memberExpression(_core().types.identifier("babelHelpers"), _core().types.identifier(name));

@@ -43,0 +51,0 @@ });

8

package.json
{
"name": "@babel/plugin-external-helpers",
"version": "7.0.0-rc.3",
"version": "7.0.0-rc.4",
"description": "This plugin contains helper functions that’ll be placed at the top of the generated code",

@@ -12,3 +12,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-external-helpers",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-rc.3"
"@babel/helper-plugin-utils": "^7.0.0-rc.4"
},

@@ -19,5 +19,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.0.0-rc.3",
"@babel/helper-plugin-test-runner": "7.0.0-rc.3"
"@babel/core": "^7.0.0-rc.4",
"@babel/helper-plugin-test-runner": "^7.0.0-rc.4"
}
}
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