@rivetkit/rivetkit-wasm 0.0.0-fix-engine-autospawn-binary-path.e5bdda7 → 0.0.0-fix-universaldb-rocksdb-empty-value-ub.f4f1a86
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-wasm",
|
|
3
|
-
"version": "0.0.0-fix-
|
|
3
|
+
"version": "0.0.0-fix-universaldb-rocksdb-empty-value-ub.f4f1a86",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "node scripts/build.mjs",
|
|
31
|
+
"build:embed": "node scripts/build.mjs",
|
|
31
32
|
"build:cloudflare": "node scripts/build.mjs --target bundler --out-dir pkg-cloudflare",
|
|
32
33
|
"build:deno": "node scripts/build.mjs --target web --out-dir pkg-deno",
|
|
33
34
|
"check:package": "node scripts/check-package.mjs",
|
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
|
-
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
3
|
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
5
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
7
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;
|
|
@@ -238,8 +238,8 @@ export interface InitOutput {
|
|
|
238
238
|
readonly start: () => void;
|
|
239
239
|
readonly actorcontext_queue: (a: number) => number;
|
|
240
240
|
readonly actorcontext_schedule: (a: number) => number;
|
|
241
|
-
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
242
241
|
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
242
|
+
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
243
243
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
244
244
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
245
245
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -221,25 +221,15 @@ 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
|
|
226
|
+
* @returns {Uint8Array}
|
|
231
227
|
*/
|
|
232
|
-
export function
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
deferred1_0 = ret[0];
|
|
238
|
-
deferred1_1 = ret[1];
|
|
239
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
240
|
-
} finally {
|
|
241
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
242
|
-
}
|
|
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;
|
|
243
233
|
}
|
|
244
234
|
|
|
245
235
|
/**
|
|
@@ -256,14 +246,19 @@ export function roundTripBytes(bytes) {
|
|
|
256
246
|
}
|
|
257
247
|
|
|
258
248
|
/**
|
|
259
|
-
* @
|
|
260
|
-
* @returns {Uint8Array}
|
|
249
|
+
* @returns {string}
|
|
261
250
|
*/
|
|
262
|
-
export function
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
251
|
+
export function bridgeRivetErrorPrefix() {
|
|
252
|
+
let deferred1_0;
|
|
253
|
+
let deferred1_1;
|
|
254
|
+
try {
|
|
255
|
+
const ret = wasm.bridgeRivetErrorPrefix();
|
|
256
|
+
deferred1_0 = ret[0];
|
|
257
|
+
deferred1_1 = ret[1];
|
|
258
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
259
|
+
} finally {
|
|
260
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
261
|
+
}
|
|
267
262
|
}
|
|
268
263
|
|
|
269
264
|
/**
|
|
@@ -275,6 +270,10 @@ export function awaitPromise(promise) {
|
|
|
275
270
|
return ret;
|
|
276
271
|
}
|
|
277
272
|
|
|
273
|
+
export function start() {
|
|
274
|
+
wasm.start();
|
|
275
|
+
}
|
|
276
|
+
|
|
278
277
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
279
278
|
wasm.closure1598_externref_shim(arg0, arg1, arg2);
|
|
280
279
|
}
|
|
@@ -283,7 +282,7 @@ function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
|
283
282
|
wasm.closure1950_externref_shim(arg0, arg1, arg2);
|
|
284
283
|
}
|
|
285
284
|
|
|
286
|
-
function
|
|
285
|
+
function __wbg_adapter_276(arg0, arg1, arg2, arg3) {
|
|
287
286
|
wasm.closure2181_externref_shim(arg0, arg1, arg2, arg3);
|
|
288
287
|
}
|
|
289
288
|
|
|
@@ -1570,7 +1569,7 @@ function __wbg_get_imports() {
|
|
|
1570
1569
|
const a = state0.a;
|
|
1571
1570
|
state0.a = 0;
|
|
1572
1571
|
try {
|
|
1573
|
-
return
|
|
1572
|
+
return __wbg_adapter_276(a, state0.b, arg0, arg1);
|
|
1574
1573
|
} finally {
|
|
1575
1574
|
state0.a = a;
|
|
1576
1575
|
}
|
|
@@ -1782,23 +1781,23 @@ function __wbg_get_imports() {
|
|
|
1782
1781
|
const ret = false;
|
|
1783
1782
|
return ret;
|
|
1784
1783
|
};
|
|
1785
|
-
imports.wbg.
|
|
1784
|
+
imports.wbg.__wbindgen_closure_wrapper3728 = function(arg0, arg1, arg2) {
|
|
1786
1785
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1787
1786
|
return ret;
|
|
1788
1787
|
};
|
|
1789
|
-
imports.wbg.
|
|
1788
|
+
imports.wbg.__wbindgen_closure_wrapper3730 = function(arg0, arg1, arg2) {
|
|
1790
1789
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1791
1790
|
return ret;
|
|
1792
1791
|
};
|
|
1793
|
-
imports.wbg.
|
|
1792
|
+
imports.wbg.__wbindgen_closure_wrapper3732 = function(arg0, arg1, arg2) {
|
|
1794
1793
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1795
1794
|
return ret;
|
|
1796
1795
|
};
|
|
1797
|
-
imports.wbg.
|
|
1796
|
+
imports.wbg.__wbindgen_closure_wrapper3734 = function(arg0, arg1, arg2) {
|
|
1798
1797
|
const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
|
|
1799
1798
|
return ret;
|
|
1800
1799
|
};
|
|
1801
|
-
imports.wbg.
|
|
1800
|
+
imports.wbg.__wbindgen_closure_wrapper4576 = function(arg0, arg1, arg2) {
|
|
1802
1801
|
const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
|
|
1803
1802
|
return ret;
|
|
1804
1803
|
};
|
|
Binary file
|
|
@@ -102,8 +102,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
|
102
102
|
export const start: () => void;
|
|
103
103
|
export const actorcontext_queue: (a: number) => number;
|
|
104
104
|
export const actorcontext_schedule: (a: number) => number;
|
|
105
|
-
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
106
105
|
export const __wbg_queue_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_schedule_free: (a: number, b: number) => void;
|
|
107
107
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
108
108
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
109
109
|
export const __wbindgen_exn_store: (a: number) => void;
|