weavedb-node-client 0.39.0 → 0.39.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 +4 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -72,7 +72,7 @@ class SDK extends Base {
72
72
  rpc,
73
73
  this.secure
74
74
  ? grpc.ChannelCredentials.createSsl()
75
- : grpc.credentials.createInsecure()
75
+ : grpc.credentials.createInsecure(),
76
76
  )
77
77
  }
78
78
  if (typeof window === "object") {
@@ -124,7 +124,7 @@ class SDK extends Base {
124
124
  query: JSON.stringify(query),
125
125
  res: (err, res) => ret({ err, result: res }),
126
126
  },
127
- "__admin__"
127
+ "__admin__",
128
128
  )
129
129
  } else {
130
130
  this.client.query(request, (err, response) => {
@@ -184,7 +184,8 @@ class SDK extends Base {
184
184
  return this.readQuery("getAddressLink", address, nocache)
185
185
  }
186
186
 
187
- async admin(op, opt) {
187
+ async admin(op, opt = {}) {
188
+ opt.nonce ??= 1
188
189
  return this._write2("admin", op, opt)
189
190
  }
190
191
  async node(op, opt) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weavedb-node-client",
3
- "version": "0.39.0",
3
+ "version": "0.39.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.39.0"
14
+ "weavedb-base": "^0.39.1"
15
15
  }
16
16
  }