@antora/playbook-builder 3.1.0 → 3.2.0-alpha.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.
@@ -264,7 +264,9 @@ module.exports = {
264
264
  {
265
265
  get (target, property) {
266
266
  if (property !== 'default') return target[property]
267
- return process.env.CI === 'true' || process.stdout.isTTY ? 'pretty' : 'json'
267
+ return process.env.CI === 'true' || (process.env.IS_TTY || String(process.stdout.isTTY)) === 'true'
268
+ ? 'pretty'
269
+ : 'json'
268
270
  },
269
271
  }
270
272
  ),
@@ -151,6 +151,7 @@ function registerFormats (convict) {
151
151
  }
152
152
  if (~parsedUrl.pathname.indexOf('%20')) throw new Error('pathname segment must not contain spaces')
153
153
  },
154
+ coerce: (val) => (val.length > 1 && val.charAt(val.length - 1) === '/' ? val.slice(0, -1) : val),
154
155
  })
155
156
  }
156
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/playbook-builder",
3
- "version": "3.1.0",
3
+ "version": "3.2.0-alpha.1",
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)",