@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/rivetkit-wasm",
3
- "version": "2.3.0-rc.12",
3
+ "version": "2.3.0-rc.14",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function start(): void;
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 closure1594_externref_shim: (a: number, b: number, c: any) => void;
252
- readonly closure1946_externref_shim: (a: number, b: number, c: any) => void;
253
- readonly closure2169_externref_shim: (a: number, b: number, c: any, d: any) => void;
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
 
@@ -221,9 +221,13 @@ 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();
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.closure1594_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure1598_externref_shim(arg0, arg1, arg2);
280
279
  }
281
280
 
282
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
283
- wasm.closure1946_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure1950_externref_shim(arg0, arg1, arg2);
284
283
  }
285
284
 
286
285
  function __wbg_adapter_268(arg0, arg1, arg2, arg3) {
287
- wasm.closure2169_externref_shim(arg0, arg1, arg2, arg3);
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.__wbindgen_closure_wrapper3703 = function(arg0, arg1, arg2) {
1786
- const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
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.__wbindgen_closure_wrapper3705 = function(arg0, arg1, arg2) {
1790
- const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
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.__wbindgen_closure_wrapper3707 = function(arg0, arg1, arg2) {
1794
- const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
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.__wbindgen_closure_wrapper3709 = function(arg0, arg1, arg2) {
1798
- const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
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.__wbindgen_closure_wrapper4549 = function(arg0, arg1, arg2) {
1802
- const ret = makeMutClosure(arg0, arg1, 1947, __wbg_adapter_55);
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 closure1594_externref_shim: (a: number, b: number, c: any) => void;
116
- export const closure1946_externref_shim: (a: number, b: number, c: any) => void;
117
- export const closure2169_externref_shim: (a: number, b: number, c: any, d: any) => void;
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;