puter-cli 1.1.2 → 1.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.
Files changed (2) hide show
  1. package/commands/apps.js +8 -0
  2. package/package.json +1 -1
package/commands/apps.js CHANGED
@@ -317,7 +317,15 @@ export async function updateApp(args = []) {
317
317
  // Step 2: Find the path from subdomain
318
318
  const subdomains = await getSubdomains();
319
319
  const appSubdomain = subdomains.result.find(sd => sd.root_dir?.dirname?.endsWith(appUid));
320
+ if (!appSubdomain){
321
+ console.error(chalk.red(`Sorry! We could not find the subdomain for ${chalk.cyan(name)} application.`));
322
+ return;
323
+ }
320
324
  const subdomainDir = appSubdomain['root_dir']['path'];
325
+ if (!subdomainDir){
326
+ console.error(chalk.red(`Sorry! We could not find the path for ${chalk.cyan(name)} application.`));
327
+ return;
328
+ }
321
329
 
322
330
  // Step 3: List files in the current "remoteDir" then copy them to the "subdomainDir"
323
331
  const files = await listRemoteFiles(remoteDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puter-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Command line interface for Puter cloud platform",
5
5
  "main": "index.js",
6
6
  "bin": {