Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antora/playbook-builder

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/playbook-builder - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

10

lib/build-playbook.js

@@ -71,11 +71,3 @@ 'use strict'

}
// FIXME would be nice if camelCaseKeys could exclude a subtree (e.g., asciidoc)
// see https://github.com/sindresorhus/camelcase-keys/issues/23
let asciidocData
if ('asciidoc' in schema.properties) {
asciidocData = data.asciidoc
delete data.asciidoc
}
const playbook = camelCaseKeys(data, { deep: true })
if (asciidocData) playbook.asciidoc = asciidocData
const playbook = camelCaseKeys(data, { deep: true, stopPaths: ['asciidoc'] })
playbook.dir = playbook.playbook ? ospath.dirname((playbook.file = playbook.playbook)) : process.cwd()

@@ -82,0 +74,0 @@ delete playbook.playbook

10

lib/config/schema.js

@@ -30,2 +30,7 @@ 'use strict'

},
robots: {
doc: 'Controls generation of robots.txt if site.url is set (allowed values: allow, disallow, or custom string).',
format: String,
default: undefined,
},
//root: {

@@ -68,2 +73,7 @@ // doc: 'The name of the component to use as the root of the site.',

},
edit_url: {
doc: 'The default edit URL setting when no specific setting is provided.',
format: 'boolean-or-string',
default: true,
},
sources: {

@@ -70,0 +80,0 @@ doc: 'The list of git repositories + branch patterns to use.',

@@ -54,2 +54,10 @@ 'use strict'

convict.addFormat({
name: 'boolean-or-string',
validate: (val) => {
if (!(val == null || typeof val === 'string' || val instanceof String || typeof val === 'boolean')) {
throw new Error('must be a boolean or string')
}
},
})
convict.addFormat({
name: 'dir-or-virtual-files',

@@ -56,0 +64,0 @@ validate: (val) => {

{
"name": "@antora/playbook-builder",
"version": "2.1.2",
"version": "2.2.0",
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.",

@@ -20,4 +20,4 @@ "license": "MPL-2.0",

"@iarna/toml": "~2.2",
"camelcase-keys": "~6.0",
"convict": "~5.1",
"camelcase-keys": "~6.1",
"convict": "~5.2",
"deep-freeze-node": "~1.1",

@@ -24,0 +24,0 @@ "js-yaml": "~3.13",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc