@rivetkit/rivetkit-wasm 2.3.3 → 2.3.4

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.3",
3
+ "version": "2.3.4",
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 uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
5
6
  export function start(): void;
6
7
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
- export function bridgeRivetErrorPrefix(): string;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -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
  /**
@@ -241,6 +248,15 @@ export function uint8ArrayFromBytes(bytes) {
241
248
  return ret;
242
249
  }
243
250
 
251
+ /**
252
+ * @param {Promise<any>} promise
253
+ * @returns {Promise<any>}
254
+ */
255
+ export function awaitPromise(promise) {
256
+ const ret = wasm.awaitPromise(promise);
257
+ return ret;
258
+ }
259
+
244
260
  export function start() {
245
261
  wasm.start();
246
262
  }
@@ -258,22 +274,6 @@ export function roundTripBytes(bytes) {
258
274
  return v2;
259
275
  }
260
276
 
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
- }
276
-
277
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
278
278
  wasm.closure1607_externref_shim(arg0, arg1, arg2);
279
279
  }
@@ -1788,19 +1788,19 @@ function __wbg_get_imports() {
1788
1788
  const ret = false;
1789
1789
  return ret;
1790
1790
  };
1791
- imports.wbg.__wbindgen_closure_wrapper3769 = function(arg0, arg1, arg2) {
1791
+ imports.wbg.__wbindgen_closure_wrapper3770 = function(arg0, arg1, arg2) {
1792
1792
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1793
1793
  return ret;
1794
1794
  };
1795
- imports.wbg.__wbindgen_closure_wrapper3771 = function(arg0, arg1, arg2) {
1795
+ imports.wbg.__wbindgen_closure_wrapper3772 = function(arg0, arg1, arg2) {
1796
1796
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1797
1797
  return ret;
1798
1798
  };
1799
- imports.wbg.__wbindgen_closure_wrapper3773 = function(arg0, arg1, arg2) {
1799
+ imports.wbg.__wbindgen_closure_wrapper3774 = function(arg0, arg1, arg2) {
1800
1800
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1801
1801
  return ret;
1802
1802
  };
1803
- imports.wbg.__wbindgen_closure_wrapper3775 = function(arg0, arg1, arg2) {
1803
+ imports.wbg.__wbindgen_closure_wrapper3776 = function(arg0, arg1, arg2) {
1804
1804
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1805
1805
  return ret;
1806
1806
  };
Binary file