You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

esutils

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.5 to 1.1.6

20

lib/code.js

@@ -29,3 +29,3 @@ /*

var Regex;
var Regex, NON_ASCII_WHITESPACES;

@@ -43,3 +43,5 @@ // See `tools/generate-identifier-regex.js`.

function isHexDigit(ch) {
return isDecimalDigit(ch) || (97 <= ch && ch <= 102) || (65 <= ch && ch <= 70);
return isDecimalDigit(ch) || // 0..9
(97 <= ch && ch <= 102) || // a..f
(65 <= ch && ch <= 70); // A..F
}

@@ -53,5 +55,13 @@

NON_ASCII_WHITESPACES = [
0x1680, 0x180E,
0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A,
0x202F, 0x205F,
0x3000,
0xFEFF
];
function isWhiteSpace(ch) {
return (ch === 0x20) || (ch === 0x09) || (ch === 0x0B) || (ch === 0x0C) || (ch === 0xA0) ||
(ch >= 0x1680 && [0x1680, 0x180E, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202F, 0x205F, 0x3000, 0xFEFF].indexOf(ch) >= 0);
(ch >= 0x1680 && NON_ASCII_WHITESPACES.indexOf(ch) >= 0);
}

@@ -68,3 +78,3 @@

function isIdentifierStart(ch) {
return (ch >= 97 && ch <= 122) || // a..z
return (ch >= 97 && ch <= 122) || // a..z
(ch >= 65 && ch <= 90) || // A..Z

@@ -77,3 +87,3 @@ (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore)

function isIdentifierPart(ch) {
return (ch >= 97 && ch <= 122) || // a..z
return (ch >= 97 && ch <= 122) || // a..z
(ch >= 65 && ch <= 90) || // A..Z

@@ -80,0 +90,0 @@ (ch >= 48 && ch <= 57) || // 0..9

@@ -6,3 +6,3 @@ {

"main": "lib/utils.js",
"version": "1.1.5",
"version": "1.1.6",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=0.10.0"

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc