@rivetkit/rivetkit-wasm 0.0.0-sqlite-uds.2015d80 → 0.0.0-sqlite-uds.37f9e48

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.2015d80",
3
+ "version": "0.0.0-sqlite-uds.37f9e48",
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
- export function bridgeRivetErrorPrefix(): string;
3
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
5
4
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
+ export function bridgeRivetErrorPrefix(): string;
6
+ export function start(): void;
6
7
  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_schedule_free: (a: number, b: number) => void;
244
243
  readonly __wbg_queue_free: (a: number, b: number) => void;
244
+ readonly __wbg_schedule_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;
@@ -221,9 +221,26 @@ 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 roundTripBytes(bytes) {
238
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
239
+ const len0 = WASM_VECTOR_LEN;
240
+ const ret = wasm.roundTripBytes(ptr0, len0);
241
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
242
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
243
+ return v2;
227
244
  }
228
245
 
229
246
  /**
@@ -242,17 +259,8 @@ export function bridgeRivetErrorPrefix() {
242
259
  }
243
260
  }
244
261
 
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;
262
+ export function start() {
263
+ wasm.start();
256
264
  }
257
265
 
258
266
  /**
@@ -266,15 +274,6 @@ export function uint8ArrayFromBytes(bytes) {
266
274
  return ret;
267
275
  }
268
276
 
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
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
279
278
  wasm.closure1608_externref_shim(arg0, arg1, arg2);
280
279
  }
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_schedule_free: (a: number, b: number) => void;
107
106
  export const __wbg_queue_free: (a: number, b: number) => void;
107
+ export const __wbg_schedule_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;