New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@jsonhero/parser

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonhero/parser - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+2
-2
lib/index.js

@@ -31,3 +31,3 @@ "use strict";

value: object,
type: (0, json_infer_types_1.inferType)(object, { shallow: true }),
type: (0, json_infer_types_1.inferType)(object),
children: null,

@@ -60,3 +60,3 @@ };

displayName: (0, naming_1.friendlyName)(name),
type: (0, json_infer_types_1.inferType)(results[0], { shallow: true }),
type: (0, json_infer_types_1.inferType)(results[0]),
children: null,

@@ -63,0 +63,0 @@ };

{
"name": "@jsonhero/parser",
"version": "1.0.3",
"version": "1.0.4",
"description": "A parser that walks through a JSON file and for each value determines the path to it, the type and paths to any children. It also builds a model of the structure of the data.",

@@ -50,5 +50,5 @@ "main": "lib/index.js",

"dependencies": {
"@jsonhero/json-infer-types": "^0.1.0",
"@jsonhero/json-infer-types": "^1.0.1",
"@jsonhero/path": "^1.0.6"
}
}
+45
-15

@@ -92,3 +92,12 @@ # JSON Hero Parser

},
"type": { "name": "object" },
"type": {
"name": "object",
"value": {
"people": [
{ "name": "Matt", "age": 36 },
{ "name": "James", "age": 39 }
],
"count": 2
}
},
"children": ["$.people", "$.count"]

@@ -104,3 +113,9 @@ },

],
"type": { "name": "array" },
"type": {
"name": "array",
"value": [
{ "name": "Matt", "age": 36 },
{ "name": "James", "age": 39 }
]
},
"children": ["$.people.0", "$.people.1"]

@@ -113,3 +128,3 @@ },

"value": { "name": "Matt", "age": 36 },
"type": { "name": "object" },
"type": { "name": "object", "value": { "name": "Matt", "age": 36 } },
"children": ["$.people.0.name", "$.people.0.age"]

@@ -122,3 +137,3 @@ },

"value": "Matt",
"type": { "name": "string" },
"type": { "name": "string", "value": "Matt" },
"children": null

@@ -131,3 +146,3 @@ },

"value": 36,
"type": { "name": "int" },
"type": { "name": "int", "value": 36 },
"children": null

@@ -140,3 +155,3 @@ },

"value": { "name": "James", "age": 39 },
"type": { "name": "object" },
"type": { "name": "object", "value": { "name": "James", "age": 39 } },
"children": ["$.people.1.name", "$.people.1.age"]

@@ -149,3 +164,3 @@ },

"value": "James",
"type": { "name": "string" },
"type": { "name": "string", "value": "James" },
"children": null

@@ -158,3 +173,3 @@ },

"value": 39,
"type": { "name": "int" },
"type": { "name": "int", "value": 39 },
"children": null

@@ -167,3 +182,3 @@ },

"value": 2,
"type": { "name": "int" },
"type": { "name": "int", "value": 2 },
"children": null

@@ -180,3 +195,12 @@ }

"displayName": "Root",
"type": { "name": "object" },
"type": {
"name": "object",
"value": {
"people": [
{ "name": "Matt", "age": 36 },
{ "name": "James", "age": 39 }
],
"count": 2
}
},
"children": ["$.people", "$.count"]

@@ -188,3 +212,9 @@ },

"displayName": "People",
"type": { "name": "array" },
"type": {
"name": "array",
"value": [
{ "name": "Matt", "age": 36 },
{ "name": "James", "age": 39 }
]
},
"children": ["$.people.*"]

@@ -196,3 +226,3 @@ },

"displayName": "People",
"type": { "name": "object" },
"type": { "name": "object", "value": { "name": "Matt", "age": 36 } },
"children": ["$.people.*.name", "$.people.*.age"]

@@ -204,3 +234,3 @@ },

"displayName": "Name",
"type": { "name": "string" },
"type": { "name": "string", "value": "Matt" },
"children": null

@@ -212,3 +242,3 @@ },

"displayName": "Age",
"type": { "name": "int" },
"type": { "name": "int", "value": 36 },
"children": null

@@ -220,3 +250,3 @@ },

"displayName": "Count",
"type": { "name": "int" },
"type": { "name": "int", "value": 2 },
"children": null

@@ -223,0 +253,0 @@ }