@rivetkit/rivetkit-wasm 2.3.29 → 2.3.30

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.29",
3
+ "version": "2.3.30",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/pkg/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Rivet Gaming, LLC <developer@rivet.dev>"
6
6
  ],
7
- "version": "2.3.29",
7
+ "version": "2.3.30",
8
8
  "license": "Apache-2.0",
9
9
  "files": [
10
10
  "rivetkit_wasm_bg.wasm",
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function start(): void;
4
- export function bridgeRivetErrorPrefix(): string;
5
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
6
4
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
+ export function bridgeRivetErrorPrefix(): string;
7
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;
@@ -226,6 +226,19 @@ export function start() {
226
226
  wasm.start();
227
227
  }
228
228
 
229
+ /**
230
+ * @param {Uint8Array} bytes
231
+ * @returns {Uint8Array}
232
+ */
233
+ export function roundTripBytes(bytes) {
234
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
235
+ const len0 = WASM_VECTOR_LEN;
236
+ const ret = wasm.roundTripBytes(ptr0, len0);
237
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
238
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
239
+ return v2;
240
+ }
241
+
229
242
  /**
230
243
  * @returns {string}
231
244
  */
@@ -243,13 +256,11 @@ export function bridgeRivetErrorPrefix() {
243
256
  }
244
257
 
245
258
  /**
246
- * @param {Uint8Array} bytes
247
- * @returns {Uint8Array}
259
+ * @param {Promise<any>} promise
260
+ * @returns {Promise<any>}
248
261
  */
249
- export function uint8ArrayFromBytes(bytes) {
250
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
251
- const len0 = WASM_VECTOR_LEN;
252
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
262
+ export function awaitPromise(promise) {
263
+ const ret = wasm.awaitPromise(promise);
253
264
  return ret;
254
265
  }
255
266
 
@@ -257,21 +268,10 @@ export function uint8ArrayFromBytes(bytes) {
257
268
  * @param {Uint8Array} bytes
258
269
  * @returns {Uint8Array}
259
270
  */
260
- export function roundTripBytes(bytes) {
271
+ export function uint8ArrayFromBytes(bytes) {
261
272
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
262
273
  const len0 = WASM_VECTOR_LEN;
263
- const ret = wasm.roundTripBytes(ptr0, len0);
264
- var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
265
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
266
- return v2;
267
- }
268
-
269
- /**
270
- * @param {Promise<any>} promise
271
- * @returns {Promise<any>}
272
- */
273
- export function awaitPromise(promise) {
274
- const ret = wasm.awaitPromise(promise);
274
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
275
275
  return ret;
276
276
  }
277
277
 
Binary file