weavedb-node-client 0.18.2 → 0.18.3
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 +1 -22
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -23,27 +23,6 @@ const packageDefinition = protoLoader.loadSync(PROTO_PATH, {
|
|
|
23
23
|
const weavedb_proto = grpc.loadPackageDefinition(packageDefinition).weavedb
|
|
24
24
|
let Arweave = require("arweave")
|
|
25
25
|
|
|
26
|
-
const reads = [
|
|
27
|
-
"get",
|
|
28
|
-
"cget",
|
|
29
|
-
"getIndexes",
|
|
30
|
-
"getCrons",
|
|
31
|
-
"getSchema",
|
|
32
|
-
"getRules",
|
|
33
|
-
"getIds",
|
|
34
|
-
"getOwner",
|
|
35
|
-
"getAddressLink",
|
|
36
|
-
"getAlgorithms",
|
|
37
|
-
"getLinkedContract",
|
|
38
|
-
"getEvolve",
|
|
39
|
-
"getVersion",
|
|
40
|
-
"getRelayerJob",
|
|
41
|
-
"listRelayerJobs",
|
|
42
|
-
"listCollections",
|
|
43
|
-
"getInfo",
|
|
44
|
-
,
|
|
45
|
-
]
|
|
46
|
-
|
|
47
26
|
class SDK extends Base {
|
|
48
27
|
constructor({
|
|
49
28
|
rpc,
|
|
@@ -108,7 +87,7 @@ class SDK extends Base {
|
|
|
108
87
|
}
|
|
109
88
|
|
|
110
89
|
async write(func, query, nocache, bundle, relay = false) {
|
|
111
|
-
if (!includes(func)(reads)) {
|
|
90
|
+
if (!includes(func)(this.reads)) {
|
|
112
91
|
nocache = false
|
|
113
92
|
if (relay) {
|
|
114
93
|
return query
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weavedb-node-client",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"@grpc/proto-loader": "^0.5.0",
|
|
12
12
|
"arweave": "^1.12.2",
|
|
13
13
|
"ramda": "^0.28.0",
|
|
14
|
-
"weavedb-base": "^0.18.
|
|
14
|
+
"weavedb-base": "^0.18.2"
|
|
15
15
|
}
|
|
16
16
|
}
|