@rivetkit/rivetkit-wasm 2.3.5-rc.1 → 2.3.5

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.5-rc.1",
3
+ "version": "2.3.5",
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 uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
3
+ export function start(): void;
5
4
  export function bridgeRivetErrorPrefix(): string;
6
5
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
- export function start(): void;
6
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
7
+ export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -221,24 +221,9 @@ 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
224
 
233
- /**
234
- * @param {Uint8Array} bytes
235
- * @returns {Uint8Array}
236
- */
237
- export function uint8ArrayFromBytes(bytes) {
238
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
239
- const len0 = WASM_VECTOR_LEN;
240
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
241
- return ret;
225
+ export function start() {
226
+ wasm.start();
242
227
  }
243
228
 
244
229
  /**
@@ -270,8 +255,24 @@ export function roundTripBytes(bytes) {
270
255
  return v2;
271
256
  }
272
257
 
273
- export function start() {
274
- wasm.start();
258
+ /**
259
+ * @param {Promise<any>} promise
260
+ * @returns {Promise<any>}
261
+ */
262
+ export function awaitPromise(promise) {
263
+ const ret = wasm.awaitPromise(promise);
264
+ return ret;
265
+ }
266
+
267
+ /**
268
+ * @param {Uint8Array} bytes
269
+ * @returns {Uint8Array}
270
+ */
271
+ export function uint8ArrayFromBytes(bytes) {
272
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
273
+ const len0 = WASM_VECTOR_LEN;
274
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
275
+ return ret;
275
276
  }
276
277
 
277
278
  function __wbg_adapter_50(arg0, arg1, arg2) {
Binary file