@rivetkit/rivetkit-wasm 0.0.0-codex-rivetkit-cli-preview.5e414a8 → 0.0.0-codex-rivetkit-cli-preview.446d935

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": "0.0.0-codex-rivetkit-cli-preview.5e414a8",
3
+ "version": "0.0.0-codex-rivetkit-cli-preview.446d935",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function start(): void;
4
3
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
- export function awaitPromise(promise: Promise<any>): Promise<any>;
6
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
4
  export function bridgeRivetErrorPrefix(): string;
5
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
7
+ export function start(): void;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -221,11 +221,6 @@ 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
225
  * @param {Uint8Array} bytes
231
226
  * @returns {Uint8Array}
@@ -238,12 +233,19 @@ export function uint8ArrayFromBytes(bytes) {
238
233
  }
239
234
 
240
235
  /**
241
- * @param {Promise<any>} promise
242
- * @returns {Promise<any>}
236
+ * @returns {string}
243
237
  */
244
- export function awaitPromise(promise) {
245
- const ret = wasm.awaitPromise(promise);
246
- return ret;
238
+ export function bridgeRivetErrorPrefix() {
239
+ let deferred1_0;
240
+ let deferred1_1;
241
+ try {
242
+ const ret = wasm.bridgeRivetErrorPrefix();
243
+ deferred1_0 = ret[0];
244
+ deferred1_1 = ret[1];
245
+ return getStringFromWasm0(ret[0], ret[1]);
246
+ } finally {
247
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
248
+ }
247
249
  }
248
250
 
249
251
  /**
@@ -260,19 +262,16 @@ export function roundTripBytes(bytes) {
260
262
  }
261
263
 
262
264
  /**
263
- * @returns {string}
265
+ * @param {Promise<any>} promise
266
+ * @returns {Promise<any>}
264
267
  */
265
- export function bridgeRivetErrorPrefix() {
266
- let deferred1_0;
267
- let deferred1_1;
268
- try {
269
- const ret = wasm.bridgeRivetErrorPrefix();
270
- deferred1_0 = ret[0];
271
- deferred1_1 = ret[1];
272
- return getStringFromWasm0(ret[0], ret[1]);
273
- } finally {
274
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
275
- }
268
+ export function awaitPromise(promise) {
269
+ const ret = wasm.awaitPromise(promise);
270
+ return ret;
271
+ }
272
+
273
+ export function start() {
274
+ wasm.start();
276
275
  }
277
276
 
278
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
Binary file