@rivetkit/rivetkit-wasm 0.0.0-fix-engine-autospawn-binary-path.e5bdda7 → 0.0.0-main.17f6330

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-engine-autospawn-binary-path.e5bdda7",
3
+ "version": "0.0.0-main.17f6330",
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",
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function start(): void;
4
3
  export function bridgeRivetErrorPrefix(): string;
5
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
4
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
+ export function start(): void;
7
6
  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;
@@ -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
  * @returns {string}
231
226
  */
@@ -242,19 +237,6 @@ export function bridgeRivetErrorPrefix() {
242
237
  }
243
238
  }
244
239
 
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
-
258
240
  /**
259
241
  * @param {Uint8Array} bytes
260
242
  * @returns {Uint8Array}
@@ -266,6 +248,10 @@ export function uint8ArrayFromBytes(bytes) {
266
248
  return ret;
267
249
  }
268
250
 
251
+ export function start() {
252
+ wasm.start();
253
+ }
254
+
269
255
  /**
270
256
  * @param {Promise<any>} promise
271
257
  * @returns {Promise<any>}
@@ -275,6 +261,19 @@ export function awaitPromise(promise) {
275
261
  return ret;
276
262
  }
277
263
 
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
+
278
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
279
278
  wasm.closure1598_externref_shim(arg0, arg1, arg2);
280
279
  }
@@ -1782,23 +1781,23 @@ function __wbg_get_imports() {
1782
1781
  const ret = false;
1783
1782
  return ret;
1784
1783
  };
1785
- imports.wbg.__wbindgen_closure_wrapper3727 = function(arg0, arg1, arg2) {
1784
+ imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
1786
1785
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1787
1786
  return ret;
1788
1787
  };
1789
- imports.wbg.__wbindgen_closure_wrapper3729 = function(arg0, arg1, arg2) {
1788
+ imports.wbg.__wbindgen_closure_wrapper3735 = function(arg0, arg1, arg2) {
1790
1789
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1791
1790
  return ret;
1792
1791
  };
1793
- imports.wbg.__wbindgen_closure_wrapper3731 = function(arg0, arg1, arg2) {
1792
+ imports.wbg.__wbindgen_closure_wrapper3737 = function(arg0, arg1, arg2) {
1794
1793
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1795
1794
  return ret;
1796
1795
  };
1797
- imports.wbg.__wbindgen_closure_wrapper3733 = function(arg0, arg1, arg2) {
1796
+ imports.wbg.__wbindgen_closure_wrapper3739 = function(arg0, arg1, arg2) {
1798
1797
  const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1799
1798
  return ret;
1800
1799
  };
1801
- imports.wbg.__wbindgen_closure_wrapper4574 = function(arg0, arg1, arg2) {
1800
+ imports.wbg.__wbindgen_closure_wrapper4580 = function(arg0, arg1, arg2) {
1802
1801
  const ret = makeMutClosure(arg0, arg1, 1951, __wbg_adapter_55);
1803
1802
  return ret;
1804
1803
  };
Binary file