@based/client
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -388,2 +388,5 @@ "use strict"; | ||
console.log('HELLO OBSERVABLE FUNCTIONS', JSON.stringify(fns, null, 2)); | ||
// const observables = fns.map((fn) => { | ||
// return new Observable(this.client, <string>fn.name, fn.payload) | ||
// }) | ||
// TODO: create observables for these fns and combine with below | ||
@@ -400,2 +403,6 @@ return new observable_1.Observable(this.client, { $db: op.db, data: queryObj }); | ||
} | ||
else if (op.fnCall) { | ||
queryObj[k] = this.call(op.fnCall.name, op.fnCall.payload); | ||
return; | ||
} | ||
const { id } = await this.set(op.set); | ||
@@ -402,0 +409,0 @@ const getOpts = (0, utils_1.deepCopy)(op.get); |
{ | ||
"name": "@based/client", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "dist/index.js", | ||
@@ -17,4 +17,4 @@ "browser": { | ||
"@based/get-service": "0.2.7", | ||
"@based/graphql": "^1.0.1", | ||
"@based/types": "^1.0.0", | ||
"@based/graphql": "^1.0.4", | ||
"@based/types": "^1.0.1", | ||
"@saulx/diff": "^1.1.3", | ||
@@ -21,0 +21,0 @@ "@saulx/hash": "^1.1.0", |
Sorry, the diff of this file is not supported yet
183037
3031
Updated@based/graphql@^1.0.4
Updated@based/types@^1.0.1