@rivetkit/rivetkit-wasm 2.3.0-rc.13 → 2.3.0-rc.15

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.13",
3
+ "version": "2.3.0-rc.15",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,9 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function bridgeRivetErrorPrefix(): string;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
- export function awaitPromise(promise: Promise<any>): Promise<any>;
6
3
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
4
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
5
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
+ export function bridgeRivetErrorPrefix(): string;
7
7
  export function start(): void;
8
8
  export class ActorContext {
9
9
  free(): 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;
@@ -221,33 +221,15 @@ function _assertClass(instance, klass) {
221
221
  throw new Error(`expected instance of ${klass.name}`);
222
222
  }
223
223
  }
224
- /**
225
- * @returns {string}
226
- */
227
- export function bridgeRivetErrorPrefix() {
228
- let deferred1_0;
229
- let deferred1_1;
230
- try {
231
- const ret = wasm.bridgeRivetErrorPrefix();
232
- deferred1_0 = ret[0];
233
- deferred1_1 = ret[1];
234
- return getStringFromWasm0(ret[0], ret[1]);
235
- } finally {
236
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
237
- }
238
- }
239
-
240
224
  /**
241
225
  * @param {Uint8Array} bytes
242
226
  * @returns {Uint8Array}
243
227
  */
244
- export function roundTripBytes(bytes) {
228
+ export function uint8ArrayFromBytes(bytes) {
245
229
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
246
230
  const len0 = WASM_VECTOR_LEN;
247
- const ret = wasm.roundTripBytes(ptr0, len0);
248
- var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
249
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
250
- return v2;
231
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
232
+ return ret;
251
233
  }
252
234
 
253
235
  /**
@@ -263,11 +245,29 @@ export function awaitPromise(promise) {
263
245
  * @param {Uint8Array} bytes
264
246
  * @returns {Uint8Array}
265
247
  */
266
- export function uint8ArrayFromBytes(bytes) {
248
+ export function roundTripBytes(bytes) {
267
249
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
268
250
  const len0 = WASM_VECTOR_LEN;
269
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
270
- return ret;
251
+ const ret = wasm.roundTripBytes(ptr0, len0);
252
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
253
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
254
+ return v2;
255
+ }
256
+
257
+ /**
258
+ * @returns {string}
259
+ */
260
+ export function bridgeRivetErrorPrefix() {
261
+ let deferred1_0;
262
+ let deferred1_1;
263
+ try {
264
+ const ret = wasm.bridgeRivetErrorPrefix();
265
+ deferred1_0 = ret[0];
266
+ deferred1_1 = ret[1];
267
+ return getStringFromWasm0(ret[0], ret[1]);
268
+ } finally {
269
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
270
+ }
271
271
  }
272
272
 
273
273
  export function start() {
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;