@rivetkit/rivetkit-wasm 2.3.29 → 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.29",
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.29",
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 bridgeRivetErrorPrefix(): string;
3
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
5
4
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
6
5
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
- export function awaitPromise(promise: Promise<any>): Promise<any>;
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,25 +221,13 @@ 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
-
229
224
  /**
230
- * @returns {string}
225
+ * @param {Promise<any>} promise
226
+ * @returns {Promise<any>}
231
227
  */
232
- export function bridgeRivetErrorPrefix() {
233
- let deferred1_0;
234
- let deferred1_1;
235
- try {
236
- const ret = wasm.bridgeRivetErrorPrefix();
237
- deferred1_0 = ret[0];
238
- deferred1_1 = ret[1];
239
- return getStringFromWasm0(ret[0], ret[1]);
240
- } finally {
241
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
242
- }
228
+ export function awaitPromise(promise) {
229
+ const ret = wasm.awaitPromise(promise);
230
+ return ret;
243
231
  }
244
232
 
245
233
  /**
@@ -267,12 +255,23 @@ export function roundTripBytes(bytes) {
267
255
  }
268
256
 
269
257
  /**
270
- * @param {Promise<any>} promise
271
- * @returns {Promise<any>}
258
+ * @returns {string}
272
259
  */
273
- export function awaitPromise(promise) {
274
- const ret = wasm.awaitPromise(promise);
275
- return ret;
260
+ export function bridgeRivetErrorPrefix() {
261
+ let deferred1_0;
262
+ let deferred1_1;
263
+ try {
264
+ const ret = wasm.bridgeRivetErrorPrefix();
265
+ deferred1_0 = ret[0];
266
+ deferred1_1 = ret[1];
267
+ return getStringFromWasm0(ret[0], ret[1]);
268
+ } finally {
269
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
270
+ }
271
+ }
272
+
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