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

json-to-ast

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-to-ast - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

9

build.js

@@ -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 @@ }

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