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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. 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(path, "utf8")
458
+ const content = readFileSync(file, "utf8")
457
459
  return YAML.parse(content)
458
460
  },
459
461
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boxwood",
3
- "version": "0.70.2",
3
+ "version": "0.71.1",
4
4
  "description": "Compile HTML templates into JS",
5
5
  "main": "index.js",
6
6
  "scripts": {