@rivetkit/rivetkit-wasm 0.0.0-pr.4949.4add738 → 0.0.0-pr.4949.5f0637c
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function bridgeRivetErrorPrefix(): string;
|
|
4
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
3
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
7
5
|
export function start(): void;
|
|
6
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
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;
|
|
@@ -244,9 +244,9 @@ export interface InitOutput {
|
|
|
244
244
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
245
245
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
246
246
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
247
|
-
readonly
|
|
248
|
-
readonly
|
|
249
|
-
readonly
|
|
247
|
+
readonly closure1600_externref_shim: (a: number, b: number, c: any) => void;
|
|
248
|
+
readonly closure1803_externref_shim: (a: number, b: number, c: any) => void;
|
|
249
|
+
readonly closure2016_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
250
250
|
readonly __wbindgen_start: () => void;
|
|
251
251
|
}
|
|
252
252
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -222,19 +222,12 @@ function _assertClass(instance, klass) {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* @
|
|
225
|
+
* @param {Promise<any>} promise
|
|
226
|
+
* @returns {Promise<any>}
|
|
226
227
|
*/
|
|
227
|
-
export function
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
try {
|
|
231
|
-
const ret = wasm.bridgeRivetErrorPrefix();
|
|
232
|
-
deferred1_0 = ret[0];
|
|
233
|
-
deferred1_1 = ret[1];
|
|
234
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
235
|
-
} finally {
|
|
236
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
237
|
-
}
|
|
228
|
+
export function awaitPromise(promise) {
|
|
229
|
+
const ret = wasm.awaitPromise(promise);
|
|
230
|
+
return ret;
|
|
238
231
|
}
|
|
239
232
|
|
|
240
233
|
/**
|
|
@@ -250,6 +243,10 @@ export function roundTripBytes(bytes) {
|
|
|
250
243
|
return v2;
|
|
251
244
|
}
|
|
252
245
|
|
|
246
|
+
export function start() {
|
|
247
|
+
wasm.start();
|
|
248
|
+
}
|
|
249
|
+
|
|
253
250
|
/**
|
|
254
251
|
* @param {Uint8Array} bytes
|
|
255
252
|
* @returns {Uint8Array}
|
|
@@ -262,28 +259,31 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
262
259
|
}
|
|
263
260
|
|
|
264
261
|
/**
|
|
265
|
-
* @
|
|
266
|
-
* @returns {Promise<any>}
|
|
262
|
+
* @returns {string}
|
|
267
263
|
*/
|
|
268
|
-
export function
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
264
|
+
export function bridgeRivetErrorPrefix() {
|
|
265
|
+
let deferred1_0;
|
|
266
|
+
let deferred1_1;
|
|
267
|
+
try {
|
|
268
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
269
|
+
deferred1_0 = ret[0];
|
|
270
|
+
deferred1_1 = ret[1];
|
|
271
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
272
|
+
} finally {
|
|
273
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
274
|
+
}
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.closure1600_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
282
|
+
wasm.closure1803_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
285
|
+
function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
|
|
286
|
+
wasm.closure2016_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -314,10 +314,10 @@ export class ActorContext {
|
|
|
314
314
|
wasm.__wbg_actorcontext_free(ptr, 0);
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
|
-
* @param {Promise<any>}
|
|
317
|
+
* @param {Promise<any>} promise
|
|
318
318
|
*/
|
|
319
|
-
keepAwake(
|
|
320
|
-
wasm.actorcontext_keepAwake(this.__wbg_ptr,
|
|
319
|
+
keepAwake(promise) {
|
|
320
|
+
wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
323
|
* @param {any} payload
|
|
@@ -1555,7 +1555,7 @@ function __wbg_get_imports() {
|
|
|
1555
1555
|
const a = state0.a;
|
|
1556
1556
|
state0.a = 0;
|
|
1557
1557
|
try {
|
|
1558
|
-
return
|
|
1558
|
+
return __wbg_adapter_224(a, state0.b, arg0, arg1);
|
|
1559
1559
|
} finally {
|
|
1560
1560
|
state0.a = a;
|
|
1561
1561
|
}
|
|
@@ -1767,24 +1767,24 @@ function __wbg_get_imports() {
|
|
|
1767
1767
|
const ret = false;
|
|
1768
1768
|
return ret;
|
|
1769
1769
|
};
|
|
1770
|
-
imports.wbg.
|
|
1771
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1770
|
+
imports.wbg.__wbindgen_closure_wrapper3779 = function(arg0, arg1, arg2) {
|
|
1771
|
+
const ret = makeMutClosure(arg0, arg1, 1601, __wbg_adapter_46);
|
|
1772
1772
|
return ret;
|
|
1773
1773
|
};
|
|
1774
|
-
imports.wbg.
|
|
1775
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1774
|
+
imports.wbg.__wbindgen_closure_wrapper3781 = function(arg0, arg1, arg2) {
|
|
1775
|
+
const ret = makeMutClosure(arg0, arg1, 1601, __wbg_adapter_46);
|
|
1776
1776
|
return ret;
|
|
1777
1777
|
};
|
|
1778
|
-
imports.wbg.
|
|
1779
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1778
|
+
imports.wbg.__wbindgen_closure_wrapper3783 = function(arg0, arg1, arg2) {
|
|
1779
|
+
const ret = makeMutClosure(arg0, arg1, 1601, __wbg_adapter_46);
|
|
1780
1780
|
return ret;
|
|
1781
1781
|
};
|
|
1782
|
-
imports.wbg.
|
|
1783
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1782
|
+
imports.wbg.__wbindgen_closure_wrapper3785 = function(arg0, arg1, arg2) {
|
|
1783
|
+
const ret = makeMutClosure(arg0, arg1, 1601, __wbg_adapter_46);
|
|
1784
1784
|
return ret;
|
|
1785
1785
|
};
|
|
1786
|
-
imports.wbg.
|
|
1787
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1786
|
+
imports.wbg.__wbindgen_closure_wrapper4383 = function(arg0, arg1, arg2) {
|
|
1787
|
+
const ret = makeMutClosure(arg0, arg1, 1804, __wbg_adapter_55);
|
|
1788
1788
|
return ret;
|
|
1789
1789
|
};
|
|
1790
1790
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -110,7 +110,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
110
110
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
111
111
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
112
112
|
export const __externref_table_dealloc: (a: number) => void;
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
113
|
+
export const closure1600_externref_shim: (a: number, b: number, c: any) => void;
|
|
114
|
+
export const closure1803_externref_shim: (a: number, b: number, c: any) => void;
|
|
115
|
+
export const closure2016_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
116
116
|
export const __wbindgen_start: () => void;
|