@rivetkit/rivetkit-wasm 2.3.28 → 2.3.29

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.29",
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.29",
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>;
4
+ export function bridgeRivetErrorPrefix(): string;
5
+ export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
6
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -221,15 +221,9 @@ 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;
224
+
225
+ export function start() {
226
+ wasm.start();
233
227
  }
234
228
 
235
229
  /**
@@ -248,16 +242,14 @@ export function bridgeRivetErrorPrefix() {
248
242
  }
249
243
  }
250
244
 
251
- export function start() {
252
- wasm.start();
253
- }
254
-
255
245
  /**
256
- * @param {Promise<any>} promise
257
- * @returns {Promise<any>}
246
+ * @param {Uint8Array} bytes
247
+ * @returns {Uint8Array}
258
248
  */
259
- export function awaitPromise(promise) {
260
- const ret = wasm.awaitPromise(promise);
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);
261
253
  return ret;
262
254
  }
263
255
 
@@ -274,6 +266,15 @@ export function roundTripBytes(bytes) {
274
266
  return v2;
275
267
  }
276
268
 
269
+ /**
270
+ * @param {Promise<any>} promise
271
+ * @returns {Promise<any>}
272
+ */
273
+ export function awaitPromise(promise) {
274
+ const ret = wasm.awaitPromise(promise);
275
+ return ret;
276
+ }
277
+
277
278
  function __wbg_adapter_50(arg0, arg1, arg2) {
278
279
  wasm.closure1975_externref_shim(arg0, arg1, arg2);
279
280
  }
@@ -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