weavedb-node-client 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -93,8 +93,13 @@ class SDK extends Base {
|
|
|
93
93
|
return { nocache, query }
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
async _request(func, query, nocache = false) {
|
|
97
|
-
if (!includes(func)(reads))
|
|
96
|
+
async _request(func, query, nocache, bundle, relay = false) {
|
|
97
|
+
if (!includes(func)(reads)) {
|
|
98
|
+
nocache = false
|
|
99
|
+
if (relay) {
|
|
100
|
+
return query
|
|
101
|
+
}
|
|
102
|
+
}
|
|
98
103
|
const request = {
|
|
99
104
|
method: `${func}@${this.contractTxId}`,
|
|
100
105
|
query: JSON.stringify(query),
|