@rivetkit/rivetkit-wasm 2.3.0-rc.14 → 2.3.0-rc.15
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 +1 -1
- package/pkg/rivetkit_wasm.js +11 -11
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
3
4
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
4
5
|
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
6
|
export function bridgeRivetErrorPrefix(): string;
|
|
7
7
|
export function start(): void;
|
|
8
8
|
export class ActorContext {
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,6 +221,17 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* @param {Uint8Array} bytes
|
|
226
|
+
* @returns {Uint8Array}
|
|
227
|
+
*/
|
|
228
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
229
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
230
|
+
const len0 = WASM_VECTOR_LEN;
|
|
231
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
232
|
+
return ret;
|
|
233
|
+
}
|
|
234
|
+
|
|
224
235
|
/**
|
|
225
236
|
* @param {Promise<any>} promise
|
|
226
237
|
* @returns {Promise<any>}
|
|
@@ -243,17 +254,6 @@ export function roundTripBytes(bytes) {
|
|
|
243
254
|
return v2;
|
|
244
255
|
}
|
|
245
256
|
|
|
246
|
-
/**
|
|
247
|
-
* @param {Uint8Array} bytes
|
|
248
|
-
* @returns {Uint8Array}
|
|
249
|
-
*/
|
|
250
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
251
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
252
|
-
const len0 = WASM_VECTOR_LEN;
|
|
253
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
254
|
-
return ret;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
257
|
/**
|
|
258
258
|
* @returns {string}
|
|
259
259
|
*/
|
|
Binary file
|