@rivetkit/rivetkit-wasm 0.0.0-main.879b6a2 → 0.0.0-main.9d355a2
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,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
4
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
3
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
5
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
6
5
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
-
export function
|
|
6
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
+
export function start(): void;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
|
@@ -238,8 +238,8 @@ export interface InitOutput {
|
|
|
238
238
|
readonly start: () => void;
|
|
239
239
|
readonly actorcontext_queue: (a: number) => number;
|
|
240
240
|
readonly actorcontext_schedule: (a: number) => number;
|
|
241
|
-
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
242
241
|
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
242
|
+
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
243
243
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
244
244
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
245
245
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,22 +221,13 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
export function start() {
|
|
226
|
-
wasm.start();
|
|
227
|
-
}
|
|
228
|
-
|
|
229
224
|
/**
|
|
230
|
-
* @param {
|
|
231
|
-
* @returns {
|
|
225
|
+
* @param {Promise<any>} promise
|
|
226
|
+
* @returns {Promise<any>}
|
|
232
227
|
*/
|
|
233
|
-
export function
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
237
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
238
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
239
|
-
return v2;
|
|
228
|
+
export function awaitPromise(promise) {
|
|
229
|
+
const ret = wasm.awaitPromise(promise);
|
|
230
|
+
return ret;
|
|
240
231
|
}
|
|
241
232
|
|
|
242
233
|
/**
|
|
@@ -267,12 +258,20 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
267
258
|
}
|
|
268
259
|
|
|
269
260
|
/**
|
|
270
|
-
* @param {
|
|
271
|
-
* @returns {
|
|
261
|
+
* @param {Uint8Array} bytes
|
|
262
|
+
* @returns {Uint8Array}
|
|
272
263
|
*/
|
|
273
|
-
export function
|
|
274
|
-
const
|
|
275
|
-
|
|
264
|
+
export function roundTripBytes(bytes) {
|
|
265
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
267
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
268
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
269
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
270
|
+
return v2;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function start() {
|
|
274
|
+
wasm.start();
|
|
276
275
|
}
|
|
277
276
|
|
|
278
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
@@ -1798,7 +1797,7 @@ function __wbg_get_imports() {
|
|
|
1798
1797
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1799
1798
|
return ret;
|
|
1800
1799
|
};
|
|
1801
|
-
imports.wbg.
|
|
1800
|
+
imports.wbg.__wbindgen_closure_wrapper4575 = function(arg0, arg1, arg2) {
|
|
1802
1801
|
const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
|
|
1803
1802
|
return ret;
|
|
1804
1803
|
};
|
|
Binary file
|
|
@@ -102,8 +102,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
|
102
102
|
export const start: () => void;
|
|
103
103
|
export const actorcontext_queue: (a: number) => number;
|
|
104
104
|
export const actorcontext_schedule: (a: number) => number;
|
|
105
|
-
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
106
105
|
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
107
107
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
108
108
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
109
109
|
export const __wbindgen_exn_store: (a: number) => void;
|