@harnspec/http-server 0.0.1 → 0.0.2
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/harnspec-http.js +2 -2
- package/binaries/darwin-arm64/harnspec-http +0 -0
- package/binaries/darwin-arm64/package.json +2 -2
- package/binaries/darwin-x64/harnspec-http +0 -0
- package/binaries/darwin-x64/package.json +2 -2
- package/binaries/linux-arm64/harnspec-http +0 -0
- package/binaries/linux-arm64/package.json +24 -0
- package/binaries/linux-arm64/postinstall.js +17 -0
- package/binaries/linux-x64/harnspec-http +0 -0
- package/binaries/linux-x64/package.json +2 -2
- package/binaries/windows-x64/harnspec-http.exe +0 -0
- package/binaries/windows-x64/package.json +2 -2
- package/package.json +7 -6
package/bin/harnspec-http.js
CHANGED
|
@@ -29,7 +29,7 @@ const debug = (...args) => DEBUG && console.error('[harnspec-http debug]', ...ar
|
|
|
29
29
|
// Platform detection mapping
|
|
30
30
|
const PLATFORM_MAP = {
|
|
31
31
|
darwin: { x64: 'darwin-x64', arm64: 'darwin-arm64' },
|
|
32
|
-
linux: { x64: 'linux-x64' },
|
|
32
|
+
linux: { x64: 'linux-x64', arm64: 'linux-arm64' },
|
|
33
33
|
win32: { x64: 'windows-x64' }
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -42,7 +42,7 @@ function getBinaryPath() {
|
|
|
42
42
|
const platformKey = PLATFORM_MAP[platform]?.[arch];
|
|
43
43
|
if (!platformKey) {
|
|
44
44
|
console.error(`Unsupported platform: ${platform}-${arch}`);
|
|
45
|
-
console.error('Supported: macOS (x64/arm64), Linux (x64), Windows (x64)');
|
|
45
|
+
console.error('Supported: macOS (x64/arm64), Linux (x64/arm64), Windows (x64)');
|
|
46
46
|
process.exit(1);
|
|
47
47
|
}
|
|
48
48
|
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/http-darwin-arm64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "HarnSpec HTTP Server binary for macOS ARM64",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/http-darwin-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "HarnSpec HTTP Server binary for macOS x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@harnspec/http-linux-arm64",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "HarnSpec HTTP Server binary for Linux ARM64",
|
|
5
|
+
"os": [
|
|
6
|
+
"linux"
|
|
7
|
+
],
|
|
8
|
+
"cpu": [
|
|
9
|
+
"arm64"
|
|
10
|
+
],
|
|
11
|
+
"main": "harnspec-http",
|
|
12
|
+
"files": [
|
|
13
|
+
"harnspec-http",
|
|
14
|
+
"postinstall.js"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"postinstall": "node postinstall.js"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT"
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Postinstall script to set execute permissions on the binary.
|
|
4
|
+
* npm doesn't preserve file permissions, so we need to set them after install.
|
|
5
|
+
*/
|
|
6
|
+
const { chmodSync } = require('fs');
|
|
7
|
+
const { join } = require('path');
|
|
8
|
+
|
|
9
|
+
const binaryPath = join(__dirname, 'harnspec-http');
|
|
10
|
+
|
|
11
|
+
try {
|
|
12
|
+
chmodSync(binaryPath, 0o755);
|
|
13
|
+
console.log('✓ Set execute permissions on harnspec-http binary');
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error('Warning: Could not set execute permissions:', err.message);
|
|
16
|
+
// Don't fail the install
|
|
17
|
+
}
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/http-linux-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "HarnSpec HTTP Server binary for Linux x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"linux"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/http-windows-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "HarnSpec HTTP Server binary for Windows x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"win32"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/http-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Rust HTTP server for HarnSpec UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -34,15 +34,16 @@
|
|
|
34
34
|
"LICENSE"
|
|
35
35
|
],
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=24"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"nodemon": "^3.1.11"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@harnspec/http-darwin-x64": "0.0.
|
|
44
|
-
"@harnspec/http-darwin-arm64": "0.0.
|
|
45
|
-
"@harnspec/http-linux-x64": "0.0.
|
|
46
|
-
"@harnspec/http-
|
|
43
|
+
"@harnspec/http-darwin-x64": "0.0.2",
|
|
44
|
+
"@harnspec/http-darwin-arm64": "0.0.2",
|
|
45
|
+
"@harnspec/http-linux-x64": "0.0.2",
|
|
46
|
+
"@harnspec/http-linux-arm64": "0.0.2",
|
|
47
|
+
"@harnspec/http-windows-x64": "0.0.2"
|
|
47
48
|
}
|
|
48
49
|
}
|