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

@babel/helpers

Package Overview
Dependencies
Maintainers
6
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helpers - npm Package Compare versions

Comparing version 7.14.6 to 7.14.8

6

package.json
{
"name": "@babel/helpers",
"version": "7.14.6",
"version": "7.14.8",
"description": "Collection of helper functions used by Babel transforms.",

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

"@babel/template": "^7.14.5",
"@babel/traverse": "^7.14.5",
"@babel/types": "^7.14.5"
"@babel/traverse": "^7.14.8",
"@babel/types": "^7.14.8"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -20,2 +20,3 @@ import fs from "fs";

if (IGNORED_FILES.has(file)) continue;
if (file.startsWith(".")) continue; // ignore e.g. vim swap files

@@ -26,9 +27,11 @@ const [helperName] = file.split(".");

const fileContents = await fs.promises.readFile(
join(fileURLToPath(HELPERS_FOLDER), file),
"utf8"
const filePath = join(fileURLToPath(HELPERS_FOLDER), file);
const fileContents = await fs.promises.readFile(filePath, "utf8");
const minVersionMatch = fileContents.match(
/^\s*\/\*\s*@minVersion\s+(?<minVersion>\S+)\s*\*\/\s*$/m
);
const { minVersion } = fileContents.match(
/^\s*\/\*\s*@minVersion\s+(?<minVersion>\S+)\s*\*\/\s*$/m
).groups;
if (!minVersionMatch) {
throw new Error(`@minVersion number missing in ${filePath}`);
}
const { minVersion } = minVersionMatch.groups;

@@ -35,0 +38,0 @@ // TODO: We can minify the helpers in production

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