@babel/template
Advanced tools
+4
-1
@@ -260,4 +260,7 @@ import * as _t from '@babel/types'; | ||
| parserOpts = Object.assign({ | ||
| allowAwaitOutsideFunction: true, | ||
| allowReturnOutsideFunction: true, | ||
| allowNewTargetOutsideFunction: true, | ||
| allowSuperOutsideMethod: true, | ||
| allowYieldOutsideFunction: true, | ||
| sourceType: "module" | ||
@@ -312,3 +315,3 @@ }, parserOpts, { | ||
| try { | ||
| applyReplacement(placeholder, ast, replacements && replacements[placeholder.name] || null); | ||
| applyReplacement(placeholder, ast, (replacements && replacements[placeholder.name]) ?? null); | ||
| } catch (e) { | ||
@@ -315,0 +318,0 @@ e.message = `@babel/template placeholder "${placeholder.name}": ${e.message}`; |
+5
-5
| { | ||
| "name": "@babel/template", | ||
| "version": "8.0.0-alpha.17", | ||
| "version": "8.0.0-beta.0", | ||
| "description": "Generate an AST from a string template.", | ||
@@ -19,8 +19,8 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
| "dependencies": { | ||
| "@babel/code-frame": "^8.0.0-alpha.17", | ||
| "@babel/parser": "^8.0.0-alpha.17", | ||
| "@babel/types": "^8.0.0-alpha.17" | ||
| "@babel/code-frame": "^8.0.0-beta.0", | ||
| "@babel/parser": "^8.0.0-beta.0", | ||
| "@babel/types": "^8.0.0-beta.0" | ||
| }, | ||
| "engines": { | ||
| "node": "^18.20.0 || ^20.17.0 || >=22.8.0" | ||
| "node": "^20.19.0 || >=22.12.0" | ||
| }, | ||
@@ -27,0 +27,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
71340
0.56%619
0.49%Updated
Updated