weavedb-node-client 0.18.0 → 0.18.2

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.
Files changed (2) hide show
  1. package/index.js +0 -15
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -107,15 +107,6 @@ class SDK extends Base {
107
107
  if (!isNil(EthWallet)) this.setEthWallet(EthWallet)
108
108
  }
109
109
 
110
- parseQuery(func, query) {
111
- let nocache = false
112
- if (includes(func)(reads) && is(Boolean, last(query))) {
113
- nocache = last(query)
114
- query = init(query)
115
- }
116
- return { nocache, query }
117
- }
118
-
119
110
  async write(func, query, nocache, bundle, relay = false) {
120
111
  if (!includes(func)(reads)) {
121
112
  nocache = false
@@ -159,12 +150,6 @@ class SDK extends Base {
159
150
  return await this.write(params.function, query, nocache)
160
151
  }
161
152
 
162
- async readQuery(func, ...query) {
163
- let nocache = false
164
- ;({ nocache, query } = this.parseQuery(func, query))
165
- return await this.read({ function: func, query }, nocache)
166
- }
167
-
168
153
  async getNonce(addr) {
169
154
  return this.readQuery("getNonce", addr, true)
170
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weavedb-node-client",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
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.0"
14
+ "weavedb-base": "^0.18.1"
15
15
  }
16
16
  }