@rivetkit/rivetkit-wasm 2.3.10 → 2.3.11-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.10",
3
+ "version": "2.3.11-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 uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
3
4
  export function bridgeRivetErrorPrefix(): string;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
- export function start(): void;
6
5
  export function awaitPromise(promise: Promise<any>): Promise<any>;
7
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
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,6 +221,17 @@ function _assertClass(instance, klass) {
221
221
  throw new Error(`expected instance of ${klass.name}`);
222
222
  }
223
223
  }
224
+ /**
225
+ * @param {Uint8Array} bytes
226
+ * @returns {Uint8Array}
227
+ */
228
+ export function uint8ArrayFromBytes(bytes) {
229
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
230
+ const len0 = WASM_VECTOR_LEN;
231
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
232
+ return ret;
233
+ }
234
+
224
235
  /**
225
236
  * @returns {string}
226
237
  */
@@ -237,23 +248,6 @@ export function bridgeRivetErrorPrefix() {
237
248
  }
238
249
  }
239
250
 
240
- /**
241
- * @param {Uint8Array} bytes
242
- * @returns {Uint8Array}
243
- */
244
- export function roundTripBytes(bytes) {
245
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
246
- 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;
251
- }
252
-
253
- export function start() {
254
- wasm.start();
255
- }
256
-
257
251
  /**
258
252
  * @param {Promise<any>} promise
259
253
  * @returns {Promise<any>}
@@ -263,15 +257,21 @@ export function awaitPromise(promise) {
263
257
  return ret;
264
258
  }
265
259
 
260
+ export function start() {
261
+ wasm.start();
262
+ }
263
+
266
264
  /**
267
265
  * @param {Uint8Array} bytes
268
266
  * @returns {Uint8Array}
269
267
  */
270
- export function uint8ArrayFromBytes(bytes) {
268
+ export function roundTripBytes(bytes) {
271
269
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
272
270
  const len0 = WASM_VECTOR_LEN;
273
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
274
- return ret;
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
275
  }
276
276
 
277
277
  function __wbg_adapter_50(arg0, arg1, arg2) {
Binary file