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 10.0.1 to 10.0.2

2

package.json
{
"name": "sergeant",
"version": "10.0.1",
"version": "10.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "code/main.js",

@@ -9,21 +9,13 @@ # sergeant

var app = require('sergeant')()
var assert = require('assert')
app.command('command1')
.parameter('title', function (val) {
// validate parameters and options by throwing exceptions
assert.ok(typeof val === 'string')
.parameter('title', 'the title')
.option('option1', 'option 1')
.action(function (args) {
assert.ok(args.get('title'), 'the title is required')
return val + '...' // transform them
})
.option('option1', function (val) {
// validate options and options by throwing exceptions
assert.ok(typeof val === 'string')
return Promise.resolve(true)
})
return val + '...' // transform them
})
.action(function (args) {
return Promise.resolve(true)
})
```
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