@babel/helper-validator-identifier
Advanced tools
Comparing version 7.22.20 to 7.24.5
{ | ||
"name": "@babel/helper-validator-identifier", | ||
"version": "7.22.20", | ||
"version": "7.24.5", | ||
"description": "Validate identifier/keywords name", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -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
Sorry, the diff of this file is not supported yet
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
49154