@rivetkit/rivetkit-wasm 2.3.0-rc.7 → 2.3.0-rc.9
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 awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
3
|
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
4
|
export function start(): void;
|
|
7
5
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
|
@@ -246,9 +246,9 @@ export interface InitOutput {
|
|
|
246
246
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
247
247
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
248
248
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
249
|
-
readonly
|
|
250
|
-
readonly
|
|
251
|
-
readonly
|
|
249
|
+
readonly closure1590_externref_shim: (a: number, b: number, c: any) => void;
|
|
250
|
+
readonly closure1943_externref_shim: (a: number, b: number, c: any) => void;
|
|
251
|
+
readonly closure2166_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
252
252
|
readonly __wbindgen_start: () => void;
|
|
253
253
|
}
|
|
254
254
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,15 +221,6 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
/**
|
|
225
|
-
* @param {Promise<any>} promise
|
|
226
|
-
* @returns {Promise<any>}
|
|
227
|
-
*/
|
|
228
|
-
export function awaitPromise(promise) {
|
|
229
|
-
const ret = wasm.awaitPromise(promise);
|
|
230
|
-
return ret;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
224
|
/**
|
|
234
225
|
* @returns {string}
|
|
235
226
|
*/
|
|
@@ -246,44 +237,53 @@ export function bridgeRivetErrorPrefix() {
|
|
|
246
237
|
}
|
|
247
238
|
}
|
|
248
239
|
|
|
240
|
+
export function start() {
|
|
241
|
+
wasm.start();
|
|
242
|
+
}
|
|
243
|
+
|
|
249
244
|
/**
|
|
250
245
|
* @param {Uint8Array} bytes
|
|
251
246
|
* @returns {Uint8Array}
|
|
252
247
|
*/
|
|
253
|
-
export function
|
|
248
|
+
export function roundTripBytes(bytes) {
|
|
254
249
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
255
250
|
const len0 = WASM_VECTOR_LEN;
|
|
256
|
-
const ret = wasm.
|
|
257
|
-
|
|
251
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
252
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
253
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
254
|
+
return v2;
|
|
258
255
|
}
|
|
259
256
|
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
/**
|
|
258
|
+
* @param {Promise<any>} promise
|
|
259
|
+
* @returns {Promise<any>}
|
|
260
|
+
*/
|
|
261
|
+
export function awaitPromise(promise) {
|
|
262
|
+
const ret = wasm.awaitPromise(promise);
|
|
263
|
+
return ret;
|
|
262
264
|
}
|
|
263
265
|
|
|
264
266
|
/**
|
|
265
267
|
* @param {Uint8Array} bytes
|
|
266
268
|
* @returns {Uint8Array}
|
|
267
269
|
*/
|
|
268
|
-
export function
|
|
270
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
269
271
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
270
272
|
const len0 = WASM_VECTOR_LEN;
|
|
271
|
-
const ret = wasm.
|
|
272
|
-
|
|
273
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
274
|
-
return v2;
|
|
273
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
274
|
+
return ret;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.closure1590_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
282
|
+
wasm.closure1943_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
function __wbg_adapter_225(arg0, arg1, arg2, arg3) {
|
|
286
|
-
wasm.
|
|
286
|
+
wasm.closure2166_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1774,24 +1774,24 @@ function __wbg_get_imports() {
|
|
|
1774
1774
|
const ret = false;
|
|
1775
1775
|
return ret;
|
|
1776
1776
|
};
|
|
1777
|
-
imports.wbg.
|
|
1778
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1777
|
+
imports.wbg.__wbindgen_closure_wrapper3698 = function(arg0, arg1, arg2) {
|
|
1778
|
+
const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
|
|
1779
1779
|
return ret;
|
|
1780
1780
|
};
|
|
1781
|
-
imports.wbg.
|
|
1782
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1781
|
+
imports.wbg.__wbindgen_closure_wrapper3700 = function(arg0, arg1, arg2) {
|
|
1782
|
+
const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
|
|
1783
1783
|
return ret;
|
|
1784
1784
|
};
|
|
1785
|
-
imports.wbg.
|
|
1786
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1785
|
+
imports.wbg.__wbindgen_closure_wrapper3702 = function(arg0, arg1, arg2) {
|
|
1786
|
+
const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
|
|
1787
1787
|
return ret;
|
|
1788
1788
|
};
|
|
1789
|
-
imports.wbg.
|
|
1790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1789
|
+
imports.wbg.__wbindgen_closure_wrapper3704 = function(arg0, arg1, arg2) {
|
|
1790
|
+
const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
|
|
1791
1791
|
return ret;
|
|
1792
1792
|
};
|
|
1793
|
-
imports.wbg.
|
|
1794
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1793
|
+
imports.wbg.__wbindgen_closure_wrapper4547 = function(arg0, arg1, arg2) {
|
|
1794
|
+
const ret = makeMutClosure(arg0, arg1, 1944, __wbg_adapter_55);
|
|
1795
1795
|
return ret;
|
|
1796
1796
|
};
|
|
1797
1797
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -111,7 +111,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
111
111
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
112
112
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
113
113
|
export const __externref_table_dealloc: (a: number) => void;
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
114
|
+
export const closure1590_externref_shim: (a: number, b: number, c: any) => void;
|
|
115
|
+
export const closure1943_externref_shim: (a: number, b: number, c: any) => void;
|
|
116
|
+
export const closure2166_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
117
117
|
export const __wbindgen_start: () => void;
|