Socket
Socket
Sign inDemoInstall

@babel/helper-validator-identifier

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-validator-identifier - npm Package Compare versions

Comparing version 8.0.0-alpha.8 to 8.0.0-alpha.9

lib/index.d.ts

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc