@rivetkit/rivetkit-wasm 2.3.0-rc.10 → 2.3.0-rc.11
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": "2.3.0-rc.
|
|
3
|
+
"version": "2.3.0-rc.11",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "^5.9.2",
|
|
40
|
-
"wasm-pack": "0.
|
|
40
|
+
"wasm-pack": "0.15.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function bridgeRivetErrorPrefix(): string;
|
|
4
|
-
export function
|
|
4
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
5
5
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
6
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
|
-
export function
|
|
7
|
+
export function start(): void;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
|
@@ -246,9 +246,9 @@ export interface InitOutput {
|
|
|
246
246
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
247
247
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
248
248
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
249
|
-
readonly
|
|
250
|
-
readonly
|
|
251
|
-
readonly
|
|
249
|
+
readonly closure1688_externref_shim: (a: number, b: number, c: any) => void;
|
|
250
|
+
readonly closure1891_externref_shim: (a: number, b: number, c: any) => void;
|
|
251
|
+
readonly closure2114_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
252
252
|
readonly __wbindgen_start: () => void;
|
|
253
253
|
}
|
|
254
254
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -237,8 +237,15 @@ export function bridgeRivetErrorPrefix() {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
/**
|
|
241
|
+
* @param {Uint8Array} bytes
|
|
242
|
+
* @returns {Uint8Array}
|
|
243
|
+
*/
|
|
244
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
245
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
246
|
+
const len0 = WASM_VECTOR_LEN;
|
|
247
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
248
|
+
return ret;
|
|
242
249
|
}
|
|
243
250
|
|
|
244
251
|
/**
|
|
@@ -263,27 +270,20 @@ export function awaitPromise(promise) {
|
|
|
263
270
|
return ret;
|
|
264
271
|
}
|
|
265
272
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
* @returns {Uint8Array}
|
|
269
|
-
*/
|
|
270
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
271
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
272
|
-
const len0 = WASM_VECTOR_LEN;
|
|
273
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
274
|
-
return ret;
|
|
273
|
+
export function start() {
|
|
274
|
+
wasm.start();
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.closure1688_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
282
|
+
wasm.closure1891_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
285
|
+
function __wbg_adapter_267(arg0, arg1, arg2, arg3) {
|
|
286
|
+
wasm.closure2114_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1448,7 +1448,7 @@ function __wbg_get_imports() {
|
|
|
1448
1448
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
|
-
imports.wbg.
|
|
1451
|
+
imports.wbg.__wbg_getRandomValues_6c498bf966d88108 = function() { return handleError(function (arg0, arg1) {
|
|
1452
1452
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1453
1453
|
}, arguments) };
|
|
1454
1454
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1562,7 +1562,7 @@ function __wbg_get_imports() {
|
|
|
1562
1562
|
const a = state0.a;
|
|
1563
1563
|
state0.a = 0;
|
|
1564
1564
|
try {
|
|
1565
|
-
return
|
|
1565
|
+
return __wbg_adapter_267(a, state0.b, arg0, arg1);
|
|
1566
1566
|
} finally {
|
|
1567
1567
|
state0.a = a;
|
|
1568
1568
|
}
|
|
@@ -1774,24 +1774,24 @@ function __wbg_get_imports() {
|
|
|
1774
1774
|
const ret = false;
|
|
1775
1775
|
return ret;
|
|
1776
1776
|
};
|
|
1777
|
-
imports.wbg.
|
|
1778
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1777
|
+
imports.wbg.__wbindgen_closure_wrapper3860 = function(arg0, arg1, arg2) {
|
|
1778
|
+
const ret = makeMutClosure(arg0, arg1, 1689, __wbg_adapter_46);
|
|
1779
1779
|
return ret;
|
|
1780
1780
|
};
|
|
1781
|
-
imports.wbg.
|
|
1782
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1781
|
+
imports.wbg.__wbindgen_closure_wrapper3862 = function(arg0, arg1, arg2) {
|
|
1782
|
+
const ret = makeMutClosure(arg0, arg1, 1689, __wbg_adapter_46);
|
|
1783
1783
|
return ret;
|
|
1784
1784
|
};
|
|
1785
|
-
imports.wbg.
|
|
1786
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1785
|
+
imports.wbg.__wbindgen_closure_wrapper3864 = function(arg0, arg1, arg2) {
|
|
1786
|
+
const ret = makeMutClosure(arg0, arg1, 1689, __wbg_adapter_46);
|
|
1787
1787
|
return ret;
|
|
1788
1788
|
};
|
|
1789
|
-
imports.wbg.
|
|
1790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1789
|
+
imports.wbg.__wbindgen_closure_wrapper3866 = function(arg0, arg1, arg2) {
|
|
1790
|
+
const ret = makeMutClosure(arg0, arg1, 1689, __wbg_adapter_46);
|
|
1791
1791
|
return ret;
|
|
1792
1792
|
};
|
|
1793
|
-
imports.wbg.
|
|
1794
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1793
|
+
imports.wbg.__wbindgen_closure_wrapper4463 = function(arg0, arg1, arg2) {
|
|
1794
|
+
const ret = makeMutClosure(arg0, arg1, 1892, __wbg_adapter_55);
|
|
1795
1795
|
return ret;
|
|
1796
1796
|
};
|
|
1797
1797
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -111,7 +111,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
111
111
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
112
112
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
113
113
|
export const __externref_table_dealloc: (a: number) => void;
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
114
|
+
export const closure1688_externref_shim: (a: number, b: number, c: any) => void;
|
|
115
|
+
export const closure1891_externref_shim: (a: number, b: number, c: any) => void;
|
|
116
|
+
export const closure2114_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
117
117
|
export const __wbindgen_start: () => void;
|