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-transform-runtime

Package Overview
Dependencies
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0-alpha.6 to 8.0.0-alpha.7

24

lib/index.js

@@ -9,7 +9,8 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare((api, options, dirname) => {
api.assertVersion("8.0.0-alpha.6");
api.assertVersion("8.0.0-alpha.7");
const {
helpers: useRuntimeHelpers = true,
version: runtimeVersion = "7.0.0-beta.0",
absoluteRuntime = false
absoluteRuntime = false,
moduleName = null
} = options;

@@ -25,7 +26,7 @@ if (typeof useRuntimeHelpers !== "boolean") {

}
if (moduleName !== null && typeof moduleName !== "string") {
throw new Error("The 'moduleName' option must be null or a string.");
}
;
function has(obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key);
}
if (has(options, "useBuiltIns")) {
if (Object.hasOwn(options, "useBuiltIns")) {
if (options["useBuiltIns"]) {

@@ -37,3 +38,3 @@ throw new Error("The 'useBuiltIns' option has been removed. The @babel/runtime " + "module now uses builtins by default.");

}
if (has(options, "polyfill")) {
if (Object.hasOwn(options, "polyfill")) {
if (options["polyfill"] === false) {

@@ -45,7 +46,4 @@ throw new Error("The 'polyfill' option has been removed. The @babel/runtime " + "module now skips polyfilling by default.");

}
if (has(options, "moduleName")) {
throw new Error("The 'moduleName' option has been removed. @babel/transform-runtime " + "no longer supports arbitrary runtimes. If you were using this to " + "set an absolute path for Babel's standard runtimes, please use the " + "'absoluteRuntime' option.");
}
{
if (has(options, "regenerator")) {
if (Object.hasOwn(options, "regenerator")) {
throw new Error("The 'regenerator' option has been removed. The generators transform " + "no longers relies on a 'regeneratorRuntime' global. " + "If you still need to replace imports to the 'regeneratorRuntime' " + "global, you can use babel-plugin-polyfill-regenerator.");

@@ -55,3 +53,3 @@ }

{
if (has(options, "useESModules")) {
if (Object.hasOwn(options, "useESModules")) {
throw new Error("The 'useESModules' option has been removed. @babel/runtime now uses " + "package.json#exports to support both CommonJS and ESM helpers.");

@@ -68,3 +66,3 @@ }

file.set("helperGenerator", name => {
modulePath ??= getRuntimePath(file.get("runtimeHelpersModuleName") ?? "@babel/runtime", dirname, absoluteRuntime);
modulePath ??= getRuntimePath(moduleName ?? file.get("runtimeHelpersModuleName") ?? "@babel/runtime", dirname, absoluteRuntime);
{

@@ -71,0 +69,0 @@ if (!file.availableHelper(name, runtimeVersion)) return;

{
"name": "@babel/plugin-transform-runtime",
"version": "8.0.0-alpha.6",
"version": "8.0.0-alpha.7",
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",

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

"dependencies": {
"@babel/helper-module-imports": "^8.0.0-alpha.6",
"@babel/helper-plugin-utils": "^8.0.0-alpha.6",
"@babel/helper-module-imports": "^8.0.0-alpha.7",
"@babel/helper-plugin-utils": "^8.0.0-alpha.7",
"babel-plugin-polyfill-corejs2": "^0.4.8",

@@ -32,11 +32,11 @@ "babel-plugin-polyfill-corejs3": "^0.9.0",

"peerDependencies": {
"@babel/core": "^8.0.0-alpha.6"
"@babel/core": "^8.0.0-alpha.7"
},
"devDependencies": {
"@babel/core": "^8.0.0-alpha.6",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.6",
"@babel/helpers": "^8.0.0-alpha.6",
"@babel/preset-env": "^8.0.0-alpha.6",
"@babel/runtime": "^8.0.0-alpha.6",
"@babel/runtime-corejs3": "^8.0.0-alpha.6"
"@babel/core": "^8.0.0-alpha.7",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.7",
"@babel/helpers": "^8.0.0-alpha.7",
"@babel/preset-env": "^8.0.0-alpha.7",
"@babel/runtime": "^8.0.0-alpha.7",
"@babel/runtime-corejs3": "^8.0.0-alpha.7"
},

@@ -43,0 +43,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-runtime",

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