@rivetkit/rivetkit-wasm 0.0.0-sqlite-uds.ea644f1 → 0.0.0-sqlite-uds.2015d80
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 +22 -21
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
package/package.json
CHANGED
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 start(): void;
|
|
5
|
-
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
6
4
|
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
7
6
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
7
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
8
8
|
export class ActorContext {
|
|
9
9
|
free(): void;
|
|
10
10
|
keepAwake(promise: Promise<any>): void;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,32 +221,11 @@ 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
|
export function start() {
|
|
238
226
|
wasm.start();
|
|
239
227
|
}
|
|
240
228
|
|
|
241
|
-
/**
|
|
242
|
-
* @param {Promise<any>} promise
|
|
243
|
-
* @returns {Promise<any>}
|
|
244
|
-
*/
|
|
245
|
-
export function awaitPromise(promise) {
|
|
246
|
-
const ret = wasm.awaitPromise(promise);
|
|
247
|
-
return ret;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
229
|
/**
|
|
251
230
|
* @returns {string}
|
|
252
231
|
*/
|
|
@@ -263,6 +242,19 @@ export function bridgeRivetErrorPrefix() {
|
|
|
263
242
|
}
|
|
264
243
|
}
|
|
265
244
|
|
|
245
|
+
/**
|
|
246
|
+
* @param {Uint8Array} bytes
|
|
247
|
+
* @returns {Uint8Array}
|
|
248
|
+
*/
|
|
249
|
+
export function roundTripBytes(bytes) {
|
|
250
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
251
|
+
const len0 = WASM_VECTOR_LEN;
|
|
252
|
+
const ret = wasm.roundTripBytes(ptr0, len0);
|
|
253
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
254
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
255
|
+
return v2;
|
|
256
|
+
}
|
|
257
|
+
|
|
266
258
|
/**
|
|
267
259
|
* @param {Uint8Array} bytes
|
|
268
260
|
* @returns {Uint8Array}
|
|
@@ -274,6 +266,15 @@ export function uint8ArrayFromBytes(bytes) {
|
|
|
274
266
|
return ret;
|
|
275
267
|
}
|
|
276
268
|
|
|
269
|
+
/**
|
|
270
|
+
* @param {Promise<any>} promise
|
|
271
|
+
* @returns {Promise<any>}
|
|
272
|
+
*/
|
|
273
|
+
export function awaitPromise(promise) {
|
|
274
|
+
const ret = wasm.awaitPromise(promise);
|
|
275
|
+
return ret;
|
|
276
|
+
}
|
|
277
|
+
|
|
277
278
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
278
279
|
wasm.closure1608_externref_shim(arg0, arg1, arg2);
|
|
279
280
|
}
|
|
Binary file
|