@rivetkit/rivetkit-wasm 0.0.0-codex-rivetkit-cli-preview.5e414a8 → 0.0.0-codex-rivetkit-cli-preview.446d935
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 +21 -22
- 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-rivetkit-cli-preview.
|
|
3
|
+
"version": "0.0.0-codex-rivetkit-cli-preview.446d935",
|
|
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 start(): void;
|
|
4
3
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
-
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
6
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
7
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
7
|
+
export function start(): void;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,11 +221,6 @@ function _assertClass(instance, klass) {
|
|
|
221
221
|
throw new Error(`expected instance of ${klass.name}`);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
export function start() {
|
|
226
|
-
wasm.start();
|
|
227
|
-
}
|
|
228
|
-
|
|
229
224
|
/**
|
|
230
225
|
* @param {Uint8Array} bytes
|
|
231
226
|
* @returns {Uint8Array}
|
|
@@ -238,12 +233,19 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
238
233
|
}
|
|
239
234
|
|
|
240
235
|
/**
|
|
241
|
-
* @
|
|
242
|
-
* @returns {Promise<any>}
|
|
236
|
+
* @returns {string}
|
|
243
237
|
*/
|
|
244
|
-
export function
|
|
245
|
-
|
|
246
|
-
|
|
238
|
+
export function bridgeRivetErrorPrefix() {
|
|
239
|
+
let deferred1_0;
|
|
240
|
+
let deferred1_1;
|
|
241
|
+
try {
|
|
242
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
243
|
+
deferred1_0 = ret[0];
|
|
244
|
+
deferred1_1 = ret[1];
|
|
245
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
246
|
+
} finally {
|
|
247
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
248
|
+
}
|
|
247
249
|
}
|
|
248
250
|
|
|
249
251
|
/**
|
|
@@ -260,19 +262,16 @@ export function roundTripBytes(bytes) {
|
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
/**
|
|
263
|
-
* @
|
|
265
|
+
* @param {Promise<any>} promise
|
|
266
|
+
* @returns {Promise<any>}
|
|
264
267
|
*/
|
|
265
|
-
export function
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
273
|
-
} finally {
|
|
274
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
275
|
-
}
|
|
268
|
+
export function awaitPromise(promise) {
|
|
269
|
+
const ret = wasm.awaitPromise(promise);
|
|
270
|
+
return ret;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function start() {
|
|
274
|
+
wasm.start();
|
|
276
275
|
}
|
|
277
276
|
|
|
278
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
Binary file
|