@humanwhocodes/momoa
Advanced tools
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" |
48837
913