@rivetkit/rivetkit-wasm 2.3.0-rc.7 → 2.3.0-rc.8
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 +1 -1
- package/pkg/rivetkit_wasm.d.ts +3 -3
- package/pkg/rivetkit_wasm.js +29 -29
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
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 bridgeRivetErrorPrefix(): string;
|
|
3
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
4
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
6
6
|
export function start(): void;
|
|
7
|
-
export function
|
|
7
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -222,11 +222,26 @@ function _assertClass(instance, klass) {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* @param {
|
|
226
|
-
* @returns {
|
|
225
|
+
* @param {Uint8Array} bytes
|
|
226
|
+
* @returns {Uint8Array}
|
|
227
227
|
*/
|
|
228
|
-
export function
|
|
229
|
-
const
|
|
228
|
+
export function roundTripBytes(bytes) {
|
|
229
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
230
|
+
const len0 = WASM_VECTOR_LEN;
|
|
231
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
232
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
233
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
234
|
+
return v2;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @param {Uint8Array} bytes
|
|
239
|
+
* @returns {Uint8Array}
|
|
240
|
+
*/
|
|
241
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
242
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
243
|
+
const len0 = WASM_VECTOR_LEN;
|
|
244
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
230
245
|
return ret;
|
|
231
246
|
}
|
|
232
247
|
|
|
@@ -246,32 +261,17 @@ export function bridgeRivetErrorPrefix() {
|
|
|
246
261
|
}
|
|
247
262
|
}
|
|
248
263
|
|
|
249
|
-
/**
|
|
250
|
-
* @param {Uint8Array} bytes
|
|
251
|
-
* @returns {Uint8Array}
|
|
252
|
-
*/
|
|
253
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
254
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
255
|
-
const len0 = WASM_VECTOR_LEN;
|
|
256
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
257
|
-
return ret;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
264
|
export function start() {
|
|
261
265
|
wasm.start();
|
|
262
266
|
}
|
|
263
267
|
|
|
264
268
|
/**
|
|
265
|
-
* @param {
|
|
266
|
-
* @returns {
|
|
269
|
+
* @param {Promise<any>} promise
|
|
270
|
+
* @returns {Promise<any>}
|
|
267
271
|
*/
|
|
268
|
-
export function
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
272
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
273
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
274
|
-
return v2;
|
|
272
|
+
export function awaitPromise(promise) {
|
|
273
|
+
const ret = wasm.awaitPromise(promise);
|
|
274
|
+
return ret;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
@@ -1774,23 +1774,23 @@ function __wbg_get_imports() {
|
|
|
1774
1774
|
const ret = false;
|
|
1775
1775
|
return ret;
|
|
1776
1776
|
};
|
|
1777
|
-
imports.wbg.
|
|
1777
|
+
imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
|
|
1778
1778
|
const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
|
|
1779
1779
|
return ret;
|
|
1780
1780
|
};
|
|
1781
|
-
imports.wbg.
|
|
1781
|
+
imports.wbg.__wbindgen_closure_wrapper3735 = function(arg0, arg1, arg2) {
|
|
1782
1782
|
const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
|
|
1783
1783
|
return ret;
|
|
1784
1784
|
};
|
|
1785
|
-
imports.wbg.
|
|
1785
|
+
imports.wbg.__wbindgen_closure_wrapper3737 = function(arg0, arg1, arg2) {
|
|
1786
1786
|
const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
|
|
1787
1787
|
return ret;
|
|
1788
1788
|
};
|
|
1789
|
-
imports.wbg.
|
|
1789
|
+
imports.wbg.__wbindgen_closure_wrapper3739 = function(arg0, arg1, arg2) {
|
|
1790
1790
|
const ret = makeMutClosure(arg0, arg1, 1595, __wbg_adapter_46);
|
|
1791
1791
|
return ret;
|
|
1792
1792
|
};
|
|
1793
|
-
imports.wbg.
|
|
1793
|
+
imports.wbg.__wbindgen_closure_wrapper4684 = function(arg0, arg1, arg2) {
|
|
1794
1794
|
const ret = makeMutClosure(arg0, arg1, 1965, __wbg_adapter_55);
|
|
1795
1795
|
return ret;
|
|
1796
1796
|
};
|
|
Binary file
|