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

cmdline

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmdline - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

10

dist/Command.d.ts

@@ -80,12 +80,10 @@ import { ActionHandler, ActionList, ActionRequried } from "./Action";

* 定义动作处理函数
* 第一个参数,
* @param handler 处理函数
* - ActionHandler 的参数为 options 或 argv,执行时值将自动注入
* 第二个参数,可选三种情况
* @param required 匹配参数,如果指定必须满足才会执行 handler
* - 传入 false:不要求匹配任何参数,当前命令无论任何 options 或 argv 都将执行
* - 传入 Array:要求匹配 Array 指定的参数,只有匹配到了才执行
* - 省略:将自动要求按 ActionHandler 的参数进行匹配
* 返回值,
* - 如果返回 false ,将会阻止后续其他匹配的 ActionHandler 执行
* @param handler 处理函数
* @param required 匹配参数,如果指定必须满足才会执行 handler
* @returns
* 如果返回 false ,将会阻止后续其他匹配的 ActionHandler 执行
*/

@@ -92,0 +90,0 @@ action(handler: ActionHandler, required?: ActionRequried): this;

@@ -60,12 +60,10 @@ "use strict";

* 定义动作处理函数
* 第一个参数,
* @param handler 处理函数
* - ActionHandler 的参数为 options 或 argv,执行时值将自动注入
* 第二个参数,可选三种情况
* @param required 匹配参数,如果指定必须满足才会执行 handler
* - 传入 false:不要求匹配任何参数,当前命令无论任何 options 或 argv 都将执行
* - 传入 Array:要求匹配 Array 指定的参数,只有匹配到了才执行
* - 省略:将自动要求按 ActionHandler 的参数进行匹配
* 返回值,
* - 如果返回 false ,将会阻止后续其他匹配的 ActionHandler 执行
* @param handler 处理函数
* @param required 匹配参数,如果指定必须满足才会执行 handler
* @returns
* 如果返回 false ,将会阻止后续其他匹配的 ActionHandler 执行
*/

@@ -72,0 +70,0 @@ action(handler, required) {

2

package.json
{
"name": "cmdline",
"rawName": "cmdline",
"version": "3.0.1",
"version": "3.0.2",
"description": "cmdline is a process.argv parser",

@@ -6,0 +6,0 @@ "main": "./dist/index.js",

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