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

@humanwhocodes/momoa

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humanwhocodes/momoa - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

24

api.js

@@ -806,14 +806,16 @@ 'use strict';

while (token && token.value !== "}") {
// add the value into the array
members.push(parseProperty(token));
token = next();
if (token.value === ",") {
if (token && token.value !== "}") {
do {
// add the value into the array
members.push(parseProperty(token));
token = next();
} else {
break;
}
if (token.value === ",") {
token = next();
} else {
break;
}
} while (token);
}

@@ -820,0 +822,0 @@

{
"name": "@humanwhocodes/momoa",
"version": "2.0.1",
"version": "2.0.2",
"description": "JSON AST parser, tokenizer, printer, traverser.",

@@ -23,3 +23,3 @@ "author": "Nicholas C. Zakas",

"regen": "npm run build && node tools/regenerate-test-data.js",
"prepublish": "npm run build",
"prepare": "npm run build",
"pretest": "npm run build",

@@ -26,0 +26,0 @@ "test": "mocha -r esm tests/**/*.js"

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