@rivetkit/rivetkit-wasm 2.3.6 → 2.3.7

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.6",
3
+ "version": "2.3.7",
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
3
  export function awaitPromise(promise: Promise<any>): Promise<any>;
4
- export function bridgeRivetErrorPrefix(): string;
5
4
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
5
  export function start(): void;
6
+ export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
+ export function bridgeRivetErrorPrefix(): string;
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_queue_free: (a: number, b: number) => void;
281
280
  readonly __wbg_schedule_free: (a: number, b: number) => void;
281
+ readonly __wbg_queue_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;
@@ -230,22 +230,6 @@ export function awaitPromise(promise) {
230
230
  return ret;
231
231
  }
232
232
 
233
- /**
234
- * @returns {string}
235
- */
236
- export function bridgeRivetErrorPrefix() {
237
- let deferred1_0;
238
- let deferred1_1;
239
- try {
240
- const ret = wasm.bridgeRivetErrorPrefix();
241
- deferred1_0 = ret[0];
242
- deferred1_1 = ret[1];
243
- return getStringFromWasm0(ret[0], ret[1]);
244
- } finally {
245
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
246
- }
247
- }
248
-
249
233
  /**
250
234
  * @param {Uint8Array} bytes
251
235
  * @returns {Uint8Array}
@@ -259,6 +243,10 @@ export function roundTripBytes(bytes) {
259
243
  return v2;
260
244
  }
261
245
 
246
+ export function start() {
247
+ wasm.start();
248
+ }
249
+
262
250
  /**
263
251
  * @param {Uint8Array} bytes
264
252
  * @returns {Uint8Array}
@@ -270,8 +258,20 @@ export function uint8ArrayFromBytes(bytes) {
270
258
  return ret;
271
259
  }
272
260
 
273
- export function start() {
274
- wasm.start();
261
+ /**
262
+ * @returns {string}
263
+ */
264
+ export function bridgeRivetErrorPrefix() {
265
+ let deferred1_0;
266
+ let deferred1_1;
267
+ try {
268
+ const ret = wasm.bridgeRivetErrorPrefix();
269
+ deferred1_0 = ret[0];
270
+ deferred1_1 = ret[1];
271
+ return getStringFromWasm0(ret[0], ret[1]);
272
+ } finally {
273
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
274
+ }
275
275
  }
276
276
 
277
277
  function __wbg_adapter_50(arg0, arg1, arg2) {
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_queue_free: (a: number, b: number) => void;
124
123
  export const __wbg_schedule_free: (a: number, b: number) => void;
124
+ export const __wbg_queue_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;