@kud/soap-cli 1.0.0-5 → 1.0.0

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/index.js CHANGED
@@ -32,6 +32,7 @@ try {
32
32
  const appName = isCask
33
33
  ? await appNameFromCaskName(param)
34
34
  : appNameFromPath(param)
35
+
35
36
  const bundleId = await getBundleIdentifier(appName)
36
37
  const _appFiles = await findAppFiles(appName, bundleId)
37
38
  const appFiles = isCask ? _appFiles.slice(1) : _appFiles
package/lib/index.js CHANGED
@@ -120,10 +120,15 @@ export const appNameFromCaskName = async (caskName) => {
120
120
  throw new Error("Cask data not available.")
121
121
  }
122
122
 
123
- return caskData.artifacts?.[0]?.app?.[0] || null
123
+ for (const artifact of caskData.artifacts) {
124
+ if (artifact.app) {
125
+ return artifact.app[0]
126
+ }
127
+ }
128
+
129
+ return null
124
130
  } catch (error) {
125
131
  console.error(`Error fetching app name for cask ${caskName}:`, error)
126
-
127
132
  return null
128
133
  }
129
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/soap-cli",
3
- "version": "1.0.0-5",
3
+ "version": "1.0.0",
4
4
  "description": "An app cleaner cli for macOS",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -26,12 +26,12 @@
26
26
  "homepage": "https://github.com/kud/soap-cli#readme",
27
27
  "type": "module",
28
28
  "dependencies": {
29
+ "@kud/soap-cli": "1.0.0-5",
29
30
  "chalk": "5.3.0",
30
31
  "del": "7.1.0",
31
- "inquirer": "9.2.11",
32
+ "inquirer": "9.2.23",
32
33
  "signale": "1.4.0",
33
34
  "trash": "8.1.1",
34
- "zx": "7.2.3"
35
- },
36
- "devDependencies": {}
35
+ "zx": "8.1.3"
36
+ }
37
37
  }