You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

babel-plugin-polyfill-corejs2

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.4.0

13

lib/index.js

@@ -27,2 +27,3 @@ "use strict";

} = _babel.default || _babel;
const BABEL_RUNTIME = "@babel/runtime-corejs2";
const presetEnvCompat = "#__secret_key__@babel/preset-env__compatibility";

@@ -39,9 +40,6 @@ const runtimeCompat = "#__secret_key__@babel/runtime__compatibility";

[runtimeCompat]: {
useBabelRuntime,
runtimeVersion,
useBabelRuntime = false,
runtimeVersion = "",
ext = ".js"
} = {
useBabelRuntime: "",
runtimeVersion: ""
}
} = {}
}) {

@@ -59,3 +57,3 @@ const resolve = api.createMetaResolver({

const polyfills = (0, _addPlatformSpecificPolyfills.default)(api.targets, method, _corejs2BuiltIns.default);
const coreJSBase = useBabelRuntime ? `${useBabelRuntime}/core-js` : method === "usage-pure" ? "core-js/library/fn" : "core-js/modules";
const coreJSBase = useBabelRuntime ? `${BABEL_RUNTIME}/core-js` : method === "usage-pure" ? "core-js/library/fn" : "core-js/modules";

@@ -94,2 +92,3 @@ function inject(name, utils) {

name: "corejs2",
runtimeName: BABEL_RUNTIME,
polyfills,

@@ -96,0 +95,0 @@

{
"name": "babel-plugin-polyfill-corejs2",
"version": "0.3.3",
"version": "0.4.0",
"description": "A Babel plugin to inject imports to core-js@2 polyfills",

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

"@babel/compat-data": "^7.17.7",
"@babel/helper-define-polyfill-provider": "^0.3.3",
"@babel/helper-define-polyfill-provider": "^0.4.0",
"semver": "^6.1.1"

@@ -43,3 +43,3 @@ },

},
"gitHead": "42b9477c199c0c5420b45cfa8c9bb892d94a64af"
"gitHead": "391a1f4049fe1d6943ca8e91cf7e2e23f3f1ef73"
}

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc