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 3.0.3 to 3.1.0

4

lib/cli.js

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

const cli = require('./commander')
const convict = require('@antora/playbook-builder/lib/solitary-convict')
const convict = require('@antora/playbook-builder/lib/solitary-convict') // drop lib segment in Antora 4
const ospath = require('path')

@@ -156,3 +156,3 @@ const userRequire = require('@antora/user-require-helper')

const message = `error: unknown command '${name}'. See '${cli.name()} --help' for a list of commands.`
cli._displayError(1, 'commander.unknownCommand', message)
cli.error(message, { code: 'commander.unknownCommand', exitCode: 1 })
}

@@ -159,0 +159,0 @@ } else {

@@ -30,6 +30,8 @@ 'use strict'

const { arg, format, default: default_ } = value
const option = { name: arg, form: `--${arg}`, description: value.doc, format: format }
const option = { name: arg, form: `--${arg}`, description: value.doc, format }
if (Array.isArray(format)) {
option.form += ' <choice>'
option.choices = Object.defineProperty(format.slice(), 'map', { value: () => format })
const choices = format.slice()
const value = () => choices
Object.defineProperties((option.choices = choices), { map: { value }, slice: { value } })
} else if (format !== 'boolean') {

@@ -36,0 +38,0 @@ option.form += ` <${arg.substr(arg.lastIndexOf('-') + 1, arg.length)}>`

{
"name": "@antora/cli",
"version": "3.0.3",
"version": "3.1.0",
"description": "The command line interface for Antora.",

@@ -17,2 +17,9 @@ "license": "MPL-2.0",

"main": "lib/index.js",
"exports": {
".": "./lib/index.js",
"./package.json": "./package.json"
},
"imports": {
"#commander": "./lib/commander.js"
},
"bin": {

@@ -22,9 +29,9 @@ "antora": "bin/antora"

"dependencies": {
"@antora/logger": "3.0.3",
"@antora/playbook-builder": "3.0.3",
"@antora/logger": "3.1.0",
"@antora/playbook-builder": "3.1.0",
"@antora/user-require-helper": "~2.0",
"commander": "~8.3"
"commander": "~9.4"
},
"devDependencies": {
"@antora/site-publisher": "3.0.3",
"@antora/site-publisher": "3.1.0",
"@asciidoctor/core": "~2.2",

@@ -35,3 +42,3 @@ "convict": "~6.2",

"engines": {
"node": ">=12.21.0"
"node": ">=16.0.0"
},

@@ -38,0 +45,0 @@ "files": [

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