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

@babel/helper-fixtures

Package Overview
Dependencies
Maintainers
6
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-fixtures - npm Package Compare versions

Comparing version 7.14.5 to 7.16.0

19

lib/index.js

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

});
exports.resolveOptionPluginOrPreset = resolveOptionPluginOrPreset;
exports.default = get;
exports.multiple = multiple;
exports.readFile = readFile;
exports.resolveOptionPluginOrPreset = resolveOptionPluginOrPreset;

@@ -55,3 +55,3 @@ var _semver = require("semver");

const EXTENSIONS = [".js", ".mjs", ".ts", ".tsx"];
const EXTENSIONS = [".js", ".mjs", ".ts", ".tsx", ".cts", ".mts"];

@@ -119,2 +119,3 @@ function findFile(filepath, allowJSON) {

options: taskOpts,
doNotSetSourceType: taskOpts.DO_NOT_SET_SOURCE_TYPE,
externalHelpers: (_taskOpts$externalHel = taskOpts.externalHelpers) != null ? _taskOpts$externalHel : !!tryResolve("@babel/plugin-external-helpers"),

@@ -151,2 +152,3 @@ validateLogs: taskOpts.validateLogs,

delete taskOpts.BABEL_8_BREAKING;
delete taskOpts.DO_NOT_SET_SOURCE_TYPE;

@@ -252,5 +254,16 @@ if (taskOpts.minNodeVersion) {

} else {
const monorepoPath = _path.join(_path.dirname(__filename), "../..", `babel-${type}-${val[0]}`);
let name = val[0];
const match = name.match(/^(@babel\/(?:plugin-|preset-)?)(.*)$/);
if (match) {
name = match[2];
}
const monorepoPath = _path.join(_path.dirname(__filename), "../..", `babel-${type}-${name}`);
if (_fs.existsSync(monorepoPath)) {
if (match) {
throw new Error(`Remove the "${match[1]}" prefix from "${val[0]}", to load it from the monorepo`);
}
val[0] = monorepoPath;

@@ -257,0 +270,0 @@ }

2

package.json
{
"name": "@babel/helper-fixtures",
"version": "7.14.5",
"version": "7.16.0",
"description": "Helper function to support fixtures",

@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)",

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