Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-runtime

Package Overview
Dependencies
82
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.23.3 to 7.23.4

lib/babel-7/index.cjs

7

lib/index.js

@@ -12,3 +12,4 @@ "use strict";

var _index = require("./get-runtime-path/index.js");
var _polyfills = require("./polyfills.js");
var _coreJs = require("./core-js.js");
var _index2 = require("./babel-7/index.cjs");
function supportsStaticESM(caller) {

@@ -18,2 +19,3 @@ return !!(caller != null && caller.supportsStaticESM);

var _default = exports.default = (0, _helperPluginUtils.declare)((api, options, dirname) => {
var _options$corejs;
api.assertVersion(7);

@@ -62,2 +64,3 @@ const {

}
;
const esModules = useESModules === "auto" ? api.caller(supportsStaticESM) : useESModules;

@@ -67,3 +70,3 @@ const HEADER_HELPERS = ["interopRequireWildcard", "interopRequireDefault"];

name: "transform-runtime",
inherits: (0, _polyfills.createBasePolyfillsPlugin)(options, runtimeVersion, absoluteRuntime),
inherits: _index2.createPolyfillPlugins(options, runtimeVersion, absoluteRuntime, options.corejs === 3 || ((_options$corejs = options.corejs) == null ? void 0 : _options$corejs.version) === 3 ? (0, _coreJs.createCorejs3Plugin)(options.corejs, absoluteRuntime) : null),
pre(file) {

@@ -70,0 +73,0 @@ if (!useRuntimeHelpers) return;

{
"name": "@babel/plugin-transform-runtime",
"version": "7.23.3",
"version": "7.23.4",
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",

@@ -36,6 +36,6 @@ "repository": {

"@babel/helper-plugin-test-runner": "^7.22.5",
"@babel/helpers": "^7.23.2",
"@babel/helpers": "^7.23.4",
"@babel/preset-env": "^7.23.3",
"@babel/runtime": "^7.23.2",
"@babel/runtime-corejs3": "^7.23.2",
"@babel/runtime": "^7.23.4",
"@babel/runtime-corejs3": "^7.23.4",
"make-dir": "^2.1.0"

@@ -42,0 +42,0 @@ },

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