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 1.1.0 to 1.1.1

21

lib/commander/condense-help.js

@@ -6,3 +6,2 @@ 'use strict'

const helpInformation = Command.prototype.helpInformation
const indentation = ' '

@@ -13,3 +12,2 @@ // TODO include common options when outputting help for a (sub)command

.call(this)
.trimRight()
.split(/^/m)

@@ -20,9 +18,15 @@ .reduce((accum, line) => {

if (prevLine === undefined || !(prevLine === '\n' || prevLine.endsWith(':\n'))) accum.push(line)
} else if (line.startsWith(indentation + 'Usage: ') && this.parent) {
let ancestor = this
let commandCtx = []
while ((ancestor = ancestor.parent)) commandCtx.unshift(ancestor.name())
accum.push('Usage: ' + commandCtx.join(' ') + line.substr(8))
} else if (line.startsWith('Usage: ')) {
if (this.parent) {
let ancestor = this
let commandCtx = []
while ((ancestor = ancestor.parent)) commandCtx.unshift(ancestor.name())
accum.push('Usage: ' + commandCtx.join(' ') + line.substr(6))
} else {
accum.push(line)
}
} else if (line.startsWith(' -v,') || line.startsWith(' -h,')) {
accum.push(line.trimRight().replace(' output', ' Output') + '.\n')
} else {
accum.push(line.substr(indentation.length))
accum.push(line)
}

@@ -32,3 +36,2 @@ return accum

.join('')
.concat('\n')
}
{
"name": "@antora/cli",
"version": "1.1.0",
"version": "1.1.1",
"description": "The command line interface for Antora.",

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

"dependencies": {
"@antora/playbook-builder": "1.1.0",
"commander": "^2.17.1"
"@antora/playbook-builder": "1.1.1",
"commander": "^2.18.0"
},

@@ -25,0 +25,0 @@ "devDependencies": {

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