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

@antora/cli

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/cli - npm Package Compare versions

Comparing version 2.3.4 to 3.0.0-alpha.1

2

lib/cli.js

@@ -50,3 +50,3 @@ #!/usr/bin/env node

.option('-r, --require <library>', 'Require library (aka node module) or script before executing command.')
.on('option:require', (requirePath) => (cli.requirePaths = (cli.requirePaths || []).concat(requirePath)))
.on('option:require', (requirePath) => (cli.requirePaths = [...(cli.requirePaths || []), requirePath]))
.option('--stacktrace', 'Print the stacktrace to the console if the application fails.')

@@ -53,0 +53,0 @@

@@ -7,3 +7,3 @@ 'use strict'

let exclude = opts.exclude
if (exclude && !Array.isArray(exclude)) exclude = Array(exclude)
if (exclude && !Array.isArray(exclude)) exclude = [exclude]
getOptions(convictConfig).forEach((option) => {

@@ -20,7 +20,6 @@ if (!(exclude && exclude.includes(option.name))) this.option(option.form, option.description, option.default)

function collectOptions (props, options = [], context = undefined) {
function collectOptions (props, context = undefined) {
return Object.entries(props).reduce((accum, [key, value]) => {
const path = context ? `${context}.${key}` : key
if ('_cvtProperties' in value) {
return collectOptions(value._cvtProperties, accum, path)
accum.push(...collectOptions(value._cvtProperties, context ? `${context}.${key}` : key))
} else if ('arg' in value) {

@@ -41,7 +40,6 @@ const { arg, format, default: default_ } = value

}
return accum.concat(option)
} else {
return accum
accum.push(option)
}
}, options)
return accum
}, [])
}
{
"name": "@antora/cli",
"version": "2.3.4",
"version": "3.0.0-alpha.1",
"description": "The command line interface for Antora.",

@@ -21,13 +21,12 @@ "license": "MPL-2.0",

"dependencies": {
"@antora/playbook-builder": "2.3.4",
"@antora/playbook-builder": "3.0.0-alpha.1",
"commander": "~6.1"
},
"devDependencies": {
"@antora/site-publisher": "2.3.4",
"@antora/site-publisher": "3.0.0-alpha.1",
"convict": "~6.0",
"fs-extra": "~8.1",
"kapok-js": "~0.10"
},
"engines": {
"node": ">=8.11.0"
"node": ">=10.17.0"
},

@@ -46,3 +45,3 @@ "files": [

],
"gitHead": "5a40191c970ece6baecbd1a3a7a599d7161351a9"
"gitHead": "337ff6d2ed11e1f4d0a8ef993ddc8eaac7a73e9f"
}
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