@rivetkit/rivetkit-wasm 0.0.0-fix-engine-autospawn-binary-path.031e3a4 → 0.0.0-fix-engine-autospawn-binary-path.e5bdda7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-wasm",
|
|
3
|
-
"version": "0.0.0-fix-engine-autospawn-binary-path.
|
|
3
|
+
"version": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
3
|
export function start(): void;
|
|
6
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
|
@@ -238,8 +238,8 @@ export interface InitOutput {
|
|
|
238
238
|
readonly start: () => void;
|
|
239
239
|
readonly actorcontext_queue: (a: number) => number;
|
|
240
240
|
readonly actorcontext_schedule: (a: number) => number;
|
|
241
|
-
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
242
241
|
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
242
|
+
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
243
243
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
244
244
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
245
245
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,13 +221,25 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
|
|
225
|
+
export function start() {
|
|
226
|
+
wasm.start();
|
|
227
|
+
}
|
|
228
|
+
|
|
224
229
|
/**
|
|
225
|
-
* @
|
|
226
|
-
* @returns {Promise<any>}
|
|
230
|
+
* @returns {string}
|
|
227
231
|
*/
|
|
228
|
-
export function
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
export function bridgeRivetErrorPrefix() {
|
|
233
|
+
let deferred1_0;
|
|
234
|
+
let deferred1_1;
|
|
235
|
+
try {
|
|
236
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
237
|
+
deferred1_0 = ret[0];
|
|
238
|
+
deferred1_1 = ret[1];
|
|
239
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
240
|
+
} finally {
|
|
241
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
242
|
+
}
|
|
231
243
|
}
|
|
232
244
|
|
|
233
245
|
/**
|
|
@@ -243,10 +255,6 @@ export function roundTripBytes(bytes) {
|
|
|
243
255
|
return v2;
|
|
244
256
|
}
|
|
245
257
|
|
|
246
|
-
export function start() {
|
|
247
|
-
wasm.start();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
258
|
/**
|
|
251
259
|
* @param {Uint8Array} bytes
|
|
252
260
|
* @returns {Uint8Array}
|
|
@@ -259,19 +267,12 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
259
267
|
}
|
|
260
268
|
|
|
261
269
|
/**
|
|
262
|
-
* @
|
|
270
|
+
* @param {Promise<any>} promise
|
|
271
|
+
* @returns {Promise<any>}
|
|
263
272
|
*/
|
|
264
|
-
export function
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
try {
|
|
268
|
-
const ret = wasm.bridgeRivetErrorPrefix();
|
|
269
|
-
deferred1_0 = ret[0];
|
|
270
|
-
deferred1_1 = ret[1];
|
|
271
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
272
|
-
} finally {
|
|
273
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
274
|
-
}
|
|
273
|
+
export function awaitPromise(promise) {
|
|
274
|
+
const ret = wasm.awaitPromise(promise);
|
|
275
|
+
return ret;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
278
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
@@ -1781,23 +1782,23 @@ function __wbg_get_imports() {
|
|
|
1781
1782
|
const ret = false;
|
|
1782
1783
|
return ret;
|
|
1783
1784
|
};
|
|
1784
|
-
imports.wbg.
|
|
1785
|
+
imports.wbg.__wbindgen_closure_wrapper3727 = function(arg0, arg1, arg2) {
|
|
1785
1786
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1786
1787
|
return ret;
|
|
1787
1788
|
};
|
|
1788
|
-
imports.wbg.
|
|
1789
|
+
imports.wbg.__wbindgen_closure_wrapper3729 = function(arg0, arg1, arg2) {
|
|
1789
1790
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1790
1791
|
return ret;
|
|
1791
1792
|
};
|
|
1792
|
-
imports.wbg.
|
|
1793
|
+
imports.wbg.__wbindgen_closure_wrapper3731 = function(arg0, arg1, arg2) {
|
|
1793
1794
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1794
1795
|
return ret;
|
|
1795
1796
|
};
|
|
1796
|
-
imports.wbg.
|
|
1797
|
+
imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
|
|
1797
1798
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1798
1799
|
return ret;
|
|
1799
1800
|
};
|
|
1800
|
-
imports.wbg.
|
|
1801
|
+
imports.wbg.__wbindgen_closure_wrapper4574 = function(arg0, arg1, arg2) {
|
|
1801
1802
|
const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
|
|
1802
1803
|
return ret;
|
|
1803
1804
|
};
|
|
Binary file
|
|
@@ -102,8 +102,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
|
102
102
|
export const start: () => void;
|
|
103
103
|
export const actorcontext_queue: (a: number) => number;
|
|
104
104
|
export const actorcontext_schedule: (a: number) => number;
|
|
105
|
-
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
106
105
|
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
107
107
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
108
108
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
109
109
|
export const __wbindgen_exn_store: (a: number) => void;
|