@rivetkit/rivetkit-wasm 0.0.0-fix-engine-autospawn-binary-path.bd77b98 → 0.0.0-main.17f6330
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-
|
|
3
|
+
"version": "0.0.0-main.17f6330",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "node scripts/build.mjs",
|
|
31
|
+
"build:embed": "node scripts/build.mjs",
|
|
31
32
|
"build:cloudflare": "node scripts/build.mjs --target bundler --out-dir pkg-cloudflare",
|
|
32
33
|
"build:deno": "node scripts/build.mjs --target web --out-dir pkg-deno",
|
|
33
34
|
"check:package": "node scripts/check-package.mjs",
|
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
3
4
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
5
|
export function start(): void;
|
|
6
6
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
|
-
export function
|
|
7
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
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
|
@@ -222,27 +222,30 @@ function _assertClass(instance, klass) {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* @
|
|
226
|
-
* @returns {Uint8Array}
|
|
225
|
+
* @returns {string}
|
|
227
226
|
*/
|
|
228
|
-
export function
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
227
|
+
export function bridgeRivetErrorPrefix() {
|
|
228
|
+
let deferred1_0;
|
|
229
|
+
let deferred1_1;
|
|
230
|
+
try {
|
|
231
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
232
|
+
deferred1_0 = ret[0];
|
|
233
|
+
deferred1_1 = ret[1];
|
|
234
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
235
|
+
} finally {
|
|
236
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
237
|
+
}
|
|
233
238
|
}
|
|
234
239
|
|
|
235
240
|
/**
|
|
236
241
|
* @param {Uint8Array} bytes
|
|
237
242
|
* @returns {Uint8Array}
|
|
238
243
|
*/
|
|
239
|
-
export function
|
|
244
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
240
245
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
241
246
|
const len0 = WASM_VECTOR_LEN;
|
|
242
|
-
const ret = wasm.
|
|
243
|
-
|
|
244
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
245
|
-
return v2;
|
|
247
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
248
|
+
return ret;
|
|
246
249
|
}
|
|
247
250
|
|
|
248
251
|
export function start() {
|
|
@@ -259,19 +262,16 @@ export function awaitPromise(promise) {
|
|
|
259
262
|
}
|
|
260
263
|
|
|
261
264
|
/**
|
|
262
|
-
* @
|
|
265
|
+
* @param {Uint8Array} bytes
|
|
266
|
+
* @returns {Uint8Array}
|
|
263
267
|
*/
|
|
264
|
-
export function
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
272
|
-
} finally {
|
|
273
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
274
|
-
}
|
|
268
|
+
export function roundTripBytes(bytes) {
|
|
269
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
270
|
+
const len0 = WASM_VECTOR_LEN;
|
|
271
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
272
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
273
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
274
|
+
return v2;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
@@ -1781,23 +1781,23 @@ function __wbg_get_imports() {
|
|
|
1781
1781
|
const ret = false;
|
|
1782
1782
|
return ret;
|
|
1783
1783
|
};
|
|
1784
|
-
imports.wbg.
|
|
1784
|
+
imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
|
|
1785
1785
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1786
1786
|
return ret;
|
|
1787
1787
|
};
|
|
1788
|
-
imports.wbg.
|
|
1788
|
+
imports.wbg.__wbindgen_closure_wrapper3735 = function(arg0, arg1, arg2) {
|
|
1789
1789
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1790
1790
|
return ret;
|
|
1791
1791
|
};
|
|
1792
|
-
imports.wbg.
|
|
1792
|
+
imports.wbg.__wbindgen_closure_wrapper3737 = function(arg0, arg1, arg2) {
|
|
1793
1793
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1794
1794
|
return ret;
|
|
1795
1795
|
};
|
|
1796
|
-
imports.wbg.
|
|
1796
|
+
imports.wbg.__wbindgen_closure_wrapper3739 = function(arg0, arg1, arg2) {
|
|
1797
1797
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1798
1798
|
return ret;
|
|
1799
1799
|
};
|
|
1800
|
-
imports.wbg.
|
|
1800
|
+
imports.wbg.__wbindgen_closure_wrapper4580 = function(arg0, arg1, arg2) {
|
|
1801
1801
|
const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
|
|
1802
1802
|
return ret;
|
|
1803
1803
|
};
|
|
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;
|