@rivetkit/rivetkit-wasm 0.0.0-codex-docsrs-rivetkit-build.b91ad8d → 0.0.0-codex-rivetkit-quickstart-preview.7e0cd02
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 +24 -24
- 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-
|
|
3
|
+
"version": "0.0.0-codex-rivetkit-quickstart-preview.7e0cd02",
|
|
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;
|
|
4
3
|
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
6
4
|
export function start(): void;
|
|
7
5
|
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
6
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
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
|
@@ -221,19 +221,6 @@ 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
|
-
|
|
237
224
|
/**
|
|
238
225
|
* @returns {string}
|
|
239
226
|
*/
|
|
@@ -250,17 +237,6 @@ export function bridgeRivetErrorPrefix() {
|
|
|
250
237
|
}
|
|
251
238
|
}
|
|
252
239
|
|
|
253
|
-
/**
|
|
254
|
-
* @param {Uint8Array} bytes
|
|
255
|
-
* @returns {Uint8Array}
|
|
256
|
-
*/
|
|
257
|
-
export function uint8ArrayFromBytes(bytes) {
|
|
258
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
259
|
-
const len0 = WASM_VECTOR_LEN;
|
|
260
|
-
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
261
|
-
return ret;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
240
|
export function start() {
|
|
265
241
|
wasm.start();
|
|
266
242
|
}
|
|
@@ -274,6 +250,30 @@ export function awaitPromise(promise) {
|
|
|
274
250
|
return ret;
|
|
275
251
|
}
|
|
276
252
|
|
|
253
|
+
/**
|
|
254
|
+
* @param {Uint8Array} bytes
|
|
255
|
+
* @returns {Uint8Array}
|
|
256
|
+
*/
|
|
257
|
+
export function roundTripBytes(bytes) {
|
|
258
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
259
|
+
const len0 = WASM_VECTOR_LEN;
|
|
260
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
261
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
262
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
263
|
+
return v2;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @param {Uint8Array} bytes
|
|
268
|
+
* @returns {Uint8Array}
|
|
269
|
+
*/
|
|
270
|
+
export function uint8ArrayFromBytes(bytes) {
|
|
271
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
272
|
+
const len0 = WASM_VECTOR_LEN;
|
|
273
|
+
const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
|
|
274
|
+
return ret;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
278
|
wasm.closure1598_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
Binary file
|