@rivetkit/rivetkit-wasm 2.3.1 → 2.3.3-rc.1
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
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
3
|
export function bridgeRivetErrorPrefix(): string;
|
|
4
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
5
5
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
6
6
|
export function start(): void;
|
|
7
7
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
@@ -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_schedule_free: (a: number, b: number) => void;
|
|
242
241
|
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
242
|
+
readonly __wbg_schedule_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,17 +221,6 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
/**
|
|
225
|
-
* @param {Uint8Array} bytes
|
|
226
|
-
* @returns {Uint8Array}
|
|
227
|
-
*/
|
|
228
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
229
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
230
|
-
const len0 = WASM_VECTOR_LEN;
|
|
231
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
232
|
-
return ret;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
224
|
/**
|
|
236
225
|
* @returns {string}
|
|
237
226
|
*/
|
|
@@ -248,6 +237,17 @@ export function bridgeRivetErrorPrefix() {
|
|
|
248
237
|
}
|
|
249
238
|
}
|
|
250
239
|
|
|
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;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
251
|
/**
|
|
252
252
|
* @param {Promise<any>} promise
|
|
253
253
|
* @returns {Promise<any>}
|
|
@@ -282,7 +282,7 @@ function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
|
282
282
|
wasm.closure1950_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
285
|
+
function __wbg_adapter_276(arg0, arg1, arg2, arg3) {
|
|
286
286
|
wasm.closure2181_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -1569,7 +1569,7 @@ function __wbg_get_imports() {
|
|
|
1569
1569
|
const a = state0.a;
|
|
1570
1570
|
state0.a = 0;
|
|
1571
1571
|
try {
|
|
1572
|
-
return
|
|
1572
|
+
return __wbg_adapter_276(a, state0.b, arg0, arg1);
|
|
1573
1573
|
} finally {
|
|
1574
1574
|
state0.a = a;
|
|
1575
1575
|
}
|
|
@@ -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_wrapper3728 = 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_wrapper3730 = 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_wrapper3732 = 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_wrapper3734 = 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_wrapper4575 = 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_schedule_free: (a: number, b: number) => void;
|
|
106
105
|
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_schedule_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;
|