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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puter-cli",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Command line interface for Puter cloud platform",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -123,9 +123,12 @@ export async function infoSite(args = []) {
123
123
  }
124
124
 
125
125
  const data = await response.json();
126
- console.log(data);
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.green(`Site ID: "${uuid}" has been deleted.`));
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;