Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@babel/template

Package Overview
Dependencies
Maintainers
4
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/template - npm Package Compare versions

Comparing version
8.0.0-alpha.17
to
8.0.0-beta.0
+4
-1
lib/index.js

@@ -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