@rivetkit/rivetkit-wasm 2.3.0-rc.13 → 2.3.0-rc.14
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,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function bridgeRivetErrorPrefix(): string;
|
|
4
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
3
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
5
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
7
7
|
export function start(): void;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): 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_queue_free: (a: number, b: number) => void;
|
|
242
241
|
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
242
|
+
readonly __wbg_queue_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
|
@@ -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,15 +243,6 @@ export function roundTripBytes(bytes) {
|
|
|
250
243
|
return v2;
|
|
251
244
|
}
|
|
252
245
|
|
|
253
|
-
/**
|
|
254
|
-
* @param {Promise<any>} promise
|
|
255
|
-
* @returns {Promise<any>}
|
|
256
|
-
*/
|
|
257
|
-
export function awaitPromise(promise) {
|
|
258
|
-
const ret = wasm.awaitPromise(promise);
|
|
259
|
-
return ret;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
246
|
/**
|
|
263
247
|
* @param {Uint8Array} bytes
|
|
264
248
|
* @returns {Uint8Array}
|
|
@@ -270,6 +254,22 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
270
254
|
return ret;
|
|
271
255
|
}
|
|
272
256
|
|
|
257
|
+
/**
|
|
258
|
+
* @returns {string}
|
|
259
|
+
*/
|
|
260
|
+
export function bridgeRivetErrorPrefix() {
|
|
261
|
+
let deferred1_0;
|
|
262
|
+
let deferred1_1;
|
|
263
|
+
try {
|
|
264
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
265
|
+
deferred1_0 = ret[0];
|
|
266
|
+
deferred1_1 = ret[1];
|
|
267
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
268
|
+
} finally {
|
|
269
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
273
|
export function start() {
|
|
274
274
|
wasm.start();
|
|
275
275
|
}
|
|
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_queue_free: (a: number, b: number) => void;
|
|
106
105
|
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_queue_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;
|