baton-host 0.1.2 → 0.1.3

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/bin/baton-host.js CHANGED
@@ -27,9 +27,14 @@ try {
27
27
  process.exit(1);
28
28
  }
29
29
 
30
+ const bundledCloudflaredPath = path.join(path.dirname(binaryPath), process.platform === "win32" ? "cloudflared.exe" : "cloudflared");
31
+
30
32
  const child = spawn(binaryPath, process.argv.slice(2), {
31
33
  stdio: "inherit",
32
- env: process.env
34
+ env: {
35
+ ...process.env,
36
+ BATON_CLOUDFLARED_BIN: bundledCloudflaredPath
37
+ }
33
38
  });
34
39
 
35
40
  child.on("exit", (code, signal) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baton-host",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Baton Bridge Host CLI(二进制分发入口)",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -10,9 +10,9 @@
10
10
  "bin"
11
11
  ],
12
12
  "optionalDependencies": {
13
- "baton-host-darwin-arm64": "0.1.2",
14
- "baton-host-darwin-x64": "0.1.2",
15
- "baton-host-linux-arm64": "0.1.2",
16
- "baton-host-linux-x64": "0.1.2"
13
+ "baton-host-darwin-arm64": "0.1.3",
14
+ "baton-host-darwin-x64": "0.1.3",
15
+ "baton-host-linux-arm64": "0.1.3",
16
+ "baton-host-linux-x64": "0.1.3"
17
17
  }
18
18
  }