@rivetkit/rivetkit-wasm 2.3.29 → 2.3.30
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/package.json +1 -1
- package/pkg/rivetkit_wasm.d.ts +2 -2
- package/pkg/rivetkit_wasm.js +19 -19
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/package.json
CHANGED
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function start(): void;
|
|
4
|
-
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
4
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
7
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;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -226,6 +226,19 @@ export function start() {
|
|
|
226
226
|
wasm.start();
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* @param {Uint8Array} bytes
|
|
231
|
+
* @returns {Uint8Array}
|
|
232
|
+
*/
|
|
233
|
+
export function roundTripBytes(bytes) {
|
|
234
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
235
|
+
const len0 = WASM_VECTOR_LEN;
|
|
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;
|
|
240
|
+
}
|
|
241
|
+
|
|
229
242
|
/**
|
|
230
243
|
* @returns {string}
|
|
231
244
|
*/
|
|
@@ -243,13 +256,11 @@ export function bridgeRivetErrorPrefix() {
|
|
|
243
256
|
}
|
|
244
257
|
|
|
245
258
|
/**
|
|
246
|
-
* @param {
|
|
247
|
-
* @returns {
|
|
259
|
+
* @param {Promise<any>} promise
|
|
260
|
+
* @returns {Promise<any>}
|
|
248
261
|
*/
|
|
249
|
-
export function
|
|
250
|
-
const
|
|
251
|
-
const len0 = WASM_VECTOR_LEN;
|
|
252
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
262
|
+
export function awaitPromise(promise) {
|
|
263
|
+
const ret = wasm.awaitPromise(promise);
|
|
253
264
|
return ret;
|
|
254
265
|
}
|
|
255
266
|
|
|
@@ -257,21 +268,10 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
257
268
|
* @param {Uint8Array} bytes
|
|
258
269
|
* @returns {Uint8Array}
|
|
259
270
|
*/
|
|
260
|
-
export function
|
|
271
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
261
272
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
262
273
|
const len0 = WASM_VECTOR_LEN;
|
|
263
|
-
const ret = wasm.
|
|
264
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
265
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
266
|
-
return v2;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @param {Promise<any>} promise
|
|
271
|
-
* @returns {Promise<any>}
|
|
272
|
-
*/
|
|
273
|
-
export function awaitPromise(promise) {
|
|
274
|
-
const ret = wasm.awaitPromise(promise);
|
|
274
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
275
275
|
return ret;
|
|
276
276
|
}
|
|
277
277
|
|
|
Binary file
|