@rivetkit/rivetkit-wasm 2.3.0-rc.12 → 2.3.0-rc.14
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,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
4
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
5
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
-
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
6
|
export function bridgeRivetErrorPrefix(): string;
|
|
7
|
+
export function start(): void;
|
|
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;
|
|
@@ -248,9 +248,9 @@ export interface InitOutput {
|
|
|
248
248
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
249
249
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
250
250
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
251
|
-
readonly
|
|
252
|
-
readonly
|
|
253
|
-
readonly
|
|
251
|
+
readonly closure1598_externref_shim: (a: number, b: number, c: any) => void;
|
|
252
|
+
readonly closure1950_externref_shim: (a: number, b: number, c: any) => void;
|
|
253
|
+
readonly closure2181_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
254
254
|
readonly __wbindgen_start: () => void;
|
|
255
255
|
}
|
|
256
256
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,9 +221,13 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
/**
|
|
225
|
+
* @param {Promise<any>} promise
|
|
226
|
+
* @returns {Promise<any>}
|
|
227
|
+
*/
|
|
228
|
+
export function awaitPromise(promise) {
|
|
229
|
+
const ret = wasm.awaitPromise(promise);
|
|
230
|
+
return ret;
|
|
227
231
|
}
|
|
228
232
|
|
|
229
233
|
/**
|
|
@@ -250,15 +254,6 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
250
254
|
return ret;
|
|
251
255
|
}
|
|
252
256
|
|
|
253
|
-
/**
|
|
254
|
-
* @param {Promise<any>} promise
|
|
255
|
-
* @returns {Promise<any>}
|
|
256
|
-
*/
|
|
257
|
-
export function awaitPromise(promise) {
|
|
258
|
-
const ret = wasm.awaitPromise(promise);
|
|
259
|
-
return ret;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
257
|
/**
|
|
263
258
|
* @returns {string}
|
|
264
259
|
*/
|
|
@@ -275,16 +270,20 @@ export function bridgeRivetErrorPrefix() {
|
|
|
275
270
|
}
|
|
276
271
|
}
|
|
277
272
|
|
|
273
|
+
export function start() {
|
|
274
|
+
wasm.start();
|
|
275
|
+
}
|
|
276
|
+
|
|
278
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
279
|
-
wasm.
|
|
278
|
+
wasm.closure1598_externref_shim(arg0, arg1, arg2);
|
|
280
279
|
}
|
|
281
280
|
|
|
282
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
283
|
-
wasm.
|
|
282
|
+
wasm.closure1950_externref_shim(arg0, arg1, arg2);
|
|
284
283
|
}
|
|
285
284
|
|
|
286
285
|
function __wbg_adapter_268(arg0, arg1, arg2, arg3) {
|
|
287
|
-
wasm.
|
|
286
|
+
wasm.closure2181_externref_shim(arg0, arg1, arg2, arg3);
|
|
288
287
|
}
|
|
289
288
|
|
|
290
289
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1782,24 +1781,24 @@ function __wbg_get_imports() {
|
|
|
1782
1781
|
const ret = false;
|
|
1783
1782
|
return ret;
|
|
1784
1783
|
};
|
|
1785
|
-
imports.wbg.
|
|
1786
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1784
|
+
imports.wbg.__wbindgen_closure_wrapper3727 = function(arg0, arg1, arg2) {
|
|
1785
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1787
1786
|
return ret;
|
|
1788
1787
|
};
|
|
1789
|
-
imports.wbg.
|
|
1790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1788
|
+
imports.wbg.__wbindgen_closure_wrapper3729 = function(arg0, arg1, arg2) {
|
|
1789
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1791
1790
|
return ret;
|
|
1792
1791
|
};
|
|
1793
|
-
imports.wbg.
|
|
1794
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1792
|
+
imports.wbg.__wbindgen_closure_wrapper3731 = function(arg0, arg1, arg2) {
|
|
1793
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1795
1794
|
return ret;
|
|
1796
1795
|
};
|
|
1797
|
-
imports.wbg.
|
|
1798
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1796
|
+
imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
|
|
1797
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1799
1798
|
return ret;
|
|
1800
1799
|
};
|
|
1801
|
-
imports.wbg.
|
|
1802
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1800
|
+
imports.wbg.__wbindgen_closure_wrapper4574 = function(arg0, arg1, arg2) {
|
|
1801
|
+
const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
|
|
1803
1802
|
return ret;
|
|
1804
1803
|
};
|
|
1805
1804
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
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;
|
|
@@ -112,7 +112,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
112
112
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
113
113
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
114
114
|
export const __externref_table_dealloc: (a: number) => void;
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
117
|
-
export const
|
|
115
|
+
export const closure1598_externref_shim: (a: number, b: number, c: any) => void;
|
|
116
|
+
export const closure1950_externref_shim: (a: number, b: number, c: any) => void;
|
|
117
|
+
export const closure2181_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
118
118
|
export const __wbindgen_start: () => void;
|