@rivetkit/rivetkit-wasm 2.3.30 → 2.3.31

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.30",
3
+ "version": "2.3.31",
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.30",
7
+ "version": "2.3.31",
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 start(): void;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
- export function bridgeRivetErrorPrefix(): string;
6
3
  export function awaitPromise(promise: Promise<any>): Promise<any>;
7
4
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
+ export function bridgeRivetErrorPrefix(): string;
7
+ export function start(): void;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -221,9 +221,24 @@ 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
+ }
224
232
 
225
- export function start() {
226
- wasm.start();
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;
227
242
  }
228
243
 
229
244
  /**
@@ -255,24 +270,8 @@ export function bridgeRivetErrorPrefix() {
255
270
  }
256
271
  }
257
272
 
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;
273
+ export function start() {
274
+ wasm.start();
276
275
  }
277
276
 
278
277
  function __wbg_adapter_50(arg0, arg1, arg2) {
@@ -2114,10 +2113,6 @@ function __wbg_get_imports() {
2114
2113
  const ret = false;
2115
2114
  return ret;
2116
2115
  };
2117
- imports.wbg.__wbindgen_closure_wrapper4734 = function(arg0, arg1, arg2) {
2118
- const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2119
- return ret;
2120
- };
2121
2116
  imports.wbg.__wbindgen_closure_wrapper4736 = function(arg0, arg1, arg2) {
2122
2117
  const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2123
2118
  return ret;
@@ -2130,7 +2125,11 @@ function __wbg_get_imports() {
2130
2125
  const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2131
2126
  return ret;
2132
2127
  };
2133
- imports.wbg.__wbindgen_closure_wrapper5704 = function(arg0, arg1, arg2) {
2128
+ imports.wbg.__wbindgen_closure_wrapper4742 = function(arg0, arg1, arg2) {
2129
+ const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2130
+ return ret;
2131
+ };
2132
+ imports.wbg.__wbindgen_closure_wrapper5706 = function(arg0, arg1, arg2) {
2134
2133
  const ret = makeMutClosure(arg0, arg1, 2335, __wbg_adapter_59);
2135
2134
  return ret;
2136
2135
  };
Binary file