From 92e2896e0a9e07cf171b8e03fe9d79b7f3a822e3 Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Fri, 22 Sep 2023 03:15:37 +0200 Subject: [PATCH] Bump jora to 1.0.0-beta.8 --- package-lock.json | 39 ++++++++++++++++++++++++++------ package.json | 2 +- src/widget/data-extension-api.js | 10 ++++---- 3 files changed, 39 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index bfa8cdca..576b0c92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@discoveryjs/json-ext": "^0.5.7", "codemirror": "^5.65.2", "hitext": "^1.0.0-beta.1", - "jora": "1.0.0-beta.7", + "jora": "1.0.0-beta.8", "marked": "^4.3.0" }, "devDependencies": { @@ -184,6 +184,19 @@ "node": ">=8.0.0" } }, + "node_modules/@discoveryjs/discovery/node_modules/jora": { + "version": "1.0.0-beta.7", + "resolved": "https://registry.npmjs.org/jora/-/jora-1.0.0-beta.7.tgz", + "integrity": "sha512-7Mq37XUPQM/fEetH8Z4iHTABWgoq64UL9mIRfssX1b0Ogns3TqbOS0UIV7gwQ3D0RshfLJzGgbbW17UyFjxSLQ==", + "dev": true, + "peer": true, + "dependencies": { + "@discoveryjs/natural-compare": "^1.0.0" + }, + "engines": { + "node": "^10.12.0 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -2949,9 +2962,9 @@ "dev": true }, "node_modules/jora": { - "version": "1.0.0-beta.7", - "resolved": "https://registry.npmjs.org/jora/-/jora-1.0.0-beta.7.tgz", - "integrity": "sha512-7Mq37XUPQM/fEetH8Z4iHTABWgoq64UL9mIRfssX1b0Ogns3TqbOS0UIV7gwQ3D0RshfLJzGgbbW17UyFjxSLQ==", + "version": "1.0.0-beta.8", + "resolved": "https://registry.npmjs.org/jora/-/jora-1.0.0-beta.8.tgz", + "integrity": "sha512-f3WpYwfDTlhfSdyCkAlAXSKRpwZYBgCDnyWmA9D0yyItCTFnFefKtvFpaczrj/FItkgDkHiewgFuHsgh4TmokA==", "dependencies": { "@discoveryjs/natural-compare": "^1.0.0" }, @@ -4473,6 +4486,18 @@ "hitext": "^1.0.0-beta.1", "jora": "1.0.0-beta.7", "marked": "^4.0.18" + }, + "dependencies": { + "jora": { + "version": "1.0.0-beta.7", + "resolved": "https://registry.npmjs.org/jora/-/jora-1.0.0-beta.7.tgz", + "integrity": "sha512-7Mq37XUPQM/fEetH8Z4iHTABWgoq64UL9mIRfssX1b0Ogns3TqbOS0UIV7gwQ3D0RshfLJzGgbbW17UyFjxSLQ==", + "dev": true, + "peer": true, + "requires": { + "@discoveryjs/natural-compare": "^1.0.0" + } + } } }, "@discoveryjs/json-ext": { @@ -6373,9 +6398,9 @@ "dev": true }, "jora": { - "version": "1.0.0-beta.7", - "resolved": "https://registry.npmjs.org/jora/-/jora-1.0.0-beta.7.tgz", - "integrity": "sha512-7Mq37XUPQM/fEetH8Z4iHTABWgoq64UL9mIRfssX1b0Ogns3TqbOS0UIV7gwQ3D0RshfLJzGgbbW17UyFjxSLQ==", + "version": "1.0.0-beta.8", + "resolved": "https://registry.npmjs.org/jora/-/jora-1.0.0-beta.8.tgz", + "integrity": "sha512-f3WpYwfDTlhfSdyCkAlAXSKRpwZYBgCDnyWmA9D0yyItCTFnFefKtvFpaczrj/FItkgDkHiewgFuHsgh4TmokA==", "requires": { "@discoveryjs/natural-compare": "^1.0.0" } diff --git a/package.json b/package.json index 8525783b..6f35861e 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@discoveryjs/json-ext": "^0.5.7", "codemirror": "^5.65.2", "hitext": "^1.0.0-beta.1", - "jora": "1.0.0-beta.7", + "jora": "1.0.0-beta.8", "marked": "^4.3.0" }, "devDependencies": { diff --git a/src/widget/data-extension-api.js b/src/widget/data-extension-api.js index a97ca399..9d3583c5 100644 --- a/src/widget/data-extension-api.js +++ b/src/widget/data-extension-api.js @@ -15,9 +15,11 @@ export function createDataExtensionApi(host) { resolveValueLinks, addValueAnnotation, addQueryHelpers(helpers) { - joraSetup = jora.setup(queryCustomMethods = { - ...queryCustomMethods, - ...helpers + joraSetup = jora.setup({ + methods: queryCustomMethods = { + ...queryCustomMethods, + ...helpers + } }); }, query(query, ...args) { @@ -35,7 +37,7 @@ export function createDataExtensionApi(host) { ? () => callAction(actionName, ...args) : undefined }; - let joraSetup = jora.setup(queryCustomMethods); + let joraSetup = jora.setup({ methods: queryCustomMethods }); return Object.assign(host => Object.assign(host, { objectMarkers,