@babel/plugin-external-helpers
Advanced tools
Comparing version 7.0.0-beta.55 to 7.0.0-beta.56
@@ -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 @@ |
{ | ||
"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" | ||
} | ||
} |
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
1983
35
+ Added@babel/helper-plugin-utils@7.0.0-beta.56(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.55(transitive)