@quark-client/quark 1.4.2 → 1.4.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/quark.js +15 -8
- package/package.json +6 -6
package/bin/quark.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const os = require('os');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const fs = require('fs');
|
|
6
|
-
const {
|
|
6
|
+
const { spawnSync } = require('child_process');
|
|
7
7
|
|
|
8
8
|
const platform = os.platform();
|
|
9
9
|
const arch = os.arch();
|
|
@@ -55,11 +55,18 @@ try {
|
|
|
55
55
|
process.exit(1);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
// Pass arguments straight to the binary: no shell, so spaces, quotes, `&`,
|
|
59
|
+
// `|`, `$` etc. in arguments (URLs, JSON bodies, headers) arrive verbatim.
|
|
60
|
+
const result = spawnSync(binPath, process.argv.slice(2), {
|
|
61
|
+
stdio: 'inherit',
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
if (result.error) {
|
|
65
|
+
console.error(`quark: failed to run ${binPath}: ${result.error.message}`);
|
|
66
|
+
process.exit(1);
|
|
67
|
+
}
|
|
68
|
+
if (result.signal) {
|
|
69
|
+
// Re-raise so the parent shell sees the same signal (e.g. Ctrl+C).
|
|
70
|
+
process.kill(process.pid, result.signal);
|
|
65
71
|
}
|
|
72
|
+
process.exit(result.status === null ? 1 : result.status);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quark-client/quark",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "A local-first, keyboard-driven HTTP client",
|
|
5
5
|
"homepage": "https://github.com/crazy-vedic/Quark",
|
|
6
6
|
"repository": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=16.0.0"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@quark-client/quark-linux-x64": "1.4.
|
|
25
|
-
"@quark-client/quark-linux-arm64": "1.4.
|
|
26
|
-
"@quark-client/quark-darwin-x64": "1.4.
|
|
27
|
-
"@quark-client/quark-darwin-arm64": "1.4.
|
|
28
|
-
"@quark-client/quark-win32-x64": "1.4.
|
|
24
|
+
"@quark-client/quark-linux-x64": "1.4.3",
|
|
25
|
+
"@quark-client/quark-linux-arm64": "1.4.3",
|
|
26
|
+
"@quark-client/quark-darwin-x64": "1.4.3",
|
|
27
|
+
"@quark-client/quark-darwin-arm64": "1.4.3",
|
|
28
|
+
"@quark-client/quark-win32-x64": "1.4.3"
|
|
29
29
|
}
|
|
30
30
|
}
|