@polka-codes/runner 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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32736,7 +32736,7 @@ var {
|
|
|
32736
32736
|
Help
|
|
32737
32737
|
} = import__.default;
|
|
32738
32738
|
// package.json
|
|
32739
|
-
var version = "0.8.
|
|
32739
|
+
var version = "0.8.6";
|
|
32740
32740
|
|
|
32741
32741
|
// src/runner.ts
|
|
32742
32742
|
import { execSync } from "node:child_process";
|
|
@@ -42129,6 +42129,14 @@ var getStringArray = (args2, name2, defaultValue) => {
|
|
|
42129
42129
|
if (ret === "") {
|
|
42130
42130
|
return [];
|
|
42131
42131
|
}
|
|
42132
|
+
if (Array.isArray(ret)) {
|
|
42133
|
+
for (const item of ret) {
|
|
42134
|
+
if (typeof item !== "string") {
|
|
42135
|
+
throw new Error(`Invalid argument type: ${name2} ${item}`);
|
|
42136
|
+
}
|
|
42137
|
+
}
|
|
42138
|
+
return ret;
|
|
42139
|
+
}
|
|
42132
42140
|
if (typeof ret !== "string") {
|
|
42133
42141
|
throw new Error(`Invalid argument type: ${name2} ${ret}`);
|
|
42134
42142
|
}
|