@rivetkit/rivetkit-wasm 2.3.5 → 2.3.6

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.5",
3
+ "version": "2.3.6",
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 bridgeRivetErrorPrefix(): string;
5
5
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
- export function awaitPromise(promise: Promise<any>): Promise<any>;
7
6
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
+ export function start(): void;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -277,8 +277,8 @@ export interface InitOutput {
277
277
  readonly start: () => void;
278
278
  readonly actorcontext_queue: (a: number) => number;
279
279
  readonly actorcontext_schedule: (a: number) => number;
280
- readonly __wbg_schedule_free: (a: number, b: number) => void;
281
280
  readonly __wbg_queue_free: (a: number, b: number) => void;
281
+ readonly __wbg_schedule_free: (a: number, b: number) => void;
282
282
  readonly __wbindgen_malloc: (a: number, b: number) => number;
283
283
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
284
284
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -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
  /**
@@ -255,15 +259,6 @@ export function roundTripBytes(bytes) {
255
259
  return v2;
256
260
  }
257
261
 
258
- /**
259
- * @param {Promise<any>} promise
260
- * @returns {Promise<any>}
261
- */
262
- export function awaitPromise(promise) {
263
- const ret = wasm.awaitPromise(promise);
264
- return ret;
265
- }
266
-
267
262
  /**
268
263
  * @param {Uint8Array} bytes
269
264
  * @returns {Uint8Array}
@@ -275,6 +270,10 @@ export function uint8ArrayFromBytes(bytes) {
275
270
  return ret;
276
271
  }
277
272
 
273
+ export function start() {
274
+ wasm.start();
275
+ }
276
+
278
277
  function __wbg_adapter_50(arg0, arg1, arg2) {
279
278
  wasm.closure1925_externref_shim(arg0, arg1, arg2);
280
279
  }
@@ -2005,23 +2004,23 @@ function __wbg_get_imports() {
2005
2004
  const ret = false;
2006
2005
  return ret;
2007
2006
  };
2008
- imports.wbg.__wbindgen_closure_wrapper4459 = function(arg0, arg1, arg2) {
2007
+ imports.wbg.__wbindgen_closure_wrapper4460 = function(arg0, arg1, arg2) {
2009
2008
  const ret = makeMutClosure(arg0, arg1, 1926, __wbg_adapter_50);
2010
2009
  return ret;
2011
2010
  };
2012
- imports.wbg.__wbindgen_closure_wrapper4461 = function(arg0, arg1, arg2) {
2011
+ imports.wbg.__wbindgen_closure_wrapper4462 = function(arg0, arg1, arg2) {
2013
2012
  const ret = makeMutClosure(arg0, arg1, 1926, __wbg_adapter_50);
2014
2013
  return ret;
2015
2014
  };
2016
- imports.wbg.__wbindgen_closure_wrapper4463 = function(arg0, arg1, arg2) {
2015
+ imports.wbg.__wbindgen_closure_wrapper4464 = function(arg0, arg1, arg2) {
2017
2016
  const ret = makeMutClosure(arg0, arg1, 1926, __wbg_adapter_50);
2018
2017
  return ret;
2019
2018
  };
2020
- imports.wbg.__wbindgen_closure_wrapper4465 = function(arg0, arg1, arg2) {
2019
+ imports.wbg.__wbindgen_closure_wrapper4466 = function(arg0, arg1, arg2) {
2021
2020
  const ret = makeMutClosure(arg0, arg1, 1926, __wbg_adapter_50);
2022
2021
  return ret;
2023
2022
  };
2024
- imports.wbg.__wbindgen_closure_wrapper5336 = function(arg0, arg1, arg2) {
2023
+ imports.wbg.__wbindgen_closure_wrapper5337 = function(arg0, arg1, arg2) {
2025
2024
  const ret = makeMutClosure(arg0, arg1, 2299, __wbg_adapter_59);
2026
2025
  return ret;
2027
2026
  };
Binary file
@@ -120,8 +120,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
120
120
  export const start: () => void;
121
121
  export const actorcontext_queue: (a: number) => number;
122
122
  export const actorcontext_schedule: (a: number) => number;
123
- export const __wbg_schedule_free: (a: number, b: number) => void;
124
123
  export const __wbg_queue_free: (a: number, b: number) => void;
124
+ export const __wbg_schedule_free: (a: number, b: number) => void;
125
125
  export const __wbindgen_malloc: (a: number, b: number) => number;
126
126
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
127
127
  export const __wbindgen_exn_store: (a: number) => void;