@babel/template
Advanced tools
Comparing version 7.23.9 to 7.24.0
@@ -24,3 +24,3 @@ "use strict"; | ||
Object.keys(replacements).forEach(key => { | ||
if (Object.prototype.hasOwnProperty.call(defaultReplacements, key)) { | ||
if (hasOwnProperty.call(defaultReplacements, key)) { | ||
throw new Error("Unexpected replacement overlap."); | ||
@@ -27,0 +27,0 @@ } |
@@ -23,3 +23,3 @@ "use strict"; | ||
metadata.placeholders.forEach(placeholder => { | ||
if (!Object.prototype.hasOwnProperty.call(replacements, placeholder.name)) { | ||
if (!hasOwnProperty.call(replacements, placeholder.name)) { | ||
const placeholderName = placeholder.name; | ||
@@ -26,0 +26,0 @@ throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a |
{ | ||
"name": "@babel/template", | ||
"version": "7.23.9", | ||
"version": "7.24.0", | ||
"description": "Generate an AST from a string template.", | ||
@@ -20,4 +20,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/code-frame": "^7.23.5", | ||
"@babel/parser": "^7.23.9", | ||
"@babel/types": "^7.23.9" | ||
"@babel/parser": "^7.24.0", | ||
"@babel/types": "^7.24.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68860
Updated@babel/parser@^7.24.0
Updated@babel/types@^7.24.0