@jarkkojs/goosedump 0.10.13 → 0.10.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.
- package/README.md +2 -2
- package/bin/goosedump.js +13 -18
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ It builds on ideas from [`lllyasviel/VCC`](https://github.com/lllyasviel/VCC).
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
Prebuilt binaries are available for Linux x64, macOS arm64, and Windows x64:
|
|
11
|
+
Prebuilt binaries are available for Linux x64 and arm64, macOS arm64, and Windows x64:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
npm install --global @jarkkojs/goosedump
|
|
@@ -92,7 +92,7 @@ cargo clippy --all-targets -- -D warnings
|
|
|
92
92
|
cargo fmt --check
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
The published Linux x64
|
|
95
|
+
The published Linux x64 and arm64 binaries are static glibc PIEs.
|
|
96
96
|
|
|
97
97
|
## License
|
|
98
98
|
|
package/bin/goosedump.js
CHANGED
|
@@ -7,25 +7,20 @@ const fs = require('node:fs');
|
|
|
7
7
|
const path = require('node:path');
|
|
8
8
|
|
|
9
9
|
function resolveBinary() {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
case 'win32-x64':
|
|
23
|
-
packageName = '@jarkkojs/goosedump-win32-x64';
|
|
24
|
-
binaryName = 'goosedump.exe';
|
|
25
|
-
break;
|
|
26
|
-
default:
|
|
27
|
-
throw new Error(`unsupported platform architecture: ${target}`);
|
|
10
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
11
|
+
const packages = {
|
|
12
|
+
'darwin-arm64': '@jarkkojs/goosedump-darwin-arm64',
|
|
13
|
+
'linux-arm64': '@jarkkojs/goosedump-linux-arm64',
|
|
14
|
+
'linux-x64': '@jarkkojs/goosedump-linux-x64',
|
|
15
|
+
'win32-x64': '@jarkkojs/goosedump-win32-x64',
|
|
16
|
+
};
|
|
17
|
+
const packageName = packages[platform];
|
|
18
|
+
if (!packageName) {
|
|
19
|
+
throw new Error(
|
|
20
|
+
`unsupported platform: ${platform}; supported platforms: ${Object.keys(packages).join(', ')}`
|
|
21
|
+
);
|
|
28
22
|
}
|
|
23
|
+
const binaryName = process.platform === 'win32' ? 'goosedump.exe' : 'goosedump';
|
|
29
24
|
|
|
30
25
|
let packageDir;
|
|
31
26
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarkkojs/goosedump",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14",
|
|
4
4
|
"description": "Coding agent context data browser",
|
|
5
5
|
"license": "Apache-2.0 AND LGPL-2.1-or-later",
|
|
6
6
|
"homepage": "https://github.com/jarkkojs/goosedump#readme",
|
|
@@ -22,9 +22,10 @@
|
|
|
22
22
|
"THIRD_PARTY_NOTICES.txt"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@jarkkojs/goosedump-darwin-arm64": "0.10.
|
|
26
|
-
"@jarkkojs/goosedump-linux-
|
|
27
|
-
"@jarkkojs/goosedump-
|
|
25
|
+
"@jarkkojs/goosedump-darwin-arm64": "0.10.14",
|
|
26
|
+
"@jarkkojs/goosedump-linux-arm64": "0.10.14",
|
|
27
|
+
"@jarkkojs/goosedump-linux-x64": "0.10.14",
|
|
28
|
+
"@jarkkojs/goosedump-win32-x64": "0.10.14"
|
|
28
29
|
},
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"access": "public"
|