@rivetkit/rivetkit-wasm 0.0.0-sqlite-uds.4e59a38 → 0.0.0-sqlite-uds.2015d80

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-sqlite-uds.4e59a38",
3
+ "version": "0.0.0-sqlite-uds.2015d80",
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
3
  export function start(): void;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
- export function awaitPromise(promise: Promise<any>): Promise<any>;
6
4
  export function bridgeRivetErrorPrefix(): string;
5
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
6
  export function uint8ArrayFromBytes(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;
@@ -240,8 +240,8 @@ export interface InitOutput {
240
240
  readonly start: () => void;
241
241
  readonly actorcontext_queue: (a: number) => number;
242
242
  readonly actorcontext_schedule: (a: number) => number;
243
- readonly __wbg_queue_free: (a: number, b: number) => void;
244
243
  readonly __wbg_schedule_free: (a: number, b: number) => void;
244
+ readonly __wbg_queue_free: (a: number, b: number) => void;
245
245
  readonly __wbindgen_malloc: (a: number, b: number) => number;
246
246
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
247
247
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -226,28 +226,6 @@ export function start() {
226
226
  wasm.start();
227
227
  }
228
228
 
229
- /**
230
- * @param {Uint8Array} bytes
231
- * @returns {Uint8Array}
232
- */
233
- export function roundTripBytes(bytes) {
234
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
235
- const len0 = WASM_VECTOR_LEN;
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;
240
- }
241
-
242
- /**
243
- * @param {Promise<any>} promise
244
- * @returns {Promise<any>}
245
- */
246
- export function awaitPromise(promise) {
247
- const ret = wasm.awaitPromise(promise);
248
- return ret;
249
- }
250
-
251
229
  /**
252
230
  * @returns {string}
253
231
  */
@@ -264,6 +242,19 @@ export function bridgeRivetErrorPrefix() {
264
242
  }
265
243
  }
266
244
 
245
+ /**
246
+ * @param {Uint8Array} bytes
247
+ * @returns {Uint8Array}
248
+ */
249
+ export function roundTripBytes(bytes) {
250
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
251
+ const len0 = WASM_VECTOR_LEN;
252
+ const ret = wasm.roundTripBytes(ptr0, len0);
253
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
254
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
255
+ return v2;
256
+ }
257
+
267
258
  /**
268
259
  * @param {Uint8Array} bytes
269
260
  * @returns {Uint8Array}
@@ -275,6 +266,15 @@ export function uint8ArrayFromBytes(bytes) {
275
266
  return ret;
276
267
  }
277
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
+
278
278
  function __wbg_adapter_46(arg0, arg1, arg2) {
279
279
  wasm.closure1608_externref_shim(arg0, arg1, arg2);
280
280
  }
@@ -1805,7 +1805,7 @@ function __wbg_get_imports() {
1805
1805
  const ret = makeMutClosure(arg0, arg1, 1609, __wbg_adapter_46);
1806
1806
  return ret;
1807
1807
  };
1808
- imports.wbg.__wbindgen_closure_wrapper4626 = function(arg0, arg1, arg2) {
1808
+ imports.wbg.__wbindgen_closure_wrapper4627 = function(arg0, arg1, arg2) {
1809
1809
  const ret = makeMutClosure(arg0, arg1, 1961, __wbg_adapter_55);
1810
1810
  return ret;
1811
1811
  };
Binary file
@@ -103,8 +103,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
103
103
  export const start: () => void;
104
104
  export const actorcontext_queue: (a: number) => number;
105
105
  export const actorcontext_schedule: (a: number) => number;
106
- export const __wbg_queue_free: (a: number, b: number) => void;
107
106
  export const __wbg_schedule_free: (a: number, b: number) => void;
107
+ export const __wbg_queue_free: (a: number, b: number) => void;
108
108
  export const __wbindgen_malloc: (a: number, b: number) => number;
109
109
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
110
110
  export const __wbindgen_exn_store: (a: number) => void;