@rivetkit/rivetkit-wasm 0.0.0-pr.4936.6e4b14a → 0.0.0-pr.4938.e019cf7
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
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
|
7
7
|
export function bridgeRivetErrorPrefix(): string;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
|
-
keepAwake(
|
|
10
|
+
keepAwake(_promise: Promise<any>): void;
|
|
11
11
|
saveState(payload: any): Promise<void>;
|
|
12
12
|
waitUntil(promise: Promise<any>): void;
|
|
13
13
|
abortSignal(): any;
|
|
@@ -15,6 +15,8 @@ export class ActorContext {
|
|
|
15
15
|
requestSave(opts: any): void;
|
|
16
16
|
registerTask(promise: Promise<any>): void;
|
|
17
17
|
runtimeState(): any;
|
|
18
|
+
endKeepAwake(region_id: number): void;
|
|
19
|
+
beginKeepAwake(): number;
|
|
18
20
|
inspectorSnapshot(): object;
|
|
19
21
|
endOnStateChange(): void;
|
|
20
22
|
restartRunHandler(): void;
|
|
@@ -144,6 +146,7 @@ export interface InitOutput {
|
|
|
144
146
|
readonly __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
145
147
|
readonly actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
146
148
|
readonly actorcontext_actorId: (a: number) => [number, number];
|
|
149
|
+
readonly actorcontext_beginKeepAwake: (a: number) => number;
|
|
147
150
|
readonly actorcontext_beginOnStateChange: (a: number) => void;
|
|
148
151
|
readonly actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
149
152
|
readonly actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -151,10 +154,11 @@ export interface InitOutput {
|
|
|
151
154
|
readonly actorcontext_conns: (a: number) => any;
|
|
152
155
|
readonly actorcontext_destroy: (a: number) => [number, number];
|
|
153
156
|
readonly actorcontext_dirtyHibernatableConns: (a: number) => any;
|
|
157
|
+
readonly actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
154
158
|
readonly actorcontext_endOnStateChange: (a: number) => void;
|
|
155
159
|
readonly actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
156
160
|
readonly actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
157
|
-
readonly actorcontext_keepAwake: (a: number, b: any) =>
|
|
161
|
+
readonly actorcontext_keepAwake: (a: number, b: any) => void;
|
|
158
162
|
readonly actorcontext_key: (a: number) => [number, number, number];
|
|
159
163
|
readonly actorcontext_kv: (a: number) => number;
|
|
160
164
|
readonly actorcontext_name: (a: number) => [number, number];
|
|
@@ -240,9 +244,9 @@ export interface InitOutput {
|
|
|
240
244
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
241
245
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
242
246
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
247
|
+
readonly closure1598_externref_shim: (a: number, b: number, c: any) => void;
|
|
248
|
+
readonly closure1801_externref_shim: (a: number, b: number, c: any) => void;
|
|
249
|
+
readonly closure2014_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
246
250
|
readonly __wbindgen_start: () => void;
|
|
247
251
|
}
|
|
248
252
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -275,15 +275,15 @@ export function bridgeRivetErrorPrefix() {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.closure1598_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
282
|
+
wasm.closure1801_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
285
|
+
function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
|
|
286
|
+
wasm.closure2014_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -314,12 +314,10 @@ export class ActorContext {
|
|
|
314
314
|
wasm.__wbg_actorcontext_free(ptr, 0);
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
|
-
* @param {Promise<any>}
|
|
318
|
-
* @returns {Promise<any>}
|
|
317
|
+
* @param {Promise<any>} _promise
|
|
319
318
|
*/
|
|
320
|
-
keepAwake(
|
|
321
|
-
|
|
322
|
-
return ret;
|
|
319
|
+
keepAwake(_promise) {
|
|
320
|
+
wasm.actorcontext_keepAwake(this.__wbg_ptr, _promise);
|
|
323
321
|
}
|
|
324
322
|
/**
|
|
325
323
|
* @param {any} payload
|
|
@@ -375,6 +373,19 @@ export class ActorContext {
|
|
|
375
373
|
const ret = wasm.actorcontext_runtimeState(this.__wbg_ptr);
|
|
376
374
|
return ret;
|
|
377
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* @param {number} region_id
|
|
378
|
+
*/
|
|
379
|
+
endKeepAwake(region_id) {
|
|
380
|
+
wasm.actorcontext_endKeepAwake(this.__wbg_ptr, region_id);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @returns {number}
|
|
384
|
+
*/
|
|
385
|
+
beginKeepAwake() {
|
|
386
|
+
const ret = wasm.actorcontext_beginKeepAwake(this.__wbg_ptr);
|
|
387
|
+
return ret >>> 0;
|
|
388
|
+
}
|
|
378
389
|
/**
|
|
379
390
|
* @returns {object}
|
|
380
391
|
*/
|
|
@@ -1544,7 +1555,7 @@ function __wbg_get_imports() {
|
|
|
1544
1555
|
const a = state0.a;
|
|
1545
1556
|
state0.a = 0;
|
|
1546
1557
|
try {
|
|
1547
|
-
return
|
|
1558
|
+
return __wbg_adapter_224(a, state0.b, arg0, arg1);
|
|
1548
1559
|
} finally {
|
|
1549
1560
|
state0.a = a;
|
|
1550
1561
|
}
|
|
@@ -1756,24 +1767,24 @@ function __wbg_get_imports() {
|
|
|
1756
1767
|
const ret = false;
|
|
1757
1768
|
return ret;
|
|
1758
1769
|
};
|
|
1759
|
-
imports.wbg.
|
|
1760
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1770
|
+
imports.wbg.__wbindgen_closure_wrapper3772 = function(arg0, arg1, arg2) {
|
|
1771
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1761
1772
|
return ret;
|
|
1762
1773
|
};
|
|
1763
|
-
imports.wbg.
|
|
1764
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1774
|
+
imports.wbg.__wbindgen_closure_wrapper3774 = function(arg0, arg1, arg2) {
|
|
1775
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1765
1776
|
return ret;
|
|
1766
1777
|
};
|
|
1767
|
-
imports.wbg.
|
|
1768
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1778
|
+
imports.wbg.__wbindgen_closure_wrapper3776 = function(arg0, arg1, arg2) {
|
|
1779
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1769
1780
|
return ret;
|
|
1770
1781
|
};
|
|
1771
|
-
imports.wbg.
|
|
1772
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1782
|
+
imports.wbg.__wbindgen_closure_wrapper3778 = function(arg0, arg1, arg2) {
|
|
1783
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1773
1784
|
return ret;
|
|
1774
1785
|
};
|
|
1775
|
-
imports.wbg.
|
|
1776
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1786
|
+
imports.wbg.__wbindgen_closure_wrapper4376 = function(arg0, arg1, arg2) {
|
|
1787
|
+
const ret = makeMutClosure(arg0, arg1, 1802, __wbg_adapter_55);
|
|
1777
1788
|
return ret;
|
|
1778
1789
|
};
|
|
1779
1790
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -12,6 +12,7 @@ export const __wbg_sqlitedb_free: (a: number, b: number) => void;
|
|
|
12
12
|
export const __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
13
13
|
export const actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
14
14
|
export const actorcontext_actorId: (a: number) => [number, number];
|
|
15
|
+
export const actorcontext_beginKeepAwake: (a: number) => number;
|
|
15
16
|
export const actorcontext_beginOnStateChange: (a: number) => void;
|
|
16
17
|
export const actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
17
18
|
export const actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -19,10 +20,11 @@ export const actorcontext_connectConn: (a: number, b: number, c: number, d: any)
|
|
|
19
20
|
export const actorcontext_conns: (a: number) => any;
|
|
20
21
|
export const actorcontext_destroy: (a: number) => [number, number];
|
|
21
22
|
export const actorcontext_dirtyHibernatableConns: (a: number) => any;
|
|
23
|
+
export const actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
22
24
|
export const actorcontext_endOnStateChange: (a: number) => void;
|
|
23
25
|
export const actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
24
26
|
export const actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
25
|
-
export const actorcontext_keepAwake: (a: number, b: any) =>
|
|
27
|
+
export const actorcontext_keepAwake: (a: number, b: any) => void;
|
|
26
28
|
export const actorcontext_key: (a: number) => [number, number, number];
|
|
27
29
|
export const actorcontext_kv: (a: number) => number;
|
|
28
30
|
export const actorcontext_name: (a: number) => [number, number];
|
|
@@ -108,7 +110,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
108
110
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
109
111
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
110
112
|
export const __externref_table_dealloc: (a: number) => void;
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
113
|
-
export const
|
|
113
|
+
export const closure1598_externref_shim: (a: number, b: number, c: any) => void;
|
|
114
|
+
export const closure1801_externref_shim: (a: number, b: number, c: any) => void;
|
|
115
|
+
export const closure2014_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
114
116
|
export const __wbindgen_start: () => void;
|