wachi 0.1.5 → 0.1.7
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/wachi.js +15 -0
- package/package.json +6 -6
package/bin/wachi.js
CHANGED
|
@@ -22,9 +22,24 @@ const runBinary = (binaryPath) => {
|
|
|
22
22
|
const result = spawnSync(binaryPath, args, {
|
|
23
23
|
stdio: "inherit",
|
|
24
24
|
});
|
|
25
|
+
|
|
26
|
+
if (result.error) {
|
|
27
|
+
process.stderr.write(
|
|
28
|
+
`Error: Failed to run wachi binary at ${binaryPath}.\n` +
|
|
29
|
+
`${result.error.message}\n` +
|
|
30
|
+
"Try reinstalling wachi and its optional platform package.\n",
|
|
31
|
+
);
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
|
|
25
35
|
if (typeof result.status === "number") {
|
|
26
36
|
process.exit(result.status);
|
|
27
37
|
}
|
|
38
|
+
|
|
39
|
+
if (typeof result.signal === "string") {
|
|
40
|
+
process.stderr.write(`Error: wachi binary terminated by signal ${result.signal}.\n`);
|
|
41
|
+
}
|
|
42
|
+
|
|
28
43
|
process.exit(1);
|
|
29
44
|
};
|
|
30
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wachi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Subscribe any link and get notified on change",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"zod-validation-error": "5.0.0"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@wachi-cli/darwin-arm64": "0.1.
|
|
58
|
-
"@wachi-cli/darwin-x64": "0.1.
|
|
59
|
-
"@wachi-cli/linux-arm64": "0.1.
|
|
60
|
-
"@wachi-cli/linux-x64": "0.1.
|
|
61
|
-
"@wachi-cli/win32-x64": "0.1.
|
|
57
|
+
"@wachi-cli/darwin-arm64": "0.1.7",
|
|
58
|
+
"@wachi-cli/darwin-x64": "0.1.7",
|
|
59
|
+
"@wachi-cli/linux-arm64": "0.1.7",
|
|
60
|
+
"@wachi-cli/linux-x64": "0.1.7",
|
|
61
|
+
"@wachi-cli/win32-x64": "0.1.7"
|
|
62
62
|
}
|
|
63
63
|
}
|