weavedb-node-client 0.39.1 → 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.
- package/index.js +4 -3
- package/package.json +1 -1
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) {
|