perp-cli 0.3.13 → 0.3.14

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.
@@ -781,6 +781,7 @@ export class LighterAdapter {
781
781
  // Walk up to package root: dist/esm/index.js → 3 levels
782
782
  const sdkRoot = dirname(dirname(dirname(fileURLToPath(sdkEntry))));
783
783
  const wasmPath = join(sdkRoot, "wasm", "lighter-signer.wasm");
784
+ const wasmExecPath = join(sdkRoot, "wasm", "wasm_exec.js");
784
785
  // Prevent Go WASM runtime from killing the process on panic
785
786
  const origExit = process.exit;
786
787
  process.exit = ((code) => {
@@ -789,7 +790,7 @@ export class LighterAdapter {
789
790
  });
790
791
  try {
791
792
  const { WasmSignerClient } = await import("lighter-ts-sdk");
792
- const client = new WasmSignerClient({ wasmPath });
793
+ const client = new WasmSignerClient({ wasmPath, wasmExecPath });
793
794
  await client.initialize();
794
795
  LighterAdapter._wasmClient = client;
795
796
  return client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perp-cli",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Multi-DEX Perpetual Futures CLI - Pacifica, Hyperliquid, Lighter",
5
5
  "bin": {
6
6
  "perp": "dist/index.js",