deadbranch 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/README.md CHANGED
@@ -38,7 +38,7 @@ cargo install deadbranch
38
38
 
39
39
  ### Homebrew (macOS/Linux)
40
40
  ```bash
41
- brew install armgabrielyan/deadbranch/deadbranch
41
+ brew install armgabrielyan/tap/deadbranch
42
42
  ```
43
43
 
44
44
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deadbranch",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Clean up stale git branches safely",
5
5
  "repository": {
6
6
  "type": "git",
@@ -80,11 +80,11 @@ function download(url) {
80
80
  */
81
81
  function extractTarGz(buffer, destDir) {
82
82
  const tarPath = path.join(os.tmpdir(), 'deadbranch.tar');
83
-
83
+
84
84
  // Decompress gzip
85
85
  const decompressed = zlib.gunzipSync(buffer);
86
86
  fs.writeFileSync(tarPath, decompressed);
87
-
87
+
88
88
  // Extract tar
89
89
  execSync(`tar -xf "${tarPath}" -C "${destDir}"`, { stdio: 'inherit' });
90
90
  fs.unlinkSync(tarPath);
@@ -96,7 +96,7 @@ function extractTarGz(buffer, destDir) {
96
96
  function extractZip(buffer, destDir) {
97
97
  const zipPath = path.join(os.tmpdir(), 'deadbranch.zip');
98
98
  fs.writeFileSync(zipPath, buffer);
99
-
99
+
100
100
  // Use PowerShell to extract
101
101
  execSync(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${destDir}' -Force"`, { stdio: 'inherit' });
102
102
  fs.unlinkSync(zipPath);
@@ -135,7 +135,7 @@ async function install() {
135
135
  const destBinary = path.join(binDir, BINARY_NAME + binaryExt);
136
136
 
137
137
  fs.copyFileSync(srcBinary, destBinary);
138
-
138
+
139
139
  // Make executable on Unix
140
140
  if (os.platform() !== 'win32') {
141
141
  fs.chmodSync(destBinary, 0o755);