@rivetkit/rivetkit-wasm 0.0.0-pr.4947.aeb40dd → 0.0.0-pr.4949.4add738

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.4947.aeb40dd",
3
+ "version": "0.0.0-pr.4949.4add738",
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 awaitPromise(promise: Promise<any>): Promise<any>;
3
+ export function bridgeRivetErrorPrefix(): string;
4
4
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
- export function start(): void;
6
5
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
- export function bridgeRivetErrorPrefix(): string;
6
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
7
+ export function start(): void;
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 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;
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;
250
250
  readonly __wbindgen_start: () => void;
251
251
  }
252
252
 
@@ -222,12 +222,19 @@ function _assertClass(instance, klass) {
222
222
  }
223
223
  }
224
224
  /**
225
- * @param {Promise<any>} promise
226
- * @returns {Promise<any>}
225
+ * @returns {string}
227
226
  */
228
- export function awaitPromise(promise) {
229
- const ret = wasm.awaitPromise(promise);
230
- return ret;
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
+ }
231
238
  }
232
239
 
233
240
  /**
@@ -243,10 +250,6 @@ export function roundTripBytes(bytes) {
243
250
  return v2;
244
251
  }
245
252
 
246
- export function start() {
247
- wasm.start();
248
- }
249
-
250
253
  /**
251
254
  * @param {Uint8Array} bytes
252
255
  * @returns {Uint8Array}
@@ -259,31 +262,28 @@ export function uint8ArrayFromBytes(bytes) {
259
262
  }
260
263
 
261
264
  /**
262
- * @returns {string}
265
+ * @param {Promise<any>} promise
266
+ * @returns {Promise<any>}
263
267
  */
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
- }
268
+ export function awaitPromise(promise) {
269
+ const ret = wasm.awaitPromise(promise);
270
+ return ret;
271
+ }
272
+
273
+ export function start() {
274
+ wasm.start();
275
275
  }
276
276
 
277
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
278
- wasm.closure1598_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure1597_externref_shim(arg0, arg1, arg2);
279
279
  }
280
280
 
281
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
282
- wasm.closure1801_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure1800_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
- function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
286
- wasm.closure2014_externref_shim(arg0, arg1, arg2, arg3);
285
+ function __wbg_adapter_260(arg0, arg1, arg2, arg3) {
286
+ wasm.closure2013_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_224(a, state0.b, arg0, arg1);
1558
+ return __wbg_adapter_260(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, 1599, __wbg_adapter_46);
1771
+ const ret = makeMutClosure(arg0, arg1, 1598, __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, 1599, __wbg_adapter_46);
1775
+ const ret = makeMutClosure(arg0, arg1, 1598, __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, 1599, __wbg_adapter_46);
1779
+ const ret = makeMutClosure(arg0, arg1, 1598, __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, 1599, __wbg_adapter_46);
1783
+ const ret = makeMutClosure(arg0, arg1, 1598, __wbg_adapter_46);
1784
1784
  return ret;
1785
1785
  };
1786
- imports.wbg.__wbindgen_closure_wrapper4377 = function(arg0, arg1, arg2) {
1787
- const ret = makeMutClosure(arg0, arg1, 1802, __wbg_adapter_55);
1786
+ imports.wbg.__wbindgen_closure_wrapper4384 = function(arg0, arg1, arg2) {
1787
+ const ret = makeMutClosure(arg0, arg1, 1801, __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 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;
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;
116
116
  export const __wbindgen_start: () => void;