@rivetkit/rivetkit-wasm 2.3.2 → 2.3.3-rc.1

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.2",
3
+ "version": "2.3.3-rc.1",
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>;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
3
  export function bridgeRivetErrorPrefix(): string;
6
4
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
7
6
  export function start(): void;
7
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -221,28 +221,6 @@ function _assertClass(instance, klass) {
221
221
  throw new Error(`expected instance of ${klass.name}`);
222
222
  }
223
223
  }
224
- /**
225
- * @param {Promise<any>} promise
226
- * @returns {Promise<any>}
227
- */
228
- export function awaitPromise(promise) {
229
- const ret = wasm.awaitPromise(promise);
230
- return ret;
231
- }
232
-
233
- /**
234
- * @param {Uint8Array} bytes
235
- * @returns {Uint8Array}
236
- */
237
- export function roundTripBytes(bytes) {
238
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
239
- const len0 = WASM_VECTOR_LEN;
240
- const ret = wasm.roundTripBytes(ptr0, len0);
241
- var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
242
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
243
- return v2;
244
- }
245
-
246
224
  /**
247
225
  * @returns {string}
248
226
  */
@@ -270,10 +248,32 @@ export function uint8ArrayFromBytes(bytes) {
270
248
  return ret;
271
249
  }
272
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
+
273
260
  export function start() {
274
261
  wasm.start();
275
262
  }
276
263
 
264
+ /**
265
+ * @param {Uint8Array} bytes
266
+ * @returns {Uint8Array}
267
+ */
268
+ export function roundTripBytes(bytes) {
269
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
270
+ const len0 = WASM_VECTOR_LEN;
271
+ const ret = wasm.roundTripBytes(ptr0, len0);
272
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
273
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
274
+ return v2;
275
+ }
276
+
277
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
278
278
  wasm.closure1598_externref_shim(arg0, arg1, arg2);
279
279
  }
@@ -282,7 +282,7 @@ function __wbg_adapter_55(arg0, arg1, arg2) {
282
282
  wasm.closure1950_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
- function __wbg_adapter_268(arg0, arg1, arg2, arg3) {
285
+ function __wbg_adapter_276(arg0, arg1, arg2, arg3) {
286
286
  wasm.closure2181_externref_shim(arg0, arg1, arg2, arg3);
287
287
  }
288
288
 
@@ -1569,7 +1569,7 @@ function __wbg_get_imports() {
1569
1569
  const a = state0.a;
1570
1570
  state0.a = 0;
1571
1571
  try {
1572
- return __wbg_adapter_268(a, state0.b, arg0, arg1);
1572
+ return __wbg_adapter_276(a, state0.b, arg0, arg1);
1573
1573
  } finally {
1574
1574
  state0.a = a;
1575
1575
  }
@@ -1781,23 +1781,23 @@ function __wbg_get_imports() {
1781
1781
  const ret = false;
1782
1782
  return ret;
1783
1783
  };
1784
- imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
1784
+ imports.wbg.__wbindgen_closure_wrapper3728 = function(arg0, arg1, arg2) {
1785
1785
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1786
1786
  return ret;
1787
1787
  };
1788
- imports.wbg.__wbindgen_closure_wrapper3735 = function(arg0, arg1, arg2) {
1788
+ imports.wbg.__wbindgen_closure_wrapper3730 = function(arg0, arg1, arg2) {
1789
1789
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1790
1790
  return ret;
1791
1791
  };
1792
- imports.wbg.__wbindgen_closure_wrapper3737 = function(arg0, arg1, arg2) {
1792
+ imports.wbg.__wbindgen_closure_wrapper3732 = function(arg0, arg1, arg2) {
1793
1793
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1794
1794
  return ret;
1795
1795
  };
1796
- imports.wbg.__wbindgen_closure_wrapper3739 = function(arg0, arg1, arg2) {
1796
+ imports.wbg.__wbindgen_closure_wrapper3734 = function(arg0, arg1, arg2) {
1797
1797
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1798
1798
  return ret;
1799
1799
  };
1800
- imports.wbg.__wbindgen_closure_wrapper4580 = function(arg0, arg1, arg2) {
1800
+ imports.wbg.__wbindgen_closure_wrapper4575 = function(arg0, arg1, arg2) {
1801
1801
  const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
1802
1802
  return ret;
1803
1803
  };
Binary file