mq-bridge 1.3.0 → 1.5.0
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/README.md +28 -1
- package/THIRD_PARTY_LICENSES.txt +6 -1
- package/index.d.ts +48 -0
- package/index.js +85 -0
- package/native.d.ts +61 -0
- package/native.js +55 -52
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -81,6 +81,33 @@ The `name` is optional: pass it to pick one entry out of a `routes:`/`publishers
|
|
|
81
81
|
document, or omit it to treat the whole config as a single bare route/endpoint body.
|
|
82
82
|
`fromYaml` / `fromYamlStr` remain as deprecated aliases for `fromFile` / `fromStr`.
|
|
83
83
|
|
|
84
|
+
## Calling a route like a function
|
|
85
|
+
|
|
86
|
+
`Caller` deploys a route whose input is an in-process `memory` endpoint and
|
|
87
|
+
resolves each call to its answer. Calls made at the same time reach the route
|
|
88
|
+
as one batch.
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import { Caller } from "mq-bridge";
|
|
92
|
+
|
|
93
|
+
// `users` in routes.yaml: an `input` with only a `lookup` middleware, no `output`.
|
|
94
|
+
const users = Caller.fromFile("routes.yaml", "users");
|
|
95
|
+
const user = await users.call({ path: "/u/7" }); // the parsed JSON answer
|
|
96
|
+
const found = await users.callMany([{ path: "/u/7" }, { path: "/u/8" }]);
|
|
97
|
+
await users.stop();
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`call()` sends the fields as a JSON object and resolves to the parsed answer;
|
|
101
|
+
`callMany()` resolves like `Promise.allSettled`, one result per request.
|
|
102
|
+
`callMessage()` / `callManyMessages()` take and return `Message`s, e.g. to keep
|
|
103
|
+
metadata. `Caller.fromFile` / `fromConfig` take the same shapes as `Route`, but a
|
|
104
|
+
route without `input` reads from the caller and one without `output` answers with
|
|
105
|
+
the message. `Caller.fromRoute(route)` deploys a route built in code, with its handler.
|
|
106
|
+
|
|
107
|
+
A message the route fails rejects with the error text at once. `send()`
|
|
108
|
+
resolves to `null` when the route accepts a message without an answer; `call()`
|
|
109
|
+
rejects then.
|
|
110
|
+
|
|
84
111
|
## Pull-based consumer
|
|
85
112
|
|
|
86
113
|
`Route` is push-based. To pull messages on your own schedule, use `Consumer`,
|
|
@@ -234,7 +261,7 @@ mq-bridge Node route plus raw Node `http`, uWebSockets.js, Fastify, and Express
|
|
|
234
261
|
(all peers run only when installed) — and drives each with `wrk`:
|
|
235
262
|
|
|
236
263
|
```bash
|
|
237
|
-
cd
|
|
264
|
+
cd bindings/node
|
|
238
265
|
npm run build # release addon (the bench is meaningless on a debug build)
|
|
239
266
|
npm i -D fastify express # optional Node HTTP peers
|
|
240
267
|
npm i -D uNetworking/uWebSockets.js#v20.51.0 # the http-arena Node leader (native, from GitHub)
|
package/THIRD_PARTY_LICENSES.txt
CHANGED
|
@@ -2910,10 +2910,15 @@ Source: https://github.com/kornelski/rust_urlencoding
|
|
|
2910
2910
|
Copyright/attribution: © 2016 Bertram Truong
|
|
2911
2911
|
Copyright/attribution: © 2021 Kornel Lesiński
|
|
2912
2912
|
|
|
2913
|
-
utf8_iter@1.0
|
|
2913
|
+
utf8_iter@1.1.0
|
|
2914
2914
|
License: Apache-2.0 OR MIT
|
|
2915
2915
|
Source: https://github.com/hsivonen/utf8_iter
|
|
2916
2916
|
|
|
2917
|
+
utf_types@1.0.0
|
|
2918
|
+
License: Apache-2.0 OR MIT
|
|
2919
|
+
Source: https://github.com/hsivonen/utf_types
|
|
2920
|
+
Copyright/attribution: Copyright Mozilla Foundation
|
|
2921
|
+
|
|
2917
2922
|
uuid@1.27.0
|
|
2918
2923
|
License: Apache-2.0 OR MIT
|
|
2919
2924
|
Source: https://github.com/uuid-rs/uuid
|
package/index.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export type Metadata = Record<string, string>;
|
|
|
10
10
|
export type HandlerResult = Message | null | undefined;
|
|
11
11
|
export type MessageHandler = (message: Message) => HandlerResult | Promise<HandlerResult>;
|
|
12
12
|
export type JsonHandler = (data: JsonValue) => HandlerResult | Promise<HandlerResult>;
|
|
13
|
+
export type BatchHandler = (
|
|
14
|
+
messages: Message[],
|
|
15
|
+
) => Iterable<HandlerResult> | Promise<Iterable<HandlerResult>>;
|
|
13
16
|
|
|
14
17
|
export class Message {
|
|
15
18
|
constructor(payload: Buffer | Uint8Array, metadata?: Metadata | null, id?: string | null);
|
|
@@ -21,6 +24,30 @@ export class Message {
|
|
|
21
24
|
text(): string;
|
|
22
25
|
}
|
|
23
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Call a route like a function: `call({ path: key })` resolves to the route's JSON
|
|
29
|
+
* answer. Calls made at the same time reach the route as one batch.
|
|
30
|
+
*/
|
|
31
|
+
export class Caller {
|
|
32
|
+
/** Deploy a `Route` (with its handlers) as a caller under the route's name. */
|
|
33
|
+
static fromRoute(route: Route): Caller;
|
|
34
|
+
/** Without an `input`, the route reads from the caller; without an `output`, it answers. */
|
|
35
|
+
static fromFile(path: string, name?: string | null): Caller;
|
|
36
|
+
static fromConfig(config: JsonValue, name?: string | null): Caller;
|
|
37
|
+
readonly name: string;
|
|
38
|
+
/** Send the fields as one JSON object and resolve to the route's answer, parsed. */
|
|
39
|
+
call<T = JsonValue>(fields: JsonValue): Promise<T>;
|
|
40
|
+
/** Send a message and resolve to the answer as a message, e.g. to keep its metadata. */
|
|
41
|
+
callMessage(message: Message): Promise<Message>;
|
|
42
|
+
/** Send the field objects as one batch; one settled result per request, in order. */
|
|
43
|
+
callMany<T = JsonValue>(requests: JsonValue[]): Promise<PromiseSettledResult<T>[]>;
|
|
44
|
+
callManyMessages(messages: Message[]): Promise<PromiseSettledResult<Message>[]>;
|
|
45
|
+
/** Resolve once the message is handled: its answer, or `null` if there is none. */
|
|
46
|
+
send(message: Message): Promise<Message | null>;
|
|
47
|
+
/** Stop the route. Resolves to `false` if it was already stopped. */
|
|
48
|
+
stop(): Promise<boolean>;
|
|
49
|
+
}
|
|
50
|
+
|
|
24
51
|
export class Publisher {
|
|
25
52
|
static fromFile(path: string, name?: string | null): Publisher;
|
|
26
53
|
static fromStr(text: string, name?: string | null): Publisher;
|
|
@@ -116,6 +143,14 @@ export class Route {
|
|
|
116
143
|
/** @deprecated Use {@link Route.fromStr} instead. */
|
|
117
144
|
static fromYamlStr(text: string, name?: string | null): Route;
|
|
118
145
|
withHandler(handler: MessageHandler): void;
|
|
146
|
+
/**
|
|
147
|
+
* Attach a handler that gets a whole batch and returns one result per message,
|
|
148
|
+
* in order. Use it for work that is cheaper per batch, such as one database
|
|
149
|
+
* transaction for all messages. On an `http` -> `response` route, requests that
|
|
150
|
+
* arrive while a batch runs form the next batch. A thrown error, or a result
|
|
151
|
+
* list of the wrong length, fails every message in the batch.
|
|
152
|
+
*/
|
|
153
|
+
withBatchHandler(handler: BatchHandler): void;
|
|
119
154
|
addHandler(kind: string, handler: JsonHandler): void;
|
|
120
155
|
start(): void;
|
|
121
156
|
stop(): void;
|
|
@@ -228,6 +263,19 @@ export function unregisterEndpoint(name: string): boolean;
|
|
|
228
263
|
*/
|
|
229
264
|
export function loadEndpointPlugin(path: string): string;
|
|
230
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Load the one installed plugin library named for `name` (`libmq_bridge_<name>`)
|
|
268
|
+
* from the plugin search path, and nothing else. Returns the endpoint and
|
|
269
|
+
* middleware names it registered.
|
|
270
|
+
*/
|
|
271
|
+
export function loadInstalledPlugin(name: string): string[];
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Let routes load any installed plugin whose endpoint or middleware they name.
|
|
275
|
+
* Off by default; `MQB_PLUGIN_DISCOVERY=1` does the same.
|
|
276
|
+
*/
|
|
277
|
+
export function enablePluginDiscovery(): void;
|
|
278
|
+
|
|
231
279
|
/** Resolves the native library in an mq-bridge plugin package directory. */
|
|
232
280
|
export function pluginLibraryPath(packageDirectory: string): string;
|
|
233
281
|
|
package/index.js
CHANGED
|
@@ -195,6 +195,16 @@ class Route {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
withBatchHandler(handler) {
|
|
199
|
+
this._native.withBatchHandler(async (error, messages) => {
|
|
200
|
+
if (error) {
|
|
201
|
+
throw error;
|
|
202
|
+
}
|
|
203
|
+
const results = await handler(messages.map((message) => Message._fromNative(message)));
|
|
204
|
+
return Array.from(results, (result) => Message._toNativeResult(result));
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
198
208
|
addHandler(kind, handler) {
|
|
199
209
|
this._native.addHandler(kind, async (error, data) => {
|
|
200
210
|
if (error) {
|
|
@@ -222,6 +232,70 @@ class Route {
|
|
|
222
232
|
}
|
|
223
233
|
}
|
|
224
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Call a route like a function: `call({ path: key })` sends the fields through the
|
|
237
|
+
* route and resolves to its JSON answer. Calls made at the same time reach the
|
|
238
|
+
* route as one batch.
|
|
239
|
+
*/
|
|
240
|
+
function settled(outcomes, valueOf) {
|
|
241
|
+
return outcomes.map((outcome) =>
|
|
242
|
+
outcome.error == null
|
|
243
|
+
? { status: "fulfilled", value: valueOf(outcome) }
|
|
244
|
+
: { status: "rejected", reason: new Error(outcome.error) },
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
class Caller {
|
|
249
|
+
constructor(nativeCaller) {
|
|
250
|
+
this._native = nativeCaller;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** Deploy a `Route` (with its handlers) as a caller under the route's name. */
|
|
254
|
+
static fromRoute(route) {
|
|
255
|
+
return new Caller(native.Caller.fromRoute(route._native));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** Without an `input`, the route reads from the caller; without an `output`, it answers. */
|
|
259
|
+
static fromFile(path, name) {
|
|
260
|
+
return new Caller(native.Caller.fromFile(path, name));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
static fromConfig(config, name) {
|
|
264
|
+
return new Caller(native.Caller.fromConfig(config, name));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
get name() {
|
|
268
|
+
return this._native.name;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
call(fields) {
|
|
272
|
+
return this._native.call(fields);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
async callMessage(message) {
|
|
276
|
+
return Message._fromNative(await this._native.callMessage(Message._toNative(message)));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/** Send the field objects as one batch; resolves like `Promise.allSettled`, in order. */
|
|
280
|
+
async callMany(requests) {
|
|
281
|
+
return settled(await this._native.callMany(requests), ({ value }) => value);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
async callManyMessages(messages) {
|
|
285
|
+
const outcomes = await this._native.callManyMessages(messages.map((m) => Message._toNative(m)));
|
|
286
|
+
return settled(outcomes, ({ message }) => Message._fromNative(message));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
async send(message) {
|
|
290
|
+
const response = await this._native.send(Message._toNative(message));
|
|
291
|
+
return response == null ? null : Message._fromNative(response);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
stop() {
|
|
295
|
+
return this._native.stop();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
225
299
|
/** Throw this from `receiveBatch` to tell the route the source is finished. */
|
|
226
300
|
class EndOfStream extends Error {
|
|
227
301
|
constructor(message = "end of stream") {
|
|
@@ -426,6 +500,14 @@ function loadEndpointPlugin(pluginPath) {
|
|
|
426
500
|
return native.loadEndpointPlugin(pluginPath);
|
|
427
501
|
}
|
|
428
502
|
|
|
503
|
+
function loadInstalledPlugin(name) {
|
|
504
|
+
return native.loadInstalledPlugin(name);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
function enablePluginDiscovery() {
|
|
508
|
+
native.enablePluginDiscovery();
|
|
509
|
+
}
|
|
510
|
+
|
|
429
511
|
function pluginPlatformTag(platform = process.platform, arch = process.arch) {
|
|
430
512
|
const normalizedArch = arch === "x86_64" ? "x64" : arch === "aarch64" ? "arm64" : arch;
|
|
431
513
|
const suffix = platform === "linux" ? "-gnu" : platform === "win32" ? "-msvc" : "";
|
|
@@ -484,13 +566,16 @@ module.exports = {
|
|
|
484
566
|
Publisher,
|
|
485
567
|
Consumer,
|
|
486
568
|
Route,
|
|
569
|
+
Caller,
|
|
487
570
|
EndOfStream,
|
|
488
571
|
configSchema,
|
|
489
572
|
initLogging,
|
|
490
573
|
isShutdownRequested,
|
|
491
574
|
requestShutdown,
|
|
492
575
|
definePluginPackage,
|
|
576
|
+
enablePluginDiscovery,
|
|
493
577
|
loadEndpointPlugin,
|
|
578
|
+
loadInstalledPlugin,
|
|
494
579
|
loadPluginPackage,
|
|
495
580
|
pluginLibraryPath,
|
|
496
581
|
registerEndpoint,
|
package/native.d.ts
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Call a route like a function. The route input must be an in-process `memory`
|
|
5
|
+
* endpoint; calls made at the same time reach the route as one batch.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Caller {
|
|
8
|
+
/** Deploy a `Route` (with its handlers) as a caller under the route's name. */
|
|
9
|
+
static fromRoute(route: Route): Caller
|
|
10
|
+
/**
|
|
11
|
+
* Load the route `name` from a config file and deploy it. Unlike `Route.fromFile`,
|
|
12
|
+
* a missing `input` reads from the caller's own memory topic and a missing
|
|
13
|
+
* `output` answers with the message.
|
|
14
|
+
*/
|
|
15
|
+
static fromFile(path: string, name?: string | undefined | null): Caller
|
|
16
|
+
/** Like `fromFile`, but takes the config as a mapping. */
|
|
17
|
+
static fromConfig(config: JsonValue, name?: string | undefined | null): Caller
|
|
18
|
+
get name(): string
|
|
19
|
+
/** Send `fields` as one JSON object through the route and return its answer as JSON. */
|
|
20
|
+
call(fields: JsonValue): Promise<JsonValue>
|
|
21
|
+
/** Send a message through the route and return its answer as a message. */
|
|
22
|
+
callMessage(message: NativeMessage): Promise<NativeMessage>
|
|
23
|
+
/** Send several field objects as one batch; one outcome per request, in order. */
|
|
24
|
+
callMany(requests: Array<JsonValue>): Promise<Array<CallOutcome>>
|
|
25
|
+
/** Send several messages as one batch; one outcome per message, in order. */
|
|
26
|
+
callManyMessages(messages: Array<NativeMessage>): Promise<Array<CallOutcome>>
|
|
27
|
+
/**
|
|
28
|
+
* Send a message through the route and wait until it is handled. Returns
|
|
29
|
+
* the answer, or `null` when the route accepted it without one.
|
|
30
|
+
*/
|
|
31
|
+
send(message: NativeMessage): Promise<NativeMessage | null>
|
|
32
|
+
/** Stop the route. Resolves to `false` if it was already stopped. */
|
|
33
|
+
stop(): Promise<boolean>
|
|
34
|
+
}
|
|
35
|
+
|
|
3
36
|
/**
|
|
4
37
|
* A pull-based consumer over any mq-bridge input endpoint.
|
|
5
38
|
*
|
|
@@ -152,6 +185,12 @@ export declare class Route {
|
|
|
152
185
|
*/
|
|
153
186
|
static fromConfig(config: JsonValue, name?: string | undefined | null): Route
|
|
154
187
|
withHandler(callback: ((err: Error | null, arg: NativeMessage) => Promise<NativeMessage | undefined | null>)): void
|
|
188
|
+
/**
|
|
189
|
+
* Attach a handler that gets a whole batch and returns one result per
|
|
190
|
+
* message, in order. Use it for work that is cheaper per batch, such as one
|
|
191
|
+
* database transaction for all messages.
|
|
192
|
+
*/
|
|
193
|
+
withBatchHandler(callback: ((err: Error | null, arg: Array<NativeMessage>) => Promise<Array<NativeMessage | undefined | null>>)): void
|
|
155
194
|
addHandler(kind: string, callback: ((err: Error | null, arg: JsonValue) => Promise<NativeMessage | undefined | null>)): void
|
|
156
195
|
start(): void
|
|
157
196
|
stop(): void
|
|
@@ -168,6 +207,16 @@ export declare class Route {
|
|
|
168
207
|
wait(): Promise<void>
|
|
169
208
|
}
|
|
170
209
|
|
|
210
|
+
/**
|
|
211
|
+
* One request of `Caller.callMany` / `callManyMessages`: its answer, or the error it
|
|
212
|
+
* failed with.
|
|
213
|
+
*/
|
|
214
|
+
export interface CallOutcome {
|
|
215
|
+
value?: JsonValue
|
|
216
|
+
message?: NativeMessage
|
|
217
|
+
error?: string
|
|
218
|
+
}
|
|
219
|
+
|
|
171
220
|
/**
|
|
172
221
|
* JSON Schema for the route/config mapping, generated on demand from the
|
|
173
222
|
* compiled Rust models (no checked-in copy, so it cannot drift).
|
|
@@ -176,6 +225,12 @@ export declare function configSchema(): JsonValue
|
|
|
176
225
|
|
|
177
226
|
export declare function createMessage(payload: Buffer, metadata?: Record<string, string> | undefined | null, id?: string | undefined | null): NativeMessage
|
|
178
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Let routes load any installed plugin whose endpoint or middleware they name.
|
|
230
|
+
* Off by default; `MQB_PLUGIN_DISCOVERY=1` does the same.
|
|
231
|
+
*/
|
|
232
|
+
export declare function enablePluginDiscovery(): void
|
|
233
|
+
|
|
179
234
|
/**
|
|
180
235
|
* One operation on a JS endpoint instance. A single dispatch callback per
|
|
181
236
|
* registered name carries all of them: JS objects are not `Send`, so the
|
|
@@ -249,6 +304,12 @@ export declare function isShutdownRequested(): boolean
|
|
|
249
304
|
*/
|
|
250
305
|
export declare function loadEndpointPlugin(path: string): string
|
|
251
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Load the one installed plugin library named for `name` (`libmq_bridge_<name>`)
|
|
309
|
+
* from the plugin search path, and nothing else. Returns the names it registered.
|
|
310
|
+
*/
|
|
311
|
+
export declare function loadInstalledPlugin(name: string): Array<string>
|
|
312
|
+
|
|
252
313
|
/** One library log event, delivered to the `initLogging` callback. */
|
|
253
314
|
export interface LogRecord {
|
|
254
315
|
/** `error` / `warn` / `info` / `debug` / `trace`. */
|
package/native.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('mq-bridge-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('mq-bridge-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '1.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
80
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('mq-bridge-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('mq-bridge-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '1.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
96
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('mq-bridge-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('mq-bridge-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '1.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
117
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('mq-bridge-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('mq-bridge-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '1.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
133
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('mq-bridge-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('mq-bridge-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '1.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
150
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('mq-bridge-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('mq-bridge-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '1.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
166
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('mq-bridge-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('mq-bridge-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '1.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
185
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('mq-bridge-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('mq-bridge-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '1.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
201
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('mq-bridge-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('mq-bridge-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '1.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
217
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('mq-bridge-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('mq-bridge-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '1.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
237
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('mq-bridge-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('mq-bridge-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '1.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
253
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('mq-bridge-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('mq-bridge-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '1.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
274
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('mq-bridge-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('mq-bridge-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '1.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
290
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('mq-bridge-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('mq-bridge-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '1.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
308
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('mq-bridge-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('mq-bridge-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '1.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
324
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('mq-bridge-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('mq-bridge-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '1.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
342
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('mq-bridge-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('mq-bridge-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '1.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
358
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('mq-bridge-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('mq-bridge-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '1.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
376
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('mq-bridge-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('mq-bridge-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '1.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
392
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('mq-bridge-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('mq-bridge-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '1.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
410
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('mq-bridge-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('mq-bridge-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '1.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
426
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('mq-bridge-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('mq-bridge-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '1.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
443
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('mq-bridge-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('mq-bridge-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '1.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
459
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('mq-bridge-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('mq-bridge-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '1.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
479
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('mq-bridge-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('mq-bridge-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '1.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
495
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('mq-bridge-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('mq-bridge-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '1.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
511
|
+
if (bindingPackageVersion !== '1.5.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -587,14 +587,17 @@ if (!nativeBinding) {
|
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
|
+
module.exports.Caller = nativeBinding.Caller
|
|
590
591
|
module.exports.Consumer = nativeBinding.Consumer
|
|
591
592
|
module.exports.Publisher = nativeBinding.Publisher
|
|
592
593
|
module.exports.Route = nativeBinding.Route
|
|
593
594
|
module.exports.configSchema = nativeBinding.configSchema
|
|
594
595
|
module.exports.createMessage = nativeBinding.createMessage
|
|
596
|
+
module.exports.enablePluginDiscovery = nativeBinding.enablePluginDiscovery
|
|
595
597
|
module.exports.initLogging = nativeBinding.initLogging
|
|
596
598
|
module.exports.isShutdownRequested = nativeBinding.isShutdownRequested
|
|
597
599
|
module.exports.loadEndpointPlugin = nativeBinding.loadEndpointPlugin
|
|
600
|
+
module.exports.loadInstalledPlugin = nativeBinding.loadInstalledPlugin
|
|
598
601
|
module.exports.messageFromJson = nativeBinding.messageFromJson
|
|
599
602
|
module.exports.messageJson = nativeBinding.messageJson
|
|
600
603
|
module.exports.messageText = nativeBinding.messageText
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mq-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Async ETL and messaging engine (Rust core): brokers (Kafka, NATS, AMQP, MQTT), databases incl. Postgres/MongoDB CDC, Parquet on S3/GCS/Azure object storage, HTTP/gRPC.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"messaging",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "git+https://github.com/marcomq/mq-bridge.git",
|
|
27
|
-
"directory": "
|
|
27
|
+
"directory": "bindings/node"
|
|
28
28
|
},
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"types": "index.d.ts",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"artifacts": "napi artifacts"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"mq-bridge-darwin-x64": "1.
|
|
68
|
-
"mq-bridge-darwin-arm64": "1.
|
|
69
|
-
"mq-bridge-linux-x64-gnu": "1.
|
|
70
|
-
"mq-bridge-linux-arm64-gnu": "1.
|
|
71
|
-
"mq-bridge-win32-x64-msvc": "1.
|
|
67
|
+
"mq-bridge-darwin-x64": "1.5.0",
|
|
68
|
+
"mq-bridge-darwin-arm64": "1.5.0",
|
|
69
|
+
"mq-bridge-linux-x64-gnu": "1.5.0",
|
|
70
|
+
"mq-bridge-linux-arm64-gnu": "1.5.0",
|
|
71
|
+
"mq-bridge-win32-x64-msvc": "1.5.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@napi-rs/cli": "^3.0.0"
|