boxwood 0.70.2 → 0.71.1
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/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -438,6 +438,8 @@ function classes() {
|
|
|
438
438
|
const type = typeof arg
|
|
439
439
|
if (type === "string") {
|
|
440
440
|
array.push(arg)
|
|
441
|
+
} else if (Array.isArray(arg)) {
|
|
442
|
+
array.push(classes(...arg))
|
|
441
443
|
} else if (type === "object") {
|
|
442
444
|
for (const key in arg) {
|
|
443
445
|
if (arg[key]) {
|
|
@@ -453,7 +455,7 @@ const yaml = {
|
|
|
453
455
|
load() {
|
|
454
456
|
const path = join(...arguments)
|
|
455
457
|
const file = path.endsWith(".yaml") ? path : join(path, "index.yaml")
|
|
456
|
-
const content = readFileSync(
|
|
458
|
+
const content = readFileSync(file, "utf8")
|
|
457
459
|
return YAML.parse(content)
|
|
458
460
|
},
|
|
459
461
|
}
|