Skip to content

Commit

Permalink
Bump jora to 1.0.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Sep 22, 2023
1 parent 47d845f commit 92e2896
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 12 deletions.
39 changes: 32 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 6 additions & 4 deletions src/widget/data-extension-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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,
Expand Down

0 comments on commit 92e2896

Please sign in to comment.