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-beta.55 to 7.0.0-beta.56

13

lib/index.js

@@ -28,7 +28,16 @@ "use strict";

var _default = (0, _helperPluginUtils().declare)(api => {
var _default = (0, _helperPluginUtils().declare)((api, options) => {
api.assertVersion(7);
const {
helperVersion = "7.0.0-beta.0"
} = options;
return {
pre(file) {
file.set("helpersNamespace", _core().types.identifier("babelHelpers"));
file.set("helperGenerator", name => {
if (file.availableHelper && !file.availableHelper(name, helperVersion)) {
return;
}
return _core().types.memberExpression(_core().types.identifier("babelHelpers"), _core().types.identifier(name));
});
}

@@ -35,0 +44,0 @@

8

package.json
{
"name": "@babel/plugin-external-helpers",
"version": "7.0.0-beta.55",
"version": "7.0.0-beta.56",
"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-beta.55"
"@babel/helper-plugin-utils": "7.0.0-beta.56"
},

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

"devDependencies": {
"@babel/core": "7.0.0-beta.55",
"@babel/helper-plugin-test-runner": "7.0.0-beta.55"
"@babel/core": "7.0.0-beta.56",
"@babel/helper-plugin-test-runner": "7.0.0-beta.56"
}
}
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