@antora/playbook-builder 3.0.0-beta.4 → 3.0.0-beta.5

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.
@@ -22,8 +22,8 @@ function registerParsers (convict) {
22
22
  convict.addParser([
23
23
  { extension: 'json', parse: json.parse },
24
24
  { extension: 'toml', parse: toml.parse },
25
- { extension: 'yaml', parse: yaml.load },
26
- { extension: 'yml', parse: yaml.load },
25
+ { extension: 'yaml', parse: (source) => yaml.load(source, { schema: yaml.CORE_SCHEMA }) },
26
+ { extension: 'yml', parse: (source) => yaml.load(source, { schema: yaml.CORE_SCHEMA }) },
27
27
  {
28
28
  extension: '*',
29
29
  parse: () => {
@@ -46,7 +46,7 @@ function registerFormats (convict) {
46
46
  ARGS_SCANNER_RX.lastIndex = 0
47
47
  while ((match = ARGS_SCANNER_RX.exec(val))) {
48
48
  const [, k, v] = match
49
- if (k) accum[k] = v ? (v === '-' ? '-' : yaml.load(v)) : ''
49
+ if (k) accum[k] = v ? (v === '-' ? '-' : yaml.load(v, { schema: yaml.CORE_SCHEMA })) : ''
50
50
  }
51
51
  return accum
52
52
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/playbook-builder",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
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)",
@@ -36,6 +36,5 @@
36
36
  "static site",
37
37
  "web publishing"
38
38
  ],
39
- "gitHead": "8a142499e9f1a9e0631777796e06dd6c010d3a90",
40
- "readmeFilename": "README.md"
39
+ "gitHead": "a13d03df41654d4deb78211a5a54953ce2a35fb8"
41
40
  }