Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/helper-plugin-utils

Package Overview
Dependencies
Maintainers
6
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-plugin-utils - npm Package Compare versions

Comparing version 7.0.0-beta.43 to 7.0.0-beta.44

21

lib/index.js

@@ -9,9 +9,8 @@ "use strict";

function declare(builder) {
return (api, options, dirname) => {
return function (api, options, dirname) {
if (!api.assertVersion) {
api = Object.assign(copyApiObject(api), {
assertVersion(range) {
assertVersion: function assertVersion(range) {
throwVersionError(range, api.version);
}
});

@@ -25,3 +24,3 @@ }

function copyApiObject(api) {
let proto = null;
var proto = null;

@@ -49,3 +48,3 @@ if (typeof api.version === "string" && /^7\./.test(api.version)) {

range = `^${range}.0.0-0`;
range = "^" + range + ".0.0-0";
}

@@ -57,3 +56,3 @@

const limit = Error.stackTraceLimit;
var limit = Error.stackTraceLimit;

@@ -64,8 +63,8 @@ if (typeof limit === "number" && limit < 25) {

let err;
var err;
if (version.slice(0, 2) === "7.") {
err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`);
err = new Error("Requires Babel \"^7.0.0-beta.41\", but was loaded with \"" + version + "\". " + "You'll need to update your @babel/core version.");
} else {
err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`);
err = new Error("Requires Babel \"" + range + "\", but was loaded with \"" + version + "\". " + "If you are sure you have a compatible version of @babel/core, " + "it is likely that something in your build process is loading the " + "wrong version. Inspect the stack trace of this error to look for " + "the first entry that doesn't mention \"@babel/core\" or \"babel-core\" " + "to see what is calling Babel.");
}

@@ -79,5 +78,5 @@

code: "BABEL_VERSION_UNSUPPORTED",
version,
range
version: version,
range: range
});
}
{
"name": "@babel/helper-plugin-utils",
"version": "7.0.0-beta.43",
"version": "7.0.0-beta.44",
"description": "General utilities for plugins to use",

@@ -5,0 +5,0 @@ "author": "Logan Smyth <loganfsmyth@gmail.com>",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc