@kud/soap-cli 3.0.11 → 3.0.12
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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -176,7 +176,8 @@ var getCaskInfo = async (caskName) => {
|
|
|
176
176
|
let appName = null;
|
|
177
177
|
for (const artifact of caskData.artifacts) {
|
|
178
178
|
if (artifact.app) {
|
|
179
|
-
|
|
179
|
+
const raw = artifact.app[0] || null;
|
|
180
|
+
appName = raw ? raw.replace(/\.app$/i, "") : null;
|
|
180
181
|
break;
|
|
181
182
|
}
|
|
182
183
|
}
|
|
@@ -244,7 +245,7 @@ var param = rawArgs.find((a) => !a.startsWith("-"));
|
|
|
244
245
|
var yes = rawArgs.includes("--yes") || rawArgs.includes("-y");
|
|
245
246
|
var yesDangerously = rawArgs.includes("--yes-dangerously");
|
|
246
247
|
if (firstArg === "--version" || firstArg === "-v") {
|
|
247
|
-
console.log("3.0.
|
|
248
|
+
console.log("3.0.12");
|
|
248
249
|
process.exit(0);
|
|
249
250
|
}
|
|
250
251
|
if (!firstArg || firstArg === "--help" || firstArg === "-h") {
|