@rivetkit/rivetkit-wasm 0.0.0-pr.4952.43f6721 → 0.0.0-pr.4961.d447d31
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(promise: Promise<any>):
|
|
10
|
+
keepAwake(promise: Promise<any>): Promise<any>;
|
|
11
11
|
saveState(payload: any): Promise<void>;
|
|
12
12
|
waitUntil(promise: Promise<any>): void;
|
|
13
13
|
abortSignal(): any;
|
|
@@ -15,8 +15,6 @@ 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;
|
|
20
18
|
inspectorSnapshot(): object;
|
|
21
19
|
endOnStateChange(): void;
|
|
22
20
|
restartRunHandler(): void;
|
|
@@ -146,7 +144,6 @@ export interface InitOutput {
|
|
|
146
144
|
readonly __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
147
145
|
readonly actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
148
146
|
readonly actorcontext_actorId: (a: number) => [number, number];
|
|
149
|
-
readonly actorcontext_beginKeepAwake: (a: number) => number;
|
|
150
147
|
readonly actorcontext_beginOnStateChange: (a: number) => void;
|
|
151
148
|
readonly actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
152
149
|
readonly actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -154,11 +151,10 @@ export interface InitOutput {
|
|
|
154
151
|
readonly actorcontext_conns: (a: number) => any;
|
|
155
152
|
readonly actorcontext_destroy: (a: number) => [number, number];
|
|
156
153
|
readonly actorcontext_dirtyHibernatableConns: (a: number) => any;
|
|
157
|
-
readonly actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
158
154
|
readonly actorcontext_endOnStateChange: (a: number) => void;
|
|
159
155
|
readonly actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
160
156
|
readonly actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
161
|
-
readonly actorcontext_keepAwake: (a: number, b: any) =>
|
|
157
|
+
readonly actorcontext_keepAwake: (a: number, b: any) => any;
|
|
162
158
|
readonly actorcontext_key: (a: number) => [number, number, number];
|
|
163
159
|
readonly actorcontext_kv: (a: number) => number;
|
|
164
160
|
readonly actorcontext_name: (a: number) => [number, number];
|
|
@@ -244,9 +240,9 @@ export interface InitOutput {
|
|
|
244
240
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
245
241
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
246
242
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
247
|
-
readonly
|
|
248
|
-
readonly
|
|
249
|
-
readonly
|
|
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;
|
|
250
246
|
readonly __wbindgen_start: () => void;
|
|
251
247
|
}
|
|
252
248
|
|
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.closure1601_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
282
|
+
wasm.closure1804_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
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"];
|
|
@@ -315,9 +315,11 @@ export class ActorContext {
|
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* @param {Promise<any>} promise
|
|
318
|
+
* @returns {Promise<any>}
|
|
318
319
|
*/
|
|
319
320
|
keepAwake(promise) {
|
|
320
|
-
wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
321
|
+
const ret = wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
322
|
+
return ret;
|
|
321
323
|
}
|
|
322
324
|
/**
|
|
323
325
|
* @param {any} payload
|
|
@@ -373,19 +375,6 @@ export class ActorContext {
|
|
|
373
375
|
const ret = wasm.actorcontext_runtimeState(this.__wbg_ptr);
|
|
374
376
|
return ret;
|
|
375
377
|
}
|
|
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
|
-
}
|
|
389
378
|
/**
|
|
390
379
|
* @returns {object}
|
|
391
380
|
*/
|
|
@@ -1555,7 +1544,7 @@ function __wbg_get_imports() {
|
|
|
1555
1544
|
const a = state0.a;
|
|
1556
1545
|
state0.a = 0;
|
|
1557
1546
|
try {
|
|
1558
|
-
return
|
|
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.
|
|
1771
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
1775
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
1779
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
1783
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
1787
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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
|
|
@@ -12,7 +12,6 @@ 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;
|
|
16
15
|
export const actorcontext_beginOnStateChange: (a: number) => void;
|
|
17
16
|
export const actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
18
17
|
export const actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -20,11 +19,10 @@ export const actorcontext_connectConn: (a: number, b: number, c: number, d: any)
|
|
|
20
19
|
export const actorcontext_conns: (a: number) => any;
|
|
21
20
|
export const actorcontext_destroy: (a: number) => [number, number];
|
|
22
21
|
export const actorcontext_dirtyHibernatableConns: (a: number) => any;
|
|
23
|
-
export const actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
24
22
|
export const actorcontext_endOnStateChange: (a: number) => void;
|
|
25
23
|
export const actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
26
24
|
export const actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
27
|
-
export const actorcontext_keepAwake: (a: number, b: any) =>
|
|
25
|
+
export const actorcontext_keepAwake: (a: number, b: any) => any;
|
|
28
26
|
export const actorcontext_key: (a: number) => [number, number, number];
|
|
29
27
|
export const actorcontext_kv: (a: number) => number;
|
|
30
28
|
export const actorcontext_name: (a: number) => [number, number];
|
|
@@ -110,7 +108,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
110
108
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
111
109
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
112
110
|
export const __externref_table_dealloc: (a: number) => void;
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
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;
|
|
116
114
|
export const __wbindgen_start: () => void;
|