From 3f7708e050965c10dc856560aa36b33fa69eb32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Fri, 18 Oct 2024 11:30:54 +0200 Subject: [PATCH] Update jsonpath-plus to version 10.0.6 --- package.json | 2 +- src/jsonpath.ts | 2 +- yarn.lock | 27 +++++++++++++++++++++++---- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4030f7b..cbd5385 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@grafana/ui": "10.4.2", "dayjs": "^1.10.4", "jsonata": "^1.8.7", - "jsonpath-plus": "^6.0.1", + "jsonpath-plus": "^10.0.6", "memory-cache": "^0.2.0", "moment": "2.29.4", "react": "17.0.2", diff --git a/src/jsonpath.ts b/src/jsonpath.ts index cab1f4f..a6eb21b 100644 --- a/src/jsonpath.ts +++ b/src/jsonpath.ts @@ -3,6 +3,6 @@ import { JSONPath, JSONPathOptions } from 'jsonpath-plus'; export function jp(options: JSONPathOptions): any { return JSONPath({ ...options, - preventEval: true, + eval: false, }); } diff --git a/yarn.lock b/yarn.lock index 06474d8..5120382 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1420,6 +1420,16 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jsep-plugin/assignment@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jsep-plugin/assignment/-/assignment-1.2.1.tgz#07277bdd7862451a865d391e2142efba33f46c9b" + integrity sha512-gaHqbubTi29aZpVbBlECRpmdia+L5/lh2BwtIJTmtxdbecEyyX/ejAOg7eQDGNvGOUmPY7Z2Yxdy9ioyH/VJeA== + +"@jsep-plugin/regex@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.3.tgz#3aeaa2e5fa45d89de116aeafbfa41c95935b7f6d" + integrity sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug== + "@leeoniya/ufuzzy@1.0.14": version "1.0.14" resolved "https://registry.yarnpkg.com/@leeoniya/ufuzzy/-/ufuzzy-1.0.14.tgz#01572c0de9cfa1420cf6ecac76dd59db5ebd1337" @@ -5886,6 +5896,11 @@ jsdom@^20.0.0: ws "^8.11.0" xml-name-validator "^4.0.0" +jsep@^1.3.9: + version "1.3.9" + resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.3.9.tgz#8ce42df80ee9c1b39e52d0dd062a465342f35440" + integrity sha512-i1rBX5N7VPl0eYb6+mHNp52sEuaS2Wi8CDYx1X5sn9naevL78+265XJqy1qENEk7mRKwS06NHpUqiBwR7qeodw== + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -5945,10 +5960,14 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -jsonpath-plus@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz#9a3e16cedadfab07a3d8dc4e8cd5df4ed8f49c4d" - integrity sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw== +jsonpath-plus@^10.0.6: + version "10.0.6" + resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.0.6.tgz#09c4db1670a533c3022ec3f59df61a33de975a00" + integrity sha512-Q0KCash90S0WQnPnE/W0uVXQSww4NkO34COfs+gbq0fk+Kv03FYpZ+uU2I7soLLaS4d/ywsm9PxplZsTMmfBmg== + dependencies: + "@jsep-plugin/assignment" "^1.2.1" + "@jsep-plugin/regex" "^1.0.3" + jsep "^1.3.9" "jsx-ast-utils@^2.4.1 || ^3.0.0": version "3.3.5"