@rivetkit/rivetkit-wasm 2.3.0-rc.12 → 2.3.0-rc.13
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
|
|
3
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
4
4
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
5
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
|
-
export function
|
|
6
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
+
export function start(): void;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
|
@@ -248,9 +248,9 @@ export interface InitOutput {
|
|
|
248
248
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
249
249
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
250
250
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
251
|
-
readonly
|
|
252
|
-
readonly
|
|
253
|
-
readonly
|
|
251
|
+
readonly closure1598_externref_shim: (a: number, b: number, c: any) => void;
|
|
252
|
+
readonly closure1950_externref_shim: (a: number, b: number, c: any) => void;
|
|
253
|
+
readonly closure2181_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
254
254
|
readonly __wbindgen_start: () => void;
|
|
255
255
|
}
|
|
256
256
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,9 +221,20 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
/**
|
|
225
|
+
* @returns {string}
|
|
226
|
+
*/
|
|
227
|
+
export function bridgeRivetErrorPrefix() {
|
|
228
|
+
let deferred1_0;
|
|
229
|
+
let deferred1_1;
|
|
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
|
+
}
|
|
227
238
|
}
|
|
228
239
|
|
|
229
240
|
/**
|
|
@@ -239,17 +250,6 @@ export function roundTripBytes(bytes) {
|
|
|
239
250
|
return v2;
|
|
240
251
|
}
|
|
241
252
|
|
|
242
|
-
/**
|
|
243
|
-
* @param {Uint8Array} bytes
|
|
244
|
-
* @returns {Uint8Array}
|
|
245
|
-
*/
|
|
246
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
247
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
248
|
-
const len0 = WASM_VECTOR_LEN;
|
|
249
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
250
|
-
return ret;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
253
|
/**
|
|
254
254
|
* @param {Promise<any>} promise
|
|
255
255
|
* @returns {Promise<any>}
|
|
@@ -260,31 +260,30 @@ export function awaitPromise(promise) {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
|
-
* @
|
|
263
|
+
* @param {Uint8Array} bytes
|
|
264
|
+
* @returns {Uint8Array}
|
|
264
265
|
*/
|
|
265
|
-
export function
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
275
|
-
}
|
|
266
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
267
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
268
|
+
const len0 = WASM_VECTOR_LEN;
|
|
269
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
270
|
+
return ret;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function start() {
|
|
274
|
+
wasm.start();
|
|
276
275
|
}
|
|
277
276
|
|
|
278
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
279
|
-
wasm.
|
|
278
|
+
wasm.closure1598_externref_shim(arg0, arg1, arg2);
|
|
280
279
|
}
|
|
281
280
|
|
|
282
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
283
|
-
wasm.
|
|
282
|
+
wasm.closure1950_externref_shim(arg0, arg1, arg2);
|
|
284
283
|
}
|
|
285
284
|
|
|
286
285
|
function __wbg_adapter_268(arg0, arg1, arg2, arg3) {
|
|
287
|
-
wasm.
|
|
286
|
+
wasm.closure2181_externref_shim(arg0, arg1, arg2, arg3);
|
|
288
287
|
}
|
|
289
288
|
|
|
290
289
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1782,24 +1781,24 @@ function __wbg_get_imports() {
|
|
|
1782
1781
|
const ret = false;
|
|
1783
1782
|
return ret;
|
|
1784
1783
|
};
|
|
1785
|
-
imports.wbg.
|
|
1786
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1784
|
+
imports.wbg.__wbindgen_closure_wrapper3727 = function(arg0, arg1, arg2) {
|
|
1785
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1787
1786
|
return ret;
|
|
1788
1787
|
};
|
|
1789
|
-
imports.wbg.
|
|
1790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1788
|
+
imports.wbg.__wbindgen_closure_wrapper3729 = function(arg0, arg1, arg2) {
|
|
1789
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1791
1790
|
return ret;
|
|
1792
1791
|
};
|
|
1793
|
-
imports.wbg.
|
|
1794
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1792
|
+
imports.wbg.__wbindgen_closure_wrapper3731 = function(arg0, arg1, arg2) {
|
|
1793
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1795
1794
|
return ret;
|
|
1796
1795
|
};
|
|
1797
|
-
imports.wbg.
|
|
1798
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1796
|
+
imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
|
|
1797
|
+
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1799
1798
|
return ret;
|
|
1800
1799
|
};
|
|
1801
|
-
imports.wbg.
|
|
1802
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1800
|
+
imports.wbg.__wbindgen_closure_wrapper4574 = function(arg0, arg1, arg2) {
|
|
1801
|
+
const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
|
|
1803
1802
|
return ret;
|
|
1804
1803
|
};
|
|
1805
1804
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -112,7 +112,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
112
112
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
113
113
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
114
114
|
export const __externref_table_dealloc: (a: number) => void;
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
117
|
-
export const
|
|
115
|
+
export const closure1598_externref_shim: (a: number, b: number, c: any) => void;
|
|
116
|
+
export const closure1950_externref_shim: (a: number, b: number, c: any) => void;
|
|
117
|
+
export const closure2181_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
118
118
|
export const __wbindgen_start: () => void;
|