@rivetkit/rivetkit-wasm 0.0.0-pr.4880.c7bfbc5 → 0.0.0-pr.4931.24d1999

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-pr.4880.c7bfbc5",
3
+ "version": "0.0.0-pr.4931.24d1999",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,9 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
3
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
4
4
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
5
5
  export function start(): void;
6
- export function awaitPromise(promise: Promise<any>): Promise<any>;
6
+ export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
7
  export function bridgeRivetErrorPrefix(): string;
8
8
  export class ActorContext {
9
9
  free(): void;
@@ -115,7 +115,6 @@ export class Schedule {
115
115
  export class SqliteDb {
116
116
  private constructor();
117
117
  free(): void;
118
- executeWrite(sql: string, params: any): Promise<any>;
119
118
  run(sql: string, params: any): Promise<any>;
120
119
  exec(sql: string): Promise<any>;
121
120
  close(): Promise<void>;
@@ -222,7 +221,6 @@ export interface InitOutput {
222
221
  readonly sqlitedb_close: (a: number) => any;
223
222
  readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
224
223
  readonly sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
225
- readonly sqlitedb_executeWrite: (a: number, b: number, c: number, d: any) => any;
226
224
  readonly sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
227
225
  readonly sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
228
226
  readonly uint8ArrayFromBytes: (a: number, b: number) => any;
@@ -232,8 +230,8 @@ export interface InitOutput {
232
230
  readonly start: () => void;
233
231
  readonly actorcontext_queue: (a: number) => number;
234
232
  readonly actorcontext_schedule: (a: number) => number;
235
- readonly __wbg_queue_free: (a: number, b: number) => void;
236
233
  readonly __wbg_schedule_free: (a: number, b: number) => void;
234
+ readonly __wbg_queue_free: (a: number, b: number) => void;
237
235
  readonly __wbindgen_malloc: (a: number, b: number) => number;
238
236
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
239
237
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -242,9 +240,9 @@ export interface InitOutput {
242
240
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
243
241
  readonly __wbindgen_export_6: WebAssembly.Table;
244
242
  readonly __externref_table_dealloc: (a: number) => void;
245
- readonly closure1558_externref_shim: (a: number, b: number, c: any) => void;
246
- readonly closure1761_externref_shim: (a: number, b: number, c: any) => void;
247
- readonly closure1980_externref_shim: (a: number, b: number, c: any, d: any) => void;
243
+ readonly closure1601_externref_shim: (a: number, b: number, c: any) => void;
244
+ readonly closure1804_externref_shim: (a: number, b: number, c: any) => void;
245
+ readonly closure2017_externref_shim: (a: number, b: number, c: any, d: any) => void;
248
246
  readonly __wbindgen_start: () => void;
249
247
  }
250
248
 
@@ -222,13 +222,11 @@ function _assertClass(instance, klass) {
222
222
  }
223
223
  }
224
224
  /**
225
- * @param {Uint8Array} bytes
226
- * @returns {Uint8Array}
225
+ * @param {Promise<any>} promise
226
+ * @returns {Promise<any>}
227
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);
228
+ export function awaitPromise(promise) {
229
+ const ret = wasm.awaitPromise(promise);
232
230
  return ret;
233
231
  }
234
232
 
@@ -250,11 +248,13 @@ export function start() {
250
248
  }
251
249
 
252
250
  /**
253
- * @param {Promise<any>} promise
254
- * @returns {Promise<any>}
251
+ * @param {Uint8Array} bytes
252
+ * @returns {Uint8Array}
255
253
  */
256
- export function awaitPromise(promise) {
257
- const ret = wasm.awaitPromise(promise);
254
+ export function uint8ArrayFromBytes(bytes) {
255
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
256
+ const len0 = WASM_VECTOR_LEN;
257
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
258
258
  return ret;
259
259
  }
260
260
 
@@ -275,15 +275,15 @@ export function bridgeRivetErrorPrefix() {
275
275
  }
276
276
 
277
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
278
- wasm.closure1558_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure1601_externref_shim(arg0, arg1, arg2);
279
279
  }
280
280
 
281
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
282
- wasm.closure1761_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure1804_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
- function __wbg_adapter_223(arg0, arg1, arg2, arg3) {
286
- wasm.closure1980_externref_shim(arg0, arg1, arg2, arg3);
285
+ function __wbg_adapter_222(arg0, arg1, arg2, arg3) {
286
+ wasm.closure2017_externref_shim(arg0, arg1, arg2, arg3);
287
287
  }
288
288
 
289
289
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -1216,17 +1216,6 @@ export class SqliteDb {
1216
1216
  const ptr = this.__destroy_into_raw();
1217
1217
  wasm.__wbg_sqlitedb_free(ptr, 0);
1218
1218
  }
1219
- /**
1220
- * @param {string} sql
1221
- * @param {any} params
1222
- * @returns {Promise<any>}
1223
- */
1224
- executeWrite(sql, params) {
1225
- const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1226
- const len0 = WASM_VECTOR_LEN;
1227
- const ret = wasm.sqlitedb_executeWrite(this.__wbg_ptr, ptr0, len0, params);
1228
- return ret;
1229
- }
1230
1219
  /**
1231
1220
  * @param {string} sql
1232
1221
  * @param {any} params
@@ -1555,7 +1544,7 @@ function __wbg_get_imports() {
1555
1544
  const a = state0.a;
1556
1545
  state0.a = 0;
1557
1546
  try {
1558
- return __wbg_adapter_223(a, state0.b, arg0, arg1);
1547
+ return __wbg_adapter_222(a, state0.b, arg0, arg1);
1559
1548
  } finally {
1560
1549
  state0.a = a;
1561
1550
  }
@@ -1767,24 +1756,24 @@ function __wbg_get_imports() {
1767
1756
  const ret = false;
1768
1757
  return ret;
1769
1758
  };
1770
- imports.wbg.__wbindgen_closure_wrapper3627 = function(arg0, arg1, arg2) {
1771
- const ret = makeMutClosure(arg0, arg1, 1559, __wbg_adapter_46);
1759
+ imports.wbg.__wbindgen_closure_wrapper3766 = function(arg0, arg1, arg2) {
1760
+ const ret = makeMutClosure(arg0, arg1, 1602, __wbg_adapter_46);
1772
1761
  return ret;
1773
1762
  };
1774
- imports.wbg.__wbindgen_closure_wrapper3629 = function(arg0, arg1, arg2) {
1775
- const ret = makeMutClosure(arg0, arg1, 1559, __wbg_adapter_46);
1763
+ imports.wbg.__wbindgen_closure_wrapper3768 = function(arg0, arg1, arg2) {
1764
+ const ret = makeMutClosure(arg0, arg1, 1602, __wbg_adapter_46);
1776
1765
  return ret;
1777
1766
  };
1778
- imports.wbg.__wbindgen_closure_wrapper3631 = function(arg0, arg1, arg2) {
1779
- const ret = makeMutClosure(arg0, arg1, 1559, __wbg_adapter_46);
1767
+ imports.wbg.__wbindgen_closure_wrapper3770 = function(arg0, arg1, arg2) {
1768
+ const ret = makeMutClosure(arg0, arg1, 1602, __wbg_adapter_46);
1780
1769
  return ret;
1781
1770
  };
1782
- imports.wbg.__wbindgen_closure_wrapper3633 = function(arg0, arg1, arg2) {
1783
- const ret = makeMutClosure(arg0, arg1, 1559, __wbg_adapter_46);
1771
+ imports.wbg.__wbindgen_closure_wrapper3772 = function(arg0, arg1, arg2) {
1772
+ const ret = makeMutClosure(arg0, arg1, 1602, __wbg_adapter_46);
1784
1773
  return ret;
1785
1774
  };
1786
- imports.wbg.__wbindgen_closure_wrapper4226 = function(arg0, arg1, arg2) {
1787
- const ret = makeMutClosure(arg0, arg1, 1762, __wbg_adapter_55);
1775
+ imports.wbg.__wbindgen_closure_wrapper4370 = function(arg0, arg1, arg2) {
1776
+ const ret = makeMutClosure(arg0, arg1, 1805, __wbg_adapter_55);
1788
1777
  return ret;
1789
1778
  };
1790
1779
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -89,7 +89,6 @@ export const schedule_at: (a: number, b: number, c: number, d: number, e: number
89
89
  export const sqlitedb_close: (a: number) => any;
90
90
  export const sqlitedb_exec: (a: number, b: number, c: number) => any;
91
91
  export const sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
92
- export const sqlitedb_executeWrite: (a: number, b: number, c: number, d: any) => any;
93
92
  export const sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
94
93
  export const sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
95
94
  export const uint8ArrayFromBytes: (a: number, b: number) => any;
@@ -99,8 +98,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
99
98
  export const start: () => void;
100
99
  export const actorcontext_queue: (a: number) => number;
101
100
  export const actorcontext_schedule: (a: number) => number;
102
- export const __wbg_queue_free: (a: number, b: number) => void;
103
101
  export const __wbg_schedule_free: (a: number, b: number) => void;
102
+ export const __wbg_queue_free: (a: number, b: number) => void;
104
103
  export const __wbindgen_malloc: (a: number, b: number) => number;
105
104
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
106
105
  export const __wbindgen_exn_store: (a: number) => void;
@@ -109,7 +108,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
109
108
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
110
109
  export const __wbindgen_export_6: WebAssembly.Table;
111
110
  export const __externref_table_dealloc: (a: number) => void;
112
- export const closure1558_externref_shim: (a: number, b: number, c: any) => void;
113
- export const closure1761_externref_shim: (a: number, b: number, c: any) => void;
114
- export const closure1980_externref_shim: (a: number, b: number, c: any, d: any) => void;
111
+ export const closure1601_externref_shim: (a: number, b: number, c: any) => void;
112
+ export const closure1804_externref_shim: (a: number, b: number, c: any) => void;
113
+ export const closure2017_externref_shim: (a: number, b: number, c: any, d: any) => void;
115
114
  export const __wbindgen_start: () => void;