@lambdacurry/arbor 0.4.31 → 0.4.32
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/arbor.js +9 -3
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -16958,7 +16958,8 @@ function buildInput(inputSchema, flags) {
|
|
|
16958
16958
|
break;
|
|
16959
16959
|
}
|
|
16960
16960
|
case "array": {
|
|
16961
|
-
const
|
|
16961
|
+
const repeated = Array.isArray(raw);
|
|
16962
|
+
const tokens = repeated ? raw : [String(raw)];
|
|
16962
16963
|
const out = [];
|
|
16963
16964
|
for (const token of tokens) {
|
|
16964
16965
|
const text3 = String(token).trim();
|
|
@@ -16973,8 +16974,13 @@ function buildInput(inputSchema, flags) {
|
|
|
16973
16974
|
throw new UsageError(`--${spec.flag} looks like JSON but failed to parse — check the quoting`);
|
|
16974
16975
|
}
|
|
16975
16976
|
}
|
|
16976
|
-
|
|
16977
|
-
|
|
16977
|
+
if (repeated) {
|
|
16978
|
+
if (text3)
|
|
16979
|
+
out.push(text3);
|
|
16980
|
+
} else {
|
|
16981
|
+
for (const part of text3.split(",").map((s) => s.trim()).filter(Boolean))
|
|
16982
|
+
out.push(part);
|
|
16983
|
+
}
|
|
16978
16984
|
}
|
|
16979
16985
|
input[spec.field] = out;
|
|
16980
16986
|
break;
|
package/package.json
CHANGED