Socket
Socket
Sign inDemoInstall

babel-plugin-polyfill-corejs2

Package Overview
Dependencies
71
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.4 to 0.4.5

8

lib/helpers.js

@@ -5,6 +5,4 @@ "use strict";

exports.hasMinVersion = hasMinVersion;
var _semverV = _interopRequireDefault(require("@nicolo-ribaudo/semver-v6"));
var _semver = _interopRequireDefault(require("semver"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/// <reference path="../../../lib/semver.d.ts" />
function hasMinVersion(minVersion, runtimeVersion) {

@@ -33,4 +31,4 @@ // If the range is unavailable, we're running the script during Babel's

// babel-core's availableHelper() API.
if (_semverV.default.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
return !_semverV.default.intersects(`<${minVersion}`, runtimeVersion) && !_semverV.default.intersects(`>=8.0.0`, runtimeVersion);
if (_semver.default.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
return !_semver.default.intersects(`<${minVersion}`, runtimeVersion) && !_semver.default.intersects(`>=8.0.0`, runtimeVersion);
}
{
"name": "babel-plugin-polyfill-corejs2",
"version": "0.4.4",
"version": "0.4.5",
"description": "A Babel plugin to inject imports to core-js@2 polyfills",

@@ -30,4 +30,4 @@ "repository": {

"@babel/compat-data": "^7.22.6",
"@babel/helper-define-polyfill-provider": "^0.4.1",
"@nicolo-ribaudo/semver-v6": "^6.3.3"
"@babel/helper-define-polyfill-provider": "^0.4.2",
"semver": "^6.3.1"
},

@@ -41,5 +41,5 @@ "devDependencies": {

"peerDependencies": {
"@babel/core": "^7.0.0-0"
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
},
"gitHead": "74956db5d547985ac8e60bf1af56f4c61af12e4e"
"gitHead": "0e8cfb85899c8fb01728199d81fd37108e1668ab"
}

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