New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sergeant

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sergeant - npm Package Compare versions

Comparing version 28.0.0 to 28.1.0

7

help.js

@@ -75,10 +75,13 @@ const {green} = require('kleur')

: ''
let usage = (inSignature ? `[${addDashes(property)}]` : addDashes(property)) + val
let usage = inSignature ? '[' : ''
for (const [key, alias] of Object.entries(options)) {
if (alias !== property) continue
usage = `${inSignature ? `[${addDashes(key)}]` : addDashes(key)}, ${usage}`
usage += `${addDashes(key)}, `
}
usage += `${addDashes(property)}${inSignature ? ']' : ''}${val}`
if (usage.length > longest) {

@@ -85,0 +88,0 @@ longest = usage.length

{
"name": "sergeant",
"version": "28.0.0",
"version": "28.1.0",
"homepage": "https://github.com/erickmerchant/sergeant#README",

@@ -5,0 +5,0 @@ "bugs": {

@@ -74,3 +74,3 @@ const {red} = require('kleur')

if (vals != null && vals.length) {
if (vals?.length) {
if (definition.multiple) {

@@ -155,3 +155,3 @@ args[property] = args[property] != null ? [...args[property], ...vals] : vals

return definition != null && definition.multiple
return definition?.multiple ?? false
}).length > 0

@@ -158,0 +158,0 @@

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