Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cjs-module-lexer

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjs-module-lexer - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

lexer.js

@@ -823,3 +823,3 @@ let source, pos, end;

let ch = source.codePointAt(pos);
if (!isIdentifierStart(ch, true) && ch != '\\')
if (!isIdentifierStart(ch, true) || ch === '\\')
return false;

@@ -831,3 +831,3 @@ pos += codePointLen(ch);

}
else if (ch == '\\') {
else if (ch === '\\') {
// no identifier escapes support for now

@@ -834,0 +834,0 @@ return false;

{
"name": "cjs-module-lexer",
"version": "0.3.2",
"version": "0.3.3",
"description": "Lexes CommonJS modules, returning their named exports metadata",

@@ -5,0 +5,0 @@ "main": "lexer.js",

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