puter-cli 1.5.4 → 1.5.5
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 +6 -0
- package/package.json +1 -1
- package/src/commands/sites.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v1.5.5](https://github.com/HeyPuter/puter-cli/compare/v1.5.4...v1.5.5)
|
|
8
|
+
|
|
9
|
+
- fix: improve error handling [`d1fa91d`](https://github.com/HeyPuter/puter-cli/commit/d1fa91db09f08238c6be684ffe4688a0064f06cd)
|
|
10
|
+
|
|
7
11
|
#### [v1.5.4](https://github.com/HeyPuter/puter-cli/compare/v1.5.3...v1.5.4)
|
|
8
12
|
|
|
13
|
+
> 13 February 2025
|
|
14
|
+
|
|
9
15
|
- Remove "subdomain deletion" under Known Issues in README.md [`#8`](https://github.com/HeyPuter/puter-cli/pull/8)
|
|
10
16
|
- dev: add last-error command, context, and modules [`#7`](https://github.com/HeyPuter/puter-cli/pull/7)
|
|
11
17
|
- fix: delete a subdomain error message [`ed676dc`](https://github.com/HeyPuter/puter-cli/commit/ed676dc9d1364fabf242098e142a84c305dff177)
|
package/package.json
CHANGED
package/src/commands/sites.js
CHANGED
|
@@ -123,9 +123,12 @@ export async function infoSite(args = []) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
const data = await response.json();
|
|
126
|
-
|
|
126
|
+
if (Object.keys(data).length==0) {
|
|
127
|
+
console.log(chalk.green(`Site ID: "${uuid}" has been deleted.`));
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
127
130
|
|
|
128
|
-
console.log(chalk.
|
|
131
|
+
console.log(chalk.yellow(`Site ID: "${uuid}" should be deleted.`));
|
|
129
132
|
} catch (error) {
|
|
130
133
|
console.error(chalk.red('Error deleting site:'), error.message);
|
|
131
134
|
return false;
|