cabloy 5.1.15 → 5.1.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.1.16 (2026-05-29)
4
+
5
+ ## 5.1.18
6
+
7
+ ### Bug Fixes
8
+
9
+ - Correct extractTarball exit code check in upgrade script
10
+
3
11
  ## 5.1.15
4
12
 
5
13
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cabloy",
3
- "version": "5.1.15",
3
+ "version": "5.1.16",
4
4
  "description": "A Node.js fullstack framework",
5
5
  "keywords": [
6
6
  "cabloy",
@@ -129,11 +129,11 @@ async function downloadTarball(tarballUrl: string): Promise<string> {
129
129
 
130
130
  async function extractTarball(tarballPath: string, targetDir: string): Promise<void> {
131
131
  mkdirSync(targetDir, { recursive: true });
132
- const exitCode = execSync(`tar --strip-components=1 -xzf "${tarballPath}" -C "${targetDir}"`, {
133
- stdio: 'pipe',
134
- });
135
- // @ts-ignore
136
- if (exitCode !== 0) {
132
+ try {
133
+ execSync(`tar --strip-components=1 -xzf "${tarballPath}" -C "${targetDir}"`, {
134
+ stdio: 'pipe',
135
+ });
136
+ } catch {
137
137
  throw new Error('Failed to extract tarball');
138
138
  }
139
139
  }