Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@boost/args

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/args - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

### 1.2.1 - 2020-03-22
#### ⚙️ Types
- Update `Command` usage to support arrays. ([ad04465](https://github.com/milesj/boost/commit/ad04465))
**Note:** Version bump only for package @boost/args
## 1.2.0 - 2020-02-04

@@ -8,0 +20,0 @@

5

lib/parse.js

@@ -21,3 +21,4 @@ "use strict";

// TERMINOLOGY
// arg - All types of arguments passed on the command line, separated by a space.
// command line - The entire line that encompasses the following parts.
// arg - Each type of argument (or part) passed on the command line, separated by a space.
// command - An optional "command" being ran that allows for branching functionality.

@@ -29,3 +30,3 @@ // Sub-commands are separated with ":".

// Supports any raw value, and enforces a defined order.
// rest arg - All remaining arguments that appear after a stand alone "--".
// rest - All remaining arguments that appear after a stand alone "--".
// Usually passed to subsequent scripts.

@@ -32,0 +33,0 @@ // scope - Argument currently being parsed.

9

lib/types.d.ts

@@ -45,11 +45,4 @@ export declare type Argv = string[];

export interface Command extends Config {
usage?: string;
usage?: string | string[];
}
export interface Usage extends Command {
commands?: {
[name: string]: Usage;
};
options?: OptionConfigMap;
params?: ParamConfigList;
}
export declare type InferArgType<T> = T extends boolean ? 'boolean' : T extends number | number[] ? 'number' : 'string';

@@ -56,0 +49,0 @@ export interface Arg<T> extends Config {

{
"name": "@boost/args",
"version": "1.2.0",
"version": "1.2.1",
"description": "A type-safe and convention based argument parsing library, with strict validation checks.",

@@ -29,3 +29,3 @@ "keywords": [

},
"gitHead": "3c0a3aabc8de08093f34daaa4fbad3b42a7609db"
"gitHead": "fe9903f8a80ae0ad19cc9fd9e51ccbd47e94356e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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