From d0a6c2f14aa3fca8a276216cf7cdc7ee1de65152 Mon Sep 17 00:00:00 2001 From: Nikhil Singhal Date: Thu, 22 Sep 2022 18:05:07 -0700 Subject: [PATCH 1/3] build: define main field --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 08f9961..ec7d1b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jsonpath", "description": "Query JavaScript objects with JSONPath expressions. Robust / safe JSONPath engine for Node.js.", - "version": "1.1.1", + "version": "1.1.2", "author": "david@fmail.co.uk", "scripts": { "prepublishOnly": "node lib/aesprim.js > generated/aesprim-browser.js", @@ -14,6 +14,7 @@ "underscore": "1.12.1" }, "browser": "./jsonpath.js", + "main": "index.js", "alias": { "./lib/aesprim.js": "./generated/aesprim-browser.js" }, From b4bfd248c191d84daa39390ed50f4595ecb59beb Mon Sep 17 00:00:00 2001 From: Nikhil Singhal Date: Thu, 22 Sep 2022 18:27:56 -0700 Subject: [PATCH 2/3] build: update package name to prevent name collision --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec7d1b7..4c46cd6 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "jsonpath", + "name": "@earthyorange/jsonpath", "description": "Query JavaScript objects with JSONPath expressions. Robust / safe JSONPath engine for Node.js.", "version": "1.1.2", "author": "david@fmail.co.uk", From e9bbc1008609b0b359632707ec6f194f5f8ee8e1 Mon Sep 17 00:00:00 2001 From: Nikhil Singhal Date: Thu, 22 Sep 2022 18:28:27 -0700 Subject: [PATCH 3/3] build: update underscore version to fix vulnerability --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4c46cd6..7570494 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "esprima": "1.2.2", "static-eval": "2.0.2", - "underscore": "1.12.1" + "underscore": "1.13.4" }, "browser": "./jsonpath.js", "main": "index.js",