@kud/soap-cli 1.0.0-4 → 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/README.md +1 -1
- package/index.js +1 -0
- package/lib/index.js +7 -2
- package/package.json +8 -8
package/README.md
CHANGED
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
|
-
|
|
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
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "An app cleaner cli for macOS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/kud/soap.git"
|
|
18
|
+
"url": "git+https://github.com/kud/soap-cli.git"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [],
|
|
21
21
|
"author": "Erwann Mest <m@kud.io>",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/kud/soap/issues"
|
|
24
|
+
"url": "https://github.com/kud/soap-cli/issues"
|
|
25
25
|
},
|
|
26
|
-
"homepage": "https://github.com/kud/soap#readme",
|
|
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.
|
|
32
|
+
"inquirer": "9.2.23",
|
|
32
33
|
"signale": "1.4.0",
|
|
33
34
|
"trash": "8.1.1",
|
|
34
|
-
"zx": "
|
|
35
|
-
}
|
|
36
|
-
"devDependencies": {}
|
|
35
|
+
"zx": "8.1.3"
|
|
36
|
+
}
|
|
37
37
|
}
|