@rivetkit/rivetkit-wasm 0.0.0-codex-docsrs-rivetkit-build.45929bf → 0.0.0-codex-docsrs-rivetkit-build.b91ad8d
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 +2 -2
- package/pkg/rivetkit_wasm.js +17 -17
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-wasm",
|
|
3
|
-
"version": "0.0.0-codex-docsrs-rivetkit-build.
|
|
3
|
+
"version": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
3
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
4
|
-
export function start(): void;
|
|
5
5
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function start(): void;
|
|
6
7
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
|
-
export function roundTripBytes(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
|
@@ -221,6 +221,19 @@ 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 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
|
+
|
|
224
237
|
/**
|
|
225
238
|
* @returns {string}
|
|
226
239
|
*/
|
|
@@ -237,10 +250,6 @@ export function bridgeRivetErrorPrefix() {
|
|
|
237
250
|
}
|
|
238
251
|
}
|
|
239
252
|
|
|
240
|
-
export function start() {
|
|
241
|
-
wasm.start();
|
|
242
|
-
}
|
|
243
|
-
|
|
244
253
|
/**
|
|
245
254
|
* @param {Uint8Array} bytes
|
|
246
255
|
* @returns {Uint8Array}
|
|
@@ -252,6 +261,10 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
252
261
|
return ret;
|
|
253
262
|
}
|
|
254
263
|
|
|
264
|
+
export function start() {
|
|
265
|
+
wasm.start();
|
|
266
|
+
}
|
|
267
|
+
|
|
255
268
|
/**
|
|
256
269
|
* @param {Promise<any>} promise
|
|
257
270
|
* @returns {Promise<any>}
|
|
@@ -261,19 +274,6 @@ export function awaitPromise(promise) {
|
|
|
261
274
|
return ret;
|
|
262
275
|
}
|
|
263
276
|
|
|
264
|
-
/**
|
|
265
|
-
* @param {Uint8Array} bytes
|
|
266
|
-
* @returns {Uint8Array}
|
|
267
|
-
*/
|
|
268
|
-
export function roundTripBytes(bytes) {
|
|
269
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
270
|
-
const len0 = WASM_VECTOR_LEN;
|
|
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;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
278
|
wasm.closure1598_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
Binary file
|