@polka-codes/cli 0.8.5 → 0.8.6
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31550,7 +31550,7 @@ var {
|
|
|
31550
31550
|
Help
|
|
31551
31551
|
} = import__.default;
|
|
31552
31552
|
// package.json
|
|
31553
|
-
var version = "0.8.
|
|
31553
|
+
var version = "0.8.6";
|
|
31554
31554
|
|
|
31555
31555
|
// ../core/src/AiService/AiServiceBase.ts
|
|
31556
31556
|
class AiServiceBase {
|
|
@@ -40953,6 +40953,14 @@ var getStringArray = (args2, name2, defaultValue) => {
|
|
|
40953
40953
|
if (ret === "") {
|
|
40954
40954
|
return [];
|
|
40955
40955
|
}
|
|
40956
|
+
if (Array.isArray(ret)) {
|
|
40957
|
+
for (const item of ret) {
|
|
40958
|
+
if (typeof item !== "string") {
|
|
40959
|
+
throw new Error(`Invalid argument type: ${name2} ${item}`);
|
|
40960
|
+
}
|
|
40961
|
+
}
|
|
40962
|
+
return ret;
|
|
40963
|
+
}
|
|
40956
40964
|
if (typeof ret !== "string") {
|
|
40957
40965
|
throw new Error(`Invalid argument type: ${name2} ${ret}`);
|
|
40958
40966
|
}
|