@polka-codes/cli-shared 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 +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36863,6 +36863,14 @@ var getStringArray = (args2, name2, defaultValue) => {
36863
36863
  if (ret === "") {
36864
36864
  return [];
36865
36865
  }
36866
+ if (Array.isArray(ret)) {
36867
+ for (const item of ret) {
36868
+ if (typeof item !== "string") {
36869
+ throw new Error(`Invalid argument type: ${name2} ${item}`);
36870
+ }
36871
+ }
36872
+ return ret;
36873
+ }
36866
36874
  if (typeof ret !== "string") {
36867
36875
  throw new Error(`Invalid argument type: ${name2} ${ret}`);
36868
36876
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli-shared",
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",