@babel/helper-validator-identifier
Advanced tools
Comparing version 8.0.0-alpha.8 to 8.0.0-alpha.9
{ | ||
"name": "@babel/helper-validator-identifier", | ||
"version": "8.0.0-alpha.8", | ||
"version": "8.0.0-alpha.9", | ||
"description": "Validate identifier/keywords name", | ||
@@ -16,3 +16,6 @@ "repository": { | ||
"exports": { | ||
".": "./lib/index.js", | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"default": "./lib/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -25,3 +28,3 @@ }, | ||
"engines": { | ||
"node": "^16.20.0 || ^18.16.0 || >=20.0.0" | ||
"node": "^18.20.0 || ^20.10.0 || >=21.0.0" | ||
}, | ||
@@ -28,0 +31,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
@@ -16,3 +16,3 @@ "use strict"; | ||
).filter(function (ch) { | ||
return ch > 0x7f && search(start, ch, last + 1) == -1; | ||
return ch > 0x7f && search(start, ch, last + 1) === -1; | ||
}); | ||
@@ -44,3 +44,3 @@ | ||
let to = from; | ||
while (i < chars.length - 1 && chars[i + 1] == to + 1) { | ||
while (i < chars.length - 1 && chars[i + 1] === to + 1) { | ||
i++; | ||
@@ -50,4 +50,4 @@ to++; | ||
if (to <= 0xffff) { | ||
if (from == to) re += esc(from); | ||
else if (from + 1 == to) re += esc(from) + esc(to); | ||
if (from === to) re += esc(from); | ||
else if (from + 1 === to) re += esc(from) + esc(to); | ||
else re += esc(from) + "-" + esc(to); | ||
@@ -54,0 +54,0 @@ } else { |
Sorry, the diff of this file is not supported yet
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
48662
7
210