@antora/playbook-builder
Advanced tools
Comparing version 3.2.0-alpha.4 to 3.2.0-alpha.5
@@ -5,4 +5,4 @@ 'use strict' | ||
const defaultSchema = require('./config/schema') | ||
const fs = require('fs') | ||
const ospath = require('path') | ||
const fs = require('node:fs') | ||
const ospath = require('node:path') | ||
@@ -9,0 +9,0 @@ /** |
@@ -20,3 +20,4 @@ 'use strict' | ||
'A list of extensions that listen for lifecycle events. ' + | ||
'Each extension is specified as a require request string or an object with a require key.', | ||
'Each extension is specified as a require request string or an object with a require key. ' + | ||
'May be specified multiple times.', | ||
format: 'require-array', | ||
@@ -173,2 +174,7 @@ default: [], | ||
}, | ||
fetch_depth: { | ||
doc: 'Preferred number of commits to fetch from remote repository. 0 indicates full history.', | ||
format: 'int', | ||
default: 1, | ||
}, | ||
plugins: { | ||
@@ -175,0 +181,0 @@ credential_manager: { |
@@ -57,4 +57,11 @@ 'use strict' | ||
while ((match = scanner.exec(val))) { | ||
const [, k, v] = match | ||
if (k) accum[k] = v ? (v === '-' ? '-' : yaml.load(v, { schema: yaml.CORE_SCHEMA })) : '' | ||
const [, k, v = ''] = match | ||
if (!k) continue | ||
let parsed = v | ||
if (parsed && parsed !== '-') { | ||
try { | ||
parsed = yaml.load(v, { schema: yaml.CORE_SCHEMA }) | ||
} catch {} | ||
} | ||
accum[k] = parsed | ||
} | ||
@@ -61,0 +68,0 @@ return accum |
{ | ||
"name": "@antora/playbook-builder", | ||
"version": "3.2.0-alpha.4", | ||
"version": "3.2.0-alpha.5", | ||
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.", | ||
@@ -32,3 +32,3 @@ "license": "MPL-2.0", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "files": [ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
24593
651
2