json-to-ast
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -413,3 +413,2 @@ (function (global, factory) { | ||
var startIndex = index; | ||
var passedValueIndex = index; | ||
var state = stringStates._START_; | ||
@@ -436,7 +435,5 @@ | ||
index++; | ||
passedValueIndex = index; | ||
state = stringStates.ESCAPE; | ||
} else if (char === '"') { | ||
index++; | ||
passedValueIndex = index; | ||
return { | ||
@@ -447,6 +444,5 @@ type: tokenTypes.STRING, | ||
index: index, | ||
value: input.slice(startIndex, passedValueIndex) | ||
value: input.slice(startIndex, index) | ||
}; | ||
} else { | ||
passedValueIndex = index + 1; | ||
index++; | ||
@@ -461,3 +457,2 @@ } | ||
index++; | ||
passedValueIndex = index; | ||
if (char === 'u') { | ||
@@ -818,3 +813,3 @@ for (var i = 0; i < 4; i++) { | ||
}; | ||
var state = objectStates._START_; | ||
var state = propertyStates._START_; | ||
@@ -821,0 +816,0 @@ while (index < tokenList.length) { |
{ | ||
"name": "json-to-ast", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"author": "Vlad Trushin", | ||
@@ -5,0 +5,0 @@ "description": "JSON AST parser", |
@@ -91,3 +91,3 @@ [npm-icon]: https://img.shields.io/npm/v/json-to-ast.svg | ||
type: 'Object', | ||
children: <Property[]>, | ||
children: <Property>[], | ||
loc?: Object | ||
@@ -102,3 +102,3 @@ } | ||
key: <Identifier>, | ||
value: <Object | Array | Literal>, | ||
value: Object | Array | <Literal>, | ||
loc?: Object | ||
@@ -112,4 +112,4 @@ } | ||
type: 'Identifier', | ||
value: String, | ||
raw: String, | ||
value: string, | ||
raw: string, | ||
loc?: Object | ||
@@ -123,3 +123,3 @@ } | ||
type: 'Array', | ||
children: <(Object | Array | Literal)[]>, | ||
children: (Object | Array | <Literal>)[], | ||
loc?: Object | ||
@@ -133,4 +133,4 @@ } | ||
type: 'Literal', | ||
value: String | Number | Boolean | null, | ||
raw: String, | ||
value: string | number | boolean | null, | ||
raw: string, | ||
loc?: Object | ||
@@ -137,0 +137,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29434
873