@surrealdb/node 2.3.2 → 2.3.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/dist/surrealdb-node.d.ts +9 -2
- package/dist/surrealdb-node.darwin-arm64.node +0 -0
- package/dist/surrealdb-node.darwin-x64.node +0 -0
- package/dist/surrealdb-node.linux-arm64-gnu.node +0 -0
- package/dist/surrealdb-node.linux-arm64-musl.node +0 -0
- package/dist/surrealdb-node.linux-x64-gnu.node +0 -0
- package/dist/surrealdb-node.linux-x64-musl.node +0 -0
- package/dist/surrealdb-node.mjs +27 -26
- package/dist/surrealdb-node.win32-arm64-msvc.node +0 -0
- package/dist/surrealdb-node.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/surrealdb-node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import { ConnectionState, DriverContext, EngineEvents, Engines,
|
|
3
|
+
import { ConnectionState, DriverContext, EngineEvents, Engines, LiveMessage, RpcEngine, RpcRequest, SurrealEngine, Uuid } from 'surrealdb';
|
|
4
4
|
|
|
5
5
|
type CapabilitiesAllowDenyList = {
|
|
6
6
|
allow?: boolean | string[];
|
|
@@ -23,9 +23,16 @@ type ConnectionOptions = {
|
|
|
23
23
|
* The engine implementation responsible for communicating with an embedded
|
|
24
24
|
* WebAssembly build of SurrealDB.
|
|
25
25
|
*/
|
|
26
|
-
export declare class NodeEngine extends
|
|
26
|
+
export declare class NodeEngine extends RpcEngine implements SurrealEngine {
|
|
27
27
|
#private;
|
|
28
28
|
constructor(context: DriverContext, options?: ConnectionOptions);
|
|
29
|
+
features: Set<{
|
|
30
|
+
"__#1@#private": any;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly sinceVersion: string | undefined;
|
|
33
|
+
readonly untilVersion: string | undefined;
|
|
34
|
+
supports(version: string): boolean;
|
|
35
|
+
}>;
|
|
29
36
|
open(state: ConnectionState): void;
|
|
30
37
|
close(): Promise<void>;
|
|
31
38
|
subscribe<K extends keyof EngineEvents>(event: K, listener: (...payload: EngineEvents[K]) => void): () => void;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/surrealdb-node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelIterator,
|
|
1
|
+
import { ChannelIterator, ConnectionUnavailableError, Features, Publisher, RpcEngine, UnexpectedConnectionError } from "surrealdb";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
|
|
4
4
|
//#region napi/index.js
|
|
@@ -59,7 +59,7 @@ function requireNative() {
|
|
|
59
59
|
try {
|
|
60
60
|
const binding = require("@surrealdb/node-android-arm64");
|
|
61
61
|
const bindingPackageVersion = require("@surrealdb/node-android-arm64/package.json").version;
|
|
62
|
-
if (bindingPackageVersion !== "2.3.
|
|
62
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
63
63
|
return binding;
|
|
64
64
|
} catch (e) {
|
|
65
65
|
loadErrors.push(e);
|
|
@@ -73,7 +73,7 @@ function requireNative() {
|
|
|
73
73
|
try {
|
|
74
74
|
const binding = require("@surrealdb/node-android-arm-eabi");
|
|
75
75
|
const bindingPackageVersion = require("@surrealdb/node-android-arm-eabi/package.json").version;
|
|
76
|
-
if (bindingPackageVersion !== "2.3.
|
|
76
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
77
77
|
return binding;
|
|
78
78
|
} catch (e) {
|
|
79
79
|
loadErrors.push(e);
|
|
@@ -88,7 +88,7 @@ function requireNative() {
|
|
|
88
88
|
try {
|
|
89
89
|
const binding = require("@surrealdb/node-win32-x64-msvc");
|
|
90
90
|
const bindingPackageVersion = require("@surrealdb/node-win32-x64-msvc/package.json").version;
|
|
91
|
-
if (bindingPackageVersion !== "2.3.
|
|
91
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
92
92
|
return binding;
|
|
93
93
|
} catch (e) {
|
|
94
94
|
loadErrors.push(e);
|
|
@@ -102,7 +102,7 @@ function requireNative() {
|
|
|
102
102
|
try {
|
|
103
103
|
const binding = require("@surrealdb/node-win32-ia32-msvc");
|
|
104
104
|
const bindingPackageVersion = require("@surrealdb/node-win32-ia32-msvc/package.json").version;
|
|
105
|
-
if (bindingPackageVersion !== "2.3.
|
|
105
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
106
106
|
return binding;
|
|
107
107
|
} catch (e) {
|
|
108
108
|
loadErrors.push(e);
|
|
@@ -116,7 +116,7 @@ function requireNative() {
|
|
|
116
116
|
try {
|
|
117
117
|
const binding = require("@surrealdb/node-win32-arm64-msvc");
|
|
118
118
|
const bindingPackageVersion = require("@surrealdb/node-win32-arm64-msvc/package.json").version;
|
|
119
|
-
if (bindingPackageVersion !== "2.3.
|
|
119
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
120
120
|
return binding;
|
|
121
121
|
} catch (e) {
|
|
122
122
|
loadErrors.push(e);
|
|
@@ -131,7 +131,7 @@ function requireNative() {
|
|
|
131
131
|
try {
|
|
132
132
|
const binding = require("@surrealdb/node-darwin-universal");
|
|
133
133
|
const bindingPackageVersion = require("@surrealdb/node-darwin-universal/package.json").version;
|
|
134
|
-
if (bindingPackageVersion !== "2.3.
|
|
134
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
135
135
|
return binding;
|
|
136
136
|
} catch (e) {
|
|
137
137
|
loadErrors.push(e);
|
|
@@ -145,7 +145,7 @@ function requireNative() {
|
|
|
145
145
|
try {
|
|
146
146
|
const binding = require("@surrealdb/node-darwin-x64");
|
|
147
147
|
const bindingPackageVersion = require("@surrealdb/node-darwin-x64/package.json").version;
|
|
148
|
-
if (bindingPackageVersion !== "2.3.
|
|
148
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
149
149
|
return binding;
|
|
150
150
|
} catch (e) {
|
|
151
151
|
loadErrors.push(e);
|
|
@@ -159,7 +159,7 @@ function requireNative() {
|
|
|
159
159
|
try {
|
|
160
160
|
const binding = require("@surrealdb/node-darwin-arm64");
|
|
161
161
|
const bindingPackageVersion = require("@surrealdb/node-darwin-arm64/package.json").version;
|
|
162
|
-
if (bindingPackageVersion !== "2.3.
|
|
162
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
163
163
|
return binding;
|
|
164
164
|
} catch (e) {
|
|
165
165
|
loadErrors.push(e);
|
|
@@ -174,7 +174,7 @@ function requireNative() {
|
|
|
174
174
|
try {
|
|
175
175
|
const binding = require("@surrealdb/node-freebsd-x64");
|
|
176
176
|
const bindingPackageVersion = require("@surrealdb/node-freebsd-x64/package.json").version;
|
|
177
|
-
if (bindingPackageVersion !== "2.3.
|
|
177
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
178
178
|
return binding;
|
|
179
179
|
} catch (e) {
|
|
180
180
|
loadErrors.push(e);
|
|
@@ -188,7 +188,7 @@ function requireNative() {
|
|
|
188
188
|
try {
|
|
189
189
|
const binding = require("@surrealdb/node-freebsd-arm64");
|
|
190
190
|
const bindingPackageVersion = require("@surrealdb/node-freebsd-arm64/package.json").version;
|
|
191
|
-
if (bindingPackageVersion !== "2.3.
|
|
191
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
192
192
|
return binding;
|
|
193
193
|
} catch (e) {
|
|
194
194
|
loadErrors.push(e);
|
|
@@ -203,7 +203,7 @@ function requireNative() {
|
|
|
203
203
|
try {
|
|
204
204
|
const binding = require("@surrealdb/node-linux-x64-musl");
|
|
205
205
|
const bindingPackageVersion = require("@surrealdb/node-linux-x64-musl/package.json").version;
|
|
206
|
-
if (bindingPackageVersion !== "2.3.
|
|
206
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
207
207
|
return binding;
|
|
208
208
|
} catch (e) {
|
|
209
209
|
loadErrors.push(e);
|
|
@@ -217,7 +217,7 @@ function requireNative() {
|
|
|
217
217
|
try {
|
|
218
218
|
const binding = require("@surrealdb/node-linux-x64-gnu");
|
|
219
219
|
const bindingPackageVersion = require("@surrealdb/node-linux-x64-gnu/package.json").version;
|
|
220
|
-
if (bindingPackageVersion !== "2.3.
|
|
220
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
221
221
|
return binding;
|
|
222
222
|
} catch (e) {
|
|
223
223
|
loadErrors.push(e);
|
|
@@ -232,7 +232,7 @@ function requireNative() {
|
|
|
232
232
|
try {
|
|
233
233
|
const binding = require("@surrealdb/node-linux-arm64-musl");
|
|
234
234
|
const bindingPackageVersion = require("@surrealdb/node-linux-arm64-musl/package.json").version;
|
|
235
|
-
if (bindingPackageVersion !== "2.3.
|
|
235
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
236
236
|
return binding;
|
|
237
237
|
} catch (e) {
|
|
238
238
|
loadErrors.push(e);
|
|
@@ -246,7 +246,7 @@ function requireNative() {
|
|
|
246
246
|
try {
|
|
247
247
|
const binding = require("@surrealdb/node-linux-arm64-gnu");
|
|
248
248
|
const bindingPackageVersion = require("@surrealdb/node-linux-arm64-gnu/package.json").version;
|
|
249
|
-
if (bindingPackageVersion !== "2.3.
|
|
249
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
250
250
|
return binding;
|
|
251
251
|
} catch (e) {
|
|
252
252
|
loadErrors.push(e);
|
|
@@ -261,7 +261,7 @@ function requireNative() {
|
|
|
261
261
|
try {
|
|
262
262
|
const binding = require("@surrealdb/node-linux-arm-musleabihf");
|
|
263
263
|
const bindingPackageVersion = require("@surrealdb/node-linux-arm-musleabihf/package.json").version;
|
|
264
|
-
if (bindingPackageVersion !== "2.3.
|
|
264
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
265
265
|
return binding;
|
|
266
266
|
} catch (e) {
|
|
267
267
|
loadErrors.push(e);
|
|
@@ -275,7 +275,7 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require("@surrealdb/node-linux-arm-gnueabihf");
|
|
277
277
|
const bindingPackageVersion = require("@surrealdb/node-linux-arm-gnueabihf/package.json").version;
|
|
278
|
-
if (bindingPackageVersion !== "2.3.
|
|
278
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
279
279
|
return binding;
|
|
280
280
|
} catch (e) {
|
|
281
281
|
loadErrors.push(e);
|
|
@@ -290,7 +290,7 @@ function requireNative() {
|
|
|
290
290
|
try {
|
|
291
291
|
const binding = require("@surrealdb/node-linux-riscv64-musl");
|
|
292
292
|
const bindingPackageVersion = require("@surrealdb/node-linux-riscv64-musl/package.json").version;
|
|
293
|
-
if (bindingPackageVersion !== "2.3.
|
|
293
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
294
294
|
return binding;
|
|
295
295
|
} catch (e) {
|
|
296
296
|
loadErrors.push(e);
|
|
@@ -304,7 +304,7 @@ function requireNative() {
|
|
|
304
304
|
try {
|
|
305
305
|
const binding = require("@surrealdb/node-linux-riscv64-gnu");
|
|
306
306
|
const bindingPackageVersion = require("@surrealdb/node-linux-riscv64-gnu/package.json").version;
|
|
307
|
-
if (bindingPackageVersion !== "2.3.
|
|
307
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
308
308
|
return binding;
|
|
309
309
|
} catch (e) {
|
|
310
310
|
loadErrors.push(e);
|
|
@@ -319,7 +319,7 @@ function requireNative() {
|
|
|
319
319
|
try {
|
|
320
320
|
const binding = require("@surrealdb/node-linux-ppc64-gnu");
|
|
321
321
|
const bindingPackageVersion = require("@surrealdb/node-linux-ppc64-gnu/package.json").version;
|
|
322
|
-
if (bindingPackageVersion !== "2.3.
|
|
322
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
323
323
|
return binding;
|
|
324
324
|
} catch (e) {
|
|
325
325
|
loadErrors.push(e);
|
|
@@ -333,7 +333,7 @@ function requireNative() {
|
|
|
333
333
|
try {
|
|
334
334
|
const binding = require("@surrealdb/node-linux-s390x-gnu");
|
|
335
335
|
const bindingPackageVersion = require("@surrealdb/node-linux-s390x-gnu/package.json").version;
|
|
336
|
-
if (bindingPackageVersion !== "2.3.
|
|
336
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
337
337
|
return binding;
|
|
338
338
|
} catch (e) {
|
|
339
339
|
loadErrors.push(e);
|
|
@@ -348,7 +348,7 @@ function requireNative() {
|
|
|
348
348
|
try {
|
|
349
349
|
const binding = require("@surrealdb/node-openharmony-arm64");
|
|
350
350
|
const bindingPackageVersion = require("@surrealdb/node-openharmony-arm64/package.json").version;
|
|
351
|
-
if (bindingPackageVersion !== "2.3.
|
|
351
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
352
352
|
return binding;
|
|
353
353
|
} catch (e) {
|
|
354
354
|
loadErrors.push(e);
|
|
@@ -362,7 +362,7 @@ function requireNative() {
|
|
|
362
362
|
try {
|
|
363
363
|
const binding = require("@surrealdb/node-openharmony-x64");
|
|
364
364
|
const bindingPackageVersion = require("@surrealdb/node-openharmony-x64/package.json").version;
|
|
365
|
-
if (bindingPackageVersion !== "2.3.
|
|
365
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
366
366
|
return binding;
|
|
367
367
|
} catch (e) {
|
|
368
368
|
loadErrors.push(e);
|
|
@@ -376,7 +376,7 @@ function requireNative() {
|
|
|
376
376
|
try {
|
|
377
377
|
const binding = require("@surrealdb/node-openharmony-arm");
|
|
378
378
|
const bindingPackageVersion = require("@surrealdb/node-openharmony-arm/package.json").version;
|
|
379
|
-
if (bindingPackageVersion !== "2.3.
|
|
379
|
+
if (bindingPackageVersion !== "2.3.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.3.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
380
380
|
return binding;
|
|
381
381
|
} catch (e) {
|
|
382
382
|
loadErrors.push(e);
|
|
@@ -409,7 +409,7 @@ const { NotificationReceiver, SurrealNodeEngine } = nativeBinding;
|
|
|
409
409
|
* The engine implementation responsible for communicating with an embedded
|
|
410
410
|
* WebAssembly build of SurrealDB.
|
|
411
411
|
*/
|
|
412
|
-
var NodeEngine = class extends
|
|
412
|
+
var NodeEngine = class extends RpcEngine {
|
|
413
413
|
#engine;
|
|
414
414
|
#notificationReceiver;
|
|
415
415
|
#publisher = new Publisher();
|
|
@@ -421,6 +421,7 @@ var NodeEngine = class extends JsonEngine {
|
|
|
421
421
|
super(context);
|
|
422
422
|
this.#options = options;
|
|
423
423
|
}
|
|
424
|
+
features = new Set([Features.LiveQueries]);
|
|
424
425
|
open(state) {
|
|
425
426
|
this.#abort?.abort();
|
|
426
427
|
this.#abort = new AbortController();
|
|
@@ -455,7 +456,7 @@ var NodeEngine = class extends JsonEngine {
|
|
|
455
456
|
return channel;
|
|
456
457
|
}
|
|
457
458
|
async send(request) {
|
|
458
|
-
if (!this.#active || !this.#engine) throw new
|
|
459
|
+
if (!this.#active || !this.#engine) throw new ConnectionUnavailableError();
|
|
459
460
|
const id = this._context.uniqueId();
|
|
460
461
|
const payload = this._context.codecs.cbor.encode({
|
|
461
462
|
id,
|
|
Binary file
|
|
Binary file
|