@rivetkit/rivetkit-wasm 0.0.0-pr.4949.4add738 → 0.0.0-pr.4950.e914ab0

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": "0.0.0-pr.4949.4add738",
3
+ "version": "0.0.0-pr.4950.e914ab0",
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 bridgeRivetErrorPrefix(): string;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
6
3
  export function awaitPromise(promise: Promise<any>): Promise<any>;
4
+ export function roundTripBytes(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;
@@ -244,9 +244,9 @@ export interface InitOutput {
244
244
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
245
245
  readonly __wbindgen_export_6: WebAssembly.Table;
246
246
  readonly __externref_table_dealloc: (a: number) => void;
247
- readonly closure1597_externref_shim: (a: number, b: number, c: any) => void;
248
- readonly closure1800_externref_shim: (a: number, b: number, c: any) => void;
249
- readonly closure2013_externref_shim: (a: number, b: number, c: any, d: any) => void;
247
+ readonly closure1598_externref_shim: (a: number, b: number, c: any) => void;
248
+ readonly closure1801_externref_shim: (a: number, b: number, c: any) => void;
249
+ readonly closure2014_externref_shim: (a: number, b: number, c: any, d: any) => void;
250
250
  readonly __wbindgen_start: () => void;
251
251
  }
252
252
 
@@ -222,19 +222,12 @@ function _assertClass(instance, klass) {
222
222
  }
223
223
  }
224
224
  /**
225
- * @returns {string}
225
+ * @param {Promise<any>} promise
226
+ * @returns {Promise<any>}
226
227
  */
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
- }
228
+ export function awaitPromise(promise) {
229
+ const ret = wasm.awaitPromise(promise);
230
+ return ret;
238
231
  }
239
232
 
240
233
  /**
@@ -250,6 +243,10 @@ export function roundTripBytes(bytes) {
250
243
  return v2;
251
244
  }
252
245
 
246
+ export function start() {
247
+ wasm.start();
248
+ }
249
+
253
250
  /**
254
251
  * @param {Uint8Array} bytes
255
252
  * @returns {Uint8Array}
@@ -262,28 +259,31 @@ export function uint8ArrayFromBytes(bytes) {
262
259
  }
263
260
 
264
261
  /**
265
- * @param {Promise<any>} promise
266
- * @returns {Promise<any>}
262
+ * @returns {string}
267
263
  */
268
- export function awaitPromise(promise) {
269
- const ret = wasm.awaitPromise(promise);
270
- return ret;
271
- }
272
-
273
- export function start() {
274
- wasm.start();
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_46(arg0, arg1, arg2) {
278
- wasm.closure1597_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure1598_externref_shim(arg0, arg1, arg2);
279
279
  }
280
280
 
281
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
282
- wasm.closure1800_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure1801_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
- function __wbg_adapter_260(arg0, arg1, arg2, arg3) {
286
- wasm.closure2013_externref_shim(arg0, arg1, arg2, arg3);
285
+ function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
286
+ wasm.closure2014_externref_shim(arg0, arg1, arg2, arg3);
287
287
  }
288
288
 
289
289
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -1555,7 +1555,7 @@ function __wbg_get_imports() {
1555
1555
  const a = state0.a;
1556
1556
  state0.a = 0;
1557
1557
  try {
1558
- return __wbg_adapter_260(a, state0.b, arg0, arg1);
1558
+ return __wbg_adapter_224(a, state0.b, arg0, arg1);
1559
1559
  } finally {
1560
1560
  state0.a = a;
1561
1561
  }
@@ -1768,23 +1768,23 @@ function __wbg_get_imports() {
1768
1768
  return ret;
1769
1769
  };
1770
1770
  imports.wbg.__wbindgen_closure_wrapper3773 = function(arg0, arg1, arg2) {
1771
- const ret = makeMutClosure(arg0, arg1, 1598, __wbg_adapter_46);
1771
+ const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1772
1772
  return ret;
1773
1773
  };
1774
1774
  imports.wbg.__wbindgen_closure_wrapper3775 = function(arg0, arg1, arg2) {
1775
- const ret = makeMutClosure(arg0, arg1, 1598, __wbg_adapter_46);
1775
+ const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1776
1776
  return ret;
1777
1777
  };
1778
1778
  imports.wbg.__wbindgen_closure_wrapper3777 = function(arg0, arg1, arg2) {
1779
- const ret = makeMutClosure(arg0, arg1, 1598, __wbg_adapter_46);
1779
+ const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1780
1780
  return ret;
1781
1781
  };
1782
1782
  imports.wbg.__wbindgen_closure_wrapper3779 = function(arg0, arg1, arg2) {
1783
- const ret = makeMutClosure(arg0, arg1, 1598, __wbg_adapter_46);
1783
+ const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1784
1784
  return ret;
1785
1785
  };
1786
- imports.wbg.__wbindgen_closure_wrapper4384 = function(arg0, arg1, arg2) {
1787
- const ret = makeMutClosure(arg0, arg1, 1801, __wbg_adapter_55);
1786
+ imports.wbg.__wbindgen_closure_wrapper4377 = function(arg0, arg1, arg2) {
1787
+ const ret = makeMutClosure(arg0, arg1, 1802, __wbg_adapter_55);
1788
1788
  return ret;
1789
1789
  };
1790
1790
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -110,7 +110,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
110
110
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
111
111
  export const __wbindgen_export_6: WebAssembly.Table;
112
112
  export const __externref_table_dealloc: (a: number) => void;
113
- export const closure1597_externref_shim: (a: number, b: number, c: any) => void;
114
- export const closure1800_externref_shim: (a: number, b: number, c: any) => void;
115
- export const closure2013_externref_shim: (a: number, b: number, c: any, d: any) => void;
113
+ export const closure1598_externref_shim: (a: number, b: number, c: any) => void;
114
+ export const closure1801_externref_shim: (a: number, b: number, c: any) => void;
115
+ export const closure2014_externref_shim: (a: number, b: number, c: any, d: any) => void;
116
116
  export const __wbindgen_start: () => void;