@rivetkit/rivetkit-wasm 2.3.28 → 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.28",
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.28",
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
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
4
- export function bridgeRivetErrorPrefix(): string;
5
3
  export function start(): void;
6
- export function awaitPromise(promise: Promise<any>): Promise<any>;
7
4
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
+ export function bridgeRivetErrorPrefix(): string;
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,15 +221,22 @@ function _assertClass(instance, klass) {
221
221
  throw new Error(`expected instance of ${klass.name}`);
222
222
  }
223
223
  }
224
+
225
+ export function start() {
226
+ wasm.start();
227
+ }
228
+
224
229
  /**
225
230
  * @param {Uint8Array} bytes
226
231
  * @returns {Uint8Array}
227
232
  */
228
- export function uint8ArrayFromBytes(bytes) {
233
+ export function roundTripBytes(bytes) {
229
234
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
230
235
  const len0 = WASM_VECTOR_LEN;
231
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
232
- return ret;
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;
233
240
  }
234
241
 
235
242
  /**
@@ -248,10 +255,6 @@ export function bridgeRivetErrorPrefix() {
248
255
  }
249
256
  }
250
257
 
251
- export function start() {
252
- wasm.start();
253
- }
254
-
255
258
  /**
256
259
  * @param {Promise<any>} promise
257
260
  * @returns {Promise<any>}
@@ -265,13 +268,11 @@ export function awaitPromise(promise) {
265
268
  * @param {Uint8Array} bytes
266
269
  * @returns {Uint8Array}
267
270
  */
268
- export function roundTripBytes(bytes) {
271
+ export function uint8ArrayFromBytes(bytes) {
269
272
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
270
273
  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;
274
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
275
+ return ret;
275
276
  }
276
277
 
277
278
  function __wbg_adapter_50(arg0, arg1, arg2) {
@@ -2113,23 +2114,23 @@ function __wbg_get_imports() {
2113
2114
  const ret = false;
2114
2115
  return ret;
2115
2116
  };
2116
- imports.wbg.__wbindgen_closure_wrapper4736 = function(arg0, arg1, arg2) {
2117
+ imports.wbg.__wbindgen_closure_wrapper4734 = function(arg0, arg1, arg2) {
2117
2118
  const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2118
2119
  return ret;
2119
2120
  };
2120
- imports.wbg.__wbindgen_closure_wrapper4738 = function(arg0, arg1, arg2) {
2121
+ imports.wbg.__wbindgen_closure_wrapper4736 = function(arg0, arg1, arg2) {
2121
2122
  const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2122
2123
  return ret;
2123
2124
  };
2124
- imports.wbg.__wbindgen_closure_wrapper4740 = function(arg0, arg1, arg2) {
2125
+ imports.wbg.__wbindgen_closure_wrapper4738 = function(arg0, arg1, arg2) {
2125
2126
  const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2126
2127
  return ret;
2127
2128
  };
2128
- imports.wbg.__wbindgen_closure_wrapper4742 = function(arg0, arg1, arg2) {
2129
+ imports.wbg.__wbindgen_closure_wrapper4740 = function(arg0, arg1, arg2) {
2129
2130
  const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2130
2131
  return ret;
2131
2132
  };
2132
- imports.wbg.__wbindgen_closure_wrapper5706 = function(arg0, arg1, arg2) {
2133
+ imports.wbg.__wbindgen_closure_wrapper5704 = function(arg0, arg1, arg2) {
2133
2134
  const ret = makeMutClosure(arg0, arg1, 2335, __wbg_adapter_59);
2134
2135
  return ret;
2135
2136
  };
Binary file