@rivetkit/rivetkit-wasm 0.0.0-feat-workflows-public-host-apis.86c0443 → 0.0.0-feat-sqlite-sync.18dce02
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/index.d.ts +2 -227
- package/package.json +3 -3
- package/pkg/package.json +1 -1
- package/pkg/rivetkit_wasm.d.ts +6 -8
- package/pkg/rivetkit_wasm.js +35 -26
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +5 -6
package/index.d.ts
CHANGED
|
@@ -1,227 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
|
-
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
-
|
|
7
|
-
export class ActorContext {
|
|
8
|
-
free(): void;
|
|
9
|
-
keepAwake(promise: Promise<any>): void;
|
|
10
|
-
saveState(payload: any): Promise<void>;
|
|
11
|
-
saveStateAndWorkflowBatch(
|
|
12
|
-
writes: Array<{ key: Uint8Array; value: Uint8Array }>,
|
|
13
|
-
): Promise<void>;
|
|
14
|
-
waitUntil(promise: Promise<any>): void;
|
|
15
|
-
abortSignal(): any;
|
|
16
|
-
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
17
|
-
requestSave(opts: any): void;
|
|
18
|
-
registerTask(promise: Promise<any>): void;
|
|
19
|
-
beginStateTransaction(timeout_ms?: number | null): Promise<ActorStateTransaction>;
|
|
20
|
-
runtimeState(): any;
|
|
21
|
-
endKeepAwake(region_id: number): void;
|
|
22
|
-
beginKeepAwake(): number;
|
|
23
|
-
inspectorSnapshot(): object;
|
|
24
|
-
endOnStateChange(): void;
|
|
25
|
-
restartRunHandler(): void;
|
|
26
|
-
beginOnStateChange(): void;
|
|
27
|
-
requestSaveAndWait(opts: any): Promise<void>;
|
|
28
|
-
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
29
|
-
endWebsocketCallback(region_id: number): void;
|
|
30
|
-
beginWebsocketCallback(): number;
|
|
31
|
-
dirtyHibernatableConns(): Array<any>;
|
|
32
|
-
kv(): Kv;
|
|
33
|
-
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
34
|
-
takePendingHibernationChanges(): Array<any>;
|
|
35
|
-
key(): any;
|
|
36
|
-
constructor();
|
|
37
|
-
sql(): SqliteDb;
|
|
38
|
-
name(): string;
|
|
39
|
-
conns(): Array<any>;
|
|
40
|
-
queue(): Queue;
|
|
41
|
-
sleep(): void;
|
|
42
|
-
state(): Uint8Array;
|
|
43
|
-
region(): string;
|
|
44
|
-
destroy(): void;
|
|
45
|
-
actorId(): string;
|
|
46
|
-
schedule(): Schedule;
|
|
47
|
-
broadcast(name: string, args: Uint8Array): void;
|
|
48
|
-
setAlarm(timestamp_ms?: number | null): void;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export class ActorFactory {
|
|
52
|
-
free(): void;
|
|
53
|
-
constructor(callbacks: any, config: any);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export class CancellationToken {
|
|
57
|
-
free(): void;
|
|
58
|
-
onCancelled(callback: Function): void;
|
|
59
|
-
constructor();
|
|
60
|
-
cancel(): void;
|
|
61
|
-
aborted(): boolean;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export class ConnHandle {
|
|
65
|
-
private constructor();
|
|
66
|
-
free(): void;
|
|
67
|
-
disconnect(reason?: string | null): Promise<void>;
|
|
68
|
-
isHibernatable(): boolean;
|
|
69
|
-
id(): string;
|
|
70
|
-
send(name: string, args: Uint8Array): void;
|
|
71
|
-
state(): Uint8Array;
|
|
72
|
-
params(): Uint8Array;
|
|
73
|
-
setState(state: Uint8Array): void;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class CoreRegistry {
|
|
77
|
-
free(): void;
|
|
78
|
-
handleServerlessRequest(
|
|
79
|
-
req: any,
|
|
80
|
-
on_stream_event: Function,
|
|
81
|
-
cancel_token: CancellationToken,
|
|
82
|
-
config: any,
|
|
83
|
-
): Promise<any>;
|
|
84
|
-
constructor();
|
|
85
|
-
serve(config: any): Promise<void>;
|
|
86
|
-
register(name: string, factory: ActorFactory): void;
|
|
87
|
-
shutdown(): Promise<void>;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export class Kv {
|
|
91
|
-
private constructor();
|
|
92
|
-
free(): void;
|
|
93
|
-
delete(key: Uint8Array): Promise<void>;
|
|
94
|
-
listRange(start: Uint8Array, end: Uint8Array, options: any): Promise<any>;
|
|
95
|
-
listPrefix(prefix: Uint8Array, options: any): Promise<any>;
|
|
96
|
-
batchDelete(keys: Array<any>): Promise<void>;
|
|
97
|
-
deleteRange(start: Uint8Array, end: Uint8Array): Promise<void>;
|
|
98
|
-
get(key: Uint8Array): Promise<any>;
|
|
99
|
-
put(key: Uint8Array, value: Uint8Array): Promise<void>;
|
|
100
|
-
batchGet(keys: Array<any>): Promise<any>;
|
|
101
|
-
batchPut(entries: Array<any>): Promise<void>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export class Queue {
|
|
105
|
-
private constructor();
|
|
106
|
-
free(): void;
|
|
107
|
-
nextBatch(
|
|
108
|
-
options: any,
|
|
109
|
-
signal?: CancellationToken | null,
|
|
110
|
-
): Promise<Array<any>>;
|
|
111
|
-
tryNextBatch(options: any): Array<any>;
|
|
112
|
-
waitForNames(
|
|
113
|
-
names: any,
|
|
114
|
-
options: any,
|
|
115
|
-
signal?: CancellationToken | null,
|
|
116
|
-
): Promise<QueueMessage>;
|
|
117
|
-
enqueueAndWait(
|
|
118
|
-
name: string,
|
|
119
|
-
body: Uint8Array,
|
|
120
|
-
options: any,
|
|
121
|
-
signal?: CancellationToken | null,
|
|
122
|
-
): Promise<Uint8Array | undefined>;
|
|
123
|
-
inspectMessages(): Promise<Array<any>>;
|
|
124
|
-
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
125
|
-
completePersisted(
|
|
126
|
-
message_id: bigint,
|
|
127
|
-
expected_name: string,
|
|
128
|
-
response?: Uint8Array | null,
|
|
129
|
-
): Promise<boolean>;
|
|
130
|
-
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
131
|
-
maxSize(): number;
|
|
132
|
-
reset(): Promise<void>;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export class QueueMessage {
|
|
136
|
-
private constructor();
|
|
137
|
-
free(): void;
|
|
138
|
-
createdAt(): number;
|
|
139
|
-
isCompletable(): boolean;
|
|
140
|
-
id(): bigint;
|
|
141
|
-
body(): Uint8Array;
|
|
142
|
-
name(): string;
|
|
143
|
-
complete(response: any): Promise<void>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export class Schedule {
|
|
147
|
-
private constructor();
|
|
148
|
-
free(): void;
|
|
149
|
-
after(duration_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
150
|
-
at(timestamp_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
151
|
-
cancel(id: string): Promise<boolean>;
|
|
152
|
-
get(id: string): Promise<any>;
|
|
153
|
-
list(): Promise<any>;
|
|
154
|
-
cronSet(
|
|
155
|
-
name: string,
|
|
156
|
-
expression: string,
|
|
157
|
-
timezone: string | null | undefined,
|
|
158
|
-
action_name: string,
|
|
159
|
-
args: Uint8Array,
|
|
160
|
-
max_history?: number | null,
|
|
161
|
-
): Promise<void>;
|
|
162
|
-
cronEvery(
|
|
163
|
-
name: string,
|
|
164
|
-
interval_ms: number,
|
|
165
|
-
action_name: string,
|
|
166
|
-
args: Uint8Array,
|
|
167
|
-
max_history?: number | null,
|
|
168
|
-
): Promise<void>;
|
|
169
|
-
cronGet(name: string): Promise<any>;
|
|
170
|
-
cronList(): Promise<any>;
|
|
171
|
-
cronDelete(name: string): Promise<boolean>;
|
|
172
|
-
cronHistory(name: string, limit?: number | null): Promise<any>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export class SqliteDb {
|
|
176
|
-
private constructor();
|
|
177
|
-
free(): void;
|
|
178
|
-
run(sql: string, params: any): Promise<any>;
|
|
179
|
-
exec(sql: string): Promise<any>;
|
|
180
|
-
close(): Promise<void>;
|
|
181
|
-
query(sql: string, params: any): Promise<any>;
|
|
182
|
-
execute(sql: string, params: any): Promise<any>;
|
|
183
|
-
executeBatch(statements: Array<any>): Promise<Array<any>>;
|
|
184
|
-
beginTransaction(timeout_ms?: number | null): Promise<SqliteTransaction>;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export class SqliteTransaction {
|
|
188
|
-
private constructor();
|
|
189
|
-
free(): void;
|
|
190
|
-
exec(sql: string): Promise<any>;
|
|
191
|
-
execute(sql: string, params: any): Promise<any>;
|
|
192
|
-
commit(): Promise<void>;
|
|
193
|
-
rollback(): Promise<void>;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export class ActorStateTransaction {
|
|
197
|
-
private constructor();
|
|
198
|
-
free(): void;
|
|
199
|
-
exec(sql: string): Promise<any>;
|
|
200
|
-
execute(sql: string, params: any): Promise<any>;
|
|
201
|
-
commit(payload: any): Promise<void>;
|
|
202
|
-
rollback(): Promise<void>;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export class WebSocketHandle {
|
|
206
|
-
private constructor();
|
|
207
|
-
free(): void;
|
|
208
|
-
setEventCallback(callback: Function): void;
|
|
209
|
-
send(data: Uint8Array, binary: boolean): void;
|
|
210
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export type InitInput =
|
|
214
|
-
| RequestInfo
|
|
215
|
-
| URL
|
|
216
|
-
| Response
|
|
217
|
-
| BufferSource
|
|
218
|
-
| WebAssembly.Module;
|
|
219
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
220
|
-
export interface InitOutput {
|
|
221
|
-
readonly memory: WebAssembly.Memory;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
declare function init(
|
|
225
|
-
module_or_path?: InitInput | Promise<InitInput>,
|
|
226
|
-
): Promise<InitOutput>;
|
|
227
|
-
export default init;
|
|
1
|
+
export * from "./pkg/rivetkit_wasm.js";
|
|
2
|
+
export { default } from "./pkg/rivetkit_wasm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-wasm",
|
|
3
|
-
"version": "0.0.0-feat-
|
|
3
|
+
"version": "0.0.0-feat-sqlite-sync.18dce02",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build:cloudflare": "node scripts/build.mjs --target bundler --out-dir pkg-cloudflare",
|
|
33
33
|
"build:deno": "node scripts/build.mjs --target web --out-dir pkg-deno",
|
|
34
34
|
"check:package": "node scripts/check-package.mjs",
|
|
35
|
-
"check-types": "tsc --noEmit",
|
|
35
|
+
"check-types": "pnpm run build && tsc --noEmit",
|
|
36
36
|
"check:wasm": "cargo check -p rivetkit-wasm --target wasm32-unknown-unknown",
|
|
37
37
|
"prepack": "node scripts/build.mjs"
|
|
38
38
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
|
-
"url": "https://github.com/rivet-dev/
|
|
45
|
+
"url": "https://github.com/rivet-dev/rivet.git",
|
|
46
46
|
"directory": "rivetkit-typescript/packages/rivetkit-wasm"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/pkg/package.json
CHANGED
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export class ActorFactory {
|
|
|
55
55
|
export class ActorStateTransaction {
|
|
56
56
|
private constructor();
|
|
57
57
|
free(): void;
|
|
58
|
-
exec(sql: string): Promise<any>;
|
|
59
58
|
commit(payload: any): Promise<void>;
|
|
60
59
|
execute(sql: string, params: any): Promise<any>;
|
|
61
60
|
rollback(): Promise<void>;
|
|
@@ -142,7 +141,7 @@ export class SqliteDb {
|
|
|
142
141
|
private constructor();
|
|
143
142
|
free(): void;
|
|
144
143
|
executeBatch(statements: any): Promise<any>;
|
|
145
|
-
beginTransaction(timeout_ms?: number | null): Promise<SqliteTransaction>;
|
|
144
|
+
beginTransaction(timeout_ms?: number | null, name?: string | null): Promise<SqliteTransaction>;
|
|
146
145
|
run(sql: string, params: any): Promise<any>;
|
|
147
146
|
exec(sql: string): Promise<any>;
|
|
148
147
|
close(): Promise<void>;
|
|
@@ -220,7 +219,6 @@ export interface InitOutput {
|
|
|
220
219
|
readonly actorcontext_waitUntil: (a: number, b: any) => void;
|
|
221
220
|
readonly actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
222
221
|
readonly actorstatetransaction_commit: (a: number, b: any) => any;
|
|
223
|
-
readonly actorstatetransaction_exec: (a: number, b: number, c: number) => any;
|
|
224
222
|
readonly actorstatetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
225
223
|
readonly actorstatetransaction_rollback: (a: number) => any;
|
|
226
224
|
readonly awaitPromise: (a: any) => any;
|
|
@@ -278,7 +276,7 @@ export interface InitOutput {
|
|
|
278
276
|
readonly schedule_cronSet: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => any;
|
|
279
277
|
readonly schedule_get: (a: number, b: number, c: number) => any;
|
|
280
278
|
readonly schedule_list: (a: number) => any;
|
|
281
|
-
readonly sqlitedb_beginTransaction: (a: number, b: number, c: number) => any;
|
|
279
|
+
readonly sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
282
280
|
readonly sqlitedb_close: (a: number) => any;
|
|
283
281
|
readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
284
282
|
readonly sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -293,11 +291,11 @@ export interface InitOutput {
|
|
|
293
291
|
readonly websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
294
292
|
readonly websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
295
293
|
readonly websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
296
|
-
readonly start: () => void;
|
|
297
294
|
readonly actorcontext_queue: (a: number) => number;
|
|
298
295
|
readonly actorcontext_schedule: (a: number) => number;
|
|
299
|
-
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
300
296
|
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
297
|
+
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
298
|
+
readonly start: () => void;
|
|
301
299
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
302
300
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
303
301
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -306,9 +304,9 @@ export interface InitOutput {
|
|
|
306
304
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
307
305
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
308
306
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
309
|
-
readonly
|
|
307
|
+
readonly closure2000_externref_shim: (a: number, b: number, c: any) => void;
|
|
310
308
|
readonly closure2344_externref_shim: (a: number, b: number, c: any) => void;
|
|
311
|
-
readonly
|
|
309
|
+
readonly closure2578_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
312
310
|
readonly __wbindgen_start: () => void;
|
|
313
311
|
}
|
|
314
312
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -274,15 +274,15 @@ function takeFromExternrefTable0(idx) {
|
|
|
274
274
|
return value;
|
|
275
275
|
}
|
|
276
276
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
277
|
-
wasm.
|
|
277
|
+
wasm.closure2000_externref_shim(arg0, arg1, arg2);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
281
|
wasm.closure2344_externref_shim(arg0, arg1, arg2);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
function
|
|
285
|
-
wasm.
|
|
284
|
+
function __wbg_adapter_297(arg0, arg1, arg2, arg3) {
|
|
285
|
+
wasm.closure2578_externref_shim(arg0, arg1, arg2, arg3);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -689,16 +689,6 @@ export class ActorStateTransaction {
|
|
|
689
689
|
const ptr = this.__destroy_into_raw();
|
|
690
690
|
wasm.__wbg_actorstatetransaction_free(ptr, 0);
|
|
691
691
|
}
|
|
692
|
-
/**
|
|
693
|
-
* @param {string} sql
|
|
694
|
-
* @returns {Promise<any>}
|
|
695
|
-
*/
|
|
696
|
-
exec(sql) {
|
|
697
|
-
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
698
|
-
const len0 = WASM_VECTOR_LEN;
|
|
699
|
-
const ret = wasm.actorstatetransaction_exec(this.__wbg_ptr, ptr0, len0);
|
|
700
|
-
return ret;
|
|
701
|
-
}
|
|
702
692
|
/**
|
|
703
693
|
* @param {any} payload
|
|
704
694
|
* @returns {Promise<void>}
|
|
@@ -733,6 +723,14 @@ const CancellationTokenFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
733
723
|
|
|
734
724
|
export class CancellationToken {
|
|
735
725
|
|
|
726
|
+
static __wrap(ptr) {
|
|
727
|
+
ptr = ptr >>> 0;
|
|
728
|
+
const obj = Object.create(CancellationToken.prototype);
|
|
729
|
+
obj.__wbg_ptr = ptr;
|
|
730
|
+
CancellationTokenFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
731
|
+
return obj;
|
|
732
|
+
}
|
|
733
|
+
|
|
736
734
|
__destroy_into_raw() {
|
|
737
735
|
const ptr = this.__wbg_ptr;
|
|
738
736
|
this.__wbg_ptr = 0;
|
|
@@ -1471,10 +1469,13 @@ export class SqliteDb {
|
|
|
1471
1469
|
}
|
|
1472
1470
|
/**
|
|
1473
1471
|
* @param {number | null} [timeout_ms]
|
|
1472
|
+
* @param {string | null} [name]
|
|
1474
1473
|
* @returns {Promise<SqliteTransaction>}
|
|
1475
1474
|
*/
|
|
1476
|
-
beginTransaction(timeout_ms) {
|
|
1477
|
-
|
|
1475
|
+
beginTransaction(timeout_ms, name) {
|
|
1476
|
+
var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1477
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1478
|
+
const ret = wasm.sqlitedb_beginTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms, ptr0, len0);
|
|
1478
1479
|
return ret;
|
|
1479
1480
|
}
|
|
1480
1481
|
/**
|
|
@@ -1704,6 +1705,10 @@ function __wbg_get_imports() {
|
|
|
1704
1705
|
const ret = arg0.buffer;
|
|
1705
1706
|
return ret;
|
|
1706
1707
|
};
|
|
1708
|
+
imports.wbg.__wbg_bufferedAmount_a482960ac51b25e8 = function(arg0) {
|
|
1709
|
+
const ret = arg0.bufferedAmount;
|
|
1710
|
+
return ret;
|
|
1711
|
+
};
|
|
1707
1712
|
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
1708
1713
|
const ret = arg0.call(arg1);
|
|
1709
1714
|
return ret;
|
|
@@ -1716,6 +1721,10 @@ function __wbg_get_imports() {
|
|
|
1716
1721
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1717
1722
|
return ret;
|
|
1718
1723
|
}, arguments) };
|
|
1724
|
+
imports.wbg.__wbg_cancellationtoken_new = function(arg0) {
|
|
1725
|
+
const ret = CancellationToken.__wrap(arg0);
|
|
1726
|
+
return ret;
|
|
1727
|
+
};
|
|
1719
1728
|
imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1720
1729
|
arg0.close();
|
|
1721
1730
|
}, arguments) };
|
|
@@ -1757,7 +1766,7 @@ function __wbg_get_imports() {
|
|
|
1757
1766
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1758
1767
|
}
|
|
1759
1768
|
};
|
|
1760
|
-
imports.wbg.
|
|
1769
|
+
imports.wbg.__wbg_getRandomValues_430b4ece0366b997 = function() { return handleError(function (arg0, arg1) {
|
|
1761
1770
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1762
1771
|
}, arguments) };
|
|
1763
1772
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1871,7 +1880,7 @@ function __wbg_get_imports() {
|
|
|
1871
1880
|
const a = state0.a;
|
|
1872
1881
|
state0.a = 0;
|
|
1873
1882
|
try {
|
|
1874
|
-
return
|
|
1883
|
+
return __wbg_adapter_297(a, state0.b, arg0, arg1);
|
|
1875
1884
|
} finally {
|
|
1876
1885
|
state0.a = a;
|
|
1877
1886
|
}
|
|
@@ -2103,23 +2112,23 @@ function __wbg_get_imports() {
|
|
|
2103
2112
|
const ret = false;
|
|
2104
2113
|
return ret;
|
|
2105
2114
|
};
|
|
2106
|
-
imports.wbg.
|
|
2107
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2115
|
+
imports.wbg.__wbindgen_closure_wrapper5111 = function(arg0, arg1, arg2) {
|
|
2116
|
+
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2108
2117
|
return ret;
|
|
2109
2118
|
};
|
|
2110
|
-
imports.wbg.
|
|
2111
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2119
|
+
imports.wbg.__wbindgen_closure_wrapper5113 = function(arg0, arg1, arg2) {
|
|
2120
|
+
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2112
2121
|
return ret;
|
|
2113
2122
|
};
|
|
2114
|
-
imports.wbg.
|
|
2115
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2123
|
+
imports.wbg.__wbindgen_closure_wrapper5115 = function(arg0, arg1, arg2) {
|
|
2124
|
+
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2116
2125
|
return ret;
|
|
2117
2126
|
};
|
|
2118
|
-
imports.wbg.
|
|
2119
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2127
|
+
imports.wbg.__wbindgen_closure_wrapper5117 = function(arg0, arg1, arg2) {
|
|
2128
|
+
const ret = makeMutClosure(arg0, arg1, 2001, __wbg_adapter_50);
|
|
2120
2129
|
return ret;
|
|
2121
2130
|
};
|
|
2122
|
-
imports.wbg.
|
|
2131
|
+
imports.wbg.__wbindgen_closure_wrapper5692 = function(arg0, arg1, arg2) {
|
|
2123
2132
|
const ret = makeMutClosure(arg0, arg1, 2345, __wbg_adapter_59);
|
|
2124
2133
|
return ret;
|
|
2125
2134
|
};
|
|
Binary file
|
|
@@ -52,7 +52,6 @@ export const actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => an
|
|
|
52
52
|
export const actorcontext_waitUntil: (a: number, b: any) => void;
|
|
53
53
|
export const actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
54
54
|
export const actorstatetransaction_commit: (a: number, b: any) => any;
|
|
55
|
-
export const actorstatetransaction_exec: (a: number, b: number, c: number) => any;
|
|
56
55
|
export const actorstatetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
57
56
|
export const actorstatetransaction_rollback: (a: number) => any;
|
|
58
57
|
export const awaitPromise: (a: any) => any;
|
|
@@ -110,7 +109,7 @@ export const schedule_cronList: (a: number) => any;
|
|
|
110
109
|
export const schedule_cronSet: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => any;
|
|
111
110
|
export const schedule_get: (a: number, b: number, c: number) => any;
|
|
112
111
|
export const schedule_list: (a: number) => any;
|
|
113
|
-
export const sqlitedb_beginTransaction: (a: number, b: number, c: number) => any;
|
|
112
|
+
export const sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
114
113
|
export const sqlitedb_close: (a: number) => any;
|
|
115
114
|
export const sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
116
115
|
export const sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
@@ -125,11 +124,11 @@ export const uint8ArrayFromBytes: (a: number, b: number) => any;
|
|
|
125
124
|
export const websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
126
125
|
export const websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
127
126
|
export const websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
128
|
-
export const start: () => void;
|
|
129
127
|
export const actorcontext_queue: (a: number) => number;
|
|
130
128
|
export const actorcontext_schedule: (a: number) => number;
|
|
131
|
-
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
132
129
|
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
130
|
+
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
131
|
+
export const start: () => void;
|
|
133
132
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
134
133
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
135
134
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
@@ -138,7 +137,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
138
137
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
139
138
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
140
139
|
export const __externref_table_dealloc: (a: number) => void;
|
|
141
|
-
export const
|
|
140
|
+
export const closure2000_externref_shim: (a: number, b: number, c: any) => void;
|
|
142
141
|
export const closure2344_externref_shim: (a: number, b: number, c: any) => void;
|
|
143
|
-
export const
|
|
142
|
+
export const closure2578_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
144
143
|
export const __wbindgen_start: () => void;
|