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

numenor

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numenor - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

9

lib/Parser/Parselet/ArrayLiteral.js

@@ -28,7 +28,6 @@ "use strict";

// support trailing comma
if (parser.match(_Lexer.TokenType.Comma)) {
const comma = parser.shift(); // but not [,]
if (parser.match(_Lexer.TokenType.RBracket)) {
throw new SyntaxError((0, _Error.UnknownToken)(comma));
if (parser.match(_Lexer.TokenType.RBracket)) {
// but not [,]
if (items.length === 0) {
throw new SyntaxError((0, _Error.UnknownToken)(parser.token));
}

@@ -35,0 +34,0 @@

@@ -30,7 +30,6 @@ "use strict";

// support trailing comma
if (parser.match(_Lexer.TokenType.Comma)) {
const comma = parser.shift(); // but not (,)
if (parser.match(_Lexer.TokenType.RParen)) {
throw new SyntaxError((0, _Error.UnknownToken)(comma));
if (parser.match(_Lexer.TokenType.RParen)) {
// but not (,)
if (args.length === 0) {
throw new SyntaxError((0, _Error.UnknownToken)(parser.token));
}

@@ -37,0 +36,0 @@

@@ -28,7 +28,6 @@ "use strict";

// support trailing comma
if (parser.match(_Lexer.TokenType.Comma)) {
const comma = parser.shift(); // but not {,}
if (parser.match(_Lexer.TokenType.RBrace)) {
throw new SyntaxError((0, _Error.UnknownToken)(comma));
if (parser.match(_Lexer.TokenType.RBrace)) {
// but not {,}
if (items.length === 0) {
throw new SyntaxError((0, _Error.UnknownToken)(parser.token));
}

@@ -35,0 +34,0 @@

{
"name": "numenor",
"version": "0.0.9",
"version": "0.0.10",
"description": "Customizable, safe evaluator of JavaScript-like expressions.",

@@ -5,0 +5,0 @@ "keywords": [

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