@antora/playbook-builder 3.1.10 → 3.1.12

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.
@@ -108,15 +108,15 @@ function registerFormats (convict) {
108
108
  },
109
109
  coerce: (val, config, name) => {
110
110
  const accum = config?.has(name) ? config.get(name) : []
111
- val.split(',').forEach((v) => {
112
- if (~accum.indexOf(v)) return
111
+ for (const v of val.split(',')) {
112
+ if (~accum.indexOf(v)) continue
113
113
  const match = accum.find((it) => it.constructor === Object && it.id === v)
114
114
  if (match) {
115
115
  if (match.enabled === false) match.enabled = true
116
116
  } else {
117
117
  accum.push(v)
118
118
  }
119
- })
119
+ }
120
120
  return accum
121
121
  },
122
122
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/playbook-builder",
3
- "version": "3.1.10",
3
+ "version": "3.1.12",
4
4
  "description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",