@babel/helpers
Advanced tools
Comparing version 7.14.6 to 7.14.8
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84430
2211
Updated@babel/traverse@^7.14.8
Updated@babel/types@^7.14.8