@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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. 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.5";
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",