@antora/playbook-builder
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-rc.1
@@ -40,4 +40,4 @@ 'use strict' | ||
absSpecFilePath += '.json' | ||
} else if (fs.existsSync(absSpecFilePath + '.cson')) { | ||
absSpecFilePath += '.cson' | ||
} else if (fs.existsSync(absSpecFilePath + '.toml')) { | ||
absSpecFilePath += '.toml' | ||
} else { | ||
@@ -44,0 +44,0 @@ throw new Error('playbook file could not be resolved') |
'use strict' | ||
const convict = require('convict') | ||
const cson = require('cson-parser') | ||
const json = require('json5') | ||
const toml = require('@iarna/toml') | ||
const yaml = require('js-yaml') | ||
@@ -22,4 +22,4 @@ | ||
convict.addParser([ | ||
{ extension: 'cson', parse: cson.parse }, | ||
{ extension: 'json', parse: json.parse }, | ||
{ extension: 'toml', parse: toml.parse }, | ||
{ extension: 'yaml', parse: yaml.safeLoad }, | ||
@@ -30,3 +30,3 @@ { extension: 'yml', parse: yaml.safeLoad }, | ||
parse: () => { | ||
throw new Error('Unexpected playbook file type (must be yml, json, or cson') | ||
throw new Error('Unexpected playbook file type (must be yml, json, or toml') | ||
}, | ||
@@ -33,0 +33,0 @@ }, |
{ | ||
"name": "@antora/playbook-builder", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-rc.1", | ||
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.", | ||
@@ -19,5 +19,5 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@iarna/toml": "^2.2.1", | ||
"camelcase-keys": "^5.0.0", | ||
"convict": "^4.3.2", | ||
"cson-parser": "^3.0.0", | ||
"deep-freeze": "^0.0.1", | ||
@@ -24,0 +24,0 @@ "js-yaml": "^3.12.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12387
+ Added@iarna/toml@^2.2.1
+ Added@iarna/toml@2.2.5(transitive)
- Removedcson-parser@^3.0.0
- Removedcoffeescript@1.12.7(transitive)
- Removedcson-parser@3.0.0(transitive)