@polka-codes/cli-shared 0.8.4 → 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 +8 -0
- 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
|
}
|