@humanwhocodes/momoa
Advanced tools
Comparing version 2.0.2 to 2.0.3
23
api.js
@@ -847,14 +847,17 @@ 'use strict'; | ||
while (token && token.value !== "]") { | ||
if (token && token.value !== "]") { | ||
// add the value into the array | ||
elements.push(parseValue(token)); | ||
do { | ||
token = next(); | ||
if (token.value === ",") { | ||
token = next(); | ||
} else { | ||
break; | ||
} | ||
// add the value into the array | ||
elements.push(parseValue(token)); | ||
token = next(); | ||
if (token.value === ",") { | ||
token = next(); | ||
} else { | ||
break; | ||
} | ||
} while (token); | ||
} | ||
@@ -861,0 +864,0 @@ |
{ | ||
"name": "@humanwhocodes/momoa", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "JSON AST parser, tokenizer, printer, traverser.", | ||
@@ -5,0 +5,0 @@ "author": "Nicholas C. Zakas", |
48899
915