Socket
Socket
Sign inDemoInstall

babel-plugin-polyfill-regenerator

Package Overview
Dependencies
66
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.4.0

18

lib/index.js

@@ -13,8 +13,16 @@ "use strict";

var _default = (0, _helperDefinePolyfillProvider.default)(({
debug
debug,
targets,
babel
}, options) => {
if (!shallowEqual(targets, babel.targets())) {
throw new Error("This plugin does not use the targets option. Only preset-env's targets" + " or top-level targets need to be configured for this plugin to work." + " See https://github.com/babel/babel-polyfills/issues/36 for more" + " details.");
}
const {
[runtimeCompat]: {
useBabelRuntime
} = {}
} = {
useBabelRuntime: ""
}
} = options;

@@ -44,2 +52,6 @@ const pureName = useBabelRuntime ? `${useBabelRuntime}/regenerator` : "regenerator-runtime";

const isRegenerator = meta => meta.kind === "global" && meta.name === "regeneratorRuntime";
const isRegenerator = meta => meta.kind === "global" && meta.name === "regeneratorRuntime";
function shallowEqual(obj1, obj2) {
return JSON.stringify(obj1) === JSON.stringify(obj2);
}

10

package.json
{
"name": "babel-plugin-polyfill-regenerator",
"version": "0.3.1",
"version": "0.4.0",
"description": "A Babel plugin to inject imports to regenerator-runtime",

@@ -29,7 +29,7 @@ "repository": {

"dependencies": {
"@babel/helper-define-polyfill-provider": "^0.3.1"
"@babel/helper-define-polyfill-provider": "^0.3.2"
},
"devDependencies": {
"@babel/core": "^7.13.0",
"@babel/helper-plugin-test-runner": "^7.10.4"
"@babel/core": "^7.17.8",
"@babel/helper-plugin-test-runner": "^7.16.7"
},

@@ -39,3 +39,3 @@ "peerDependencies": {

},
"gitHead": "f5eb1c6d74fa29afdb0a3a533dfc5742557197bc"
"gitHead": "62b9025beeec450a1ff5d61fadcf63963aec5015"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc