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

@oclif/parser

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/parser - npm Package Compare versions

Comparing version 3.4.1 to 3.5.0

8

CHANGELOG.md

@@ -0,1 +1,9 @@

<a name="3.5.0"></a>
# [3.5.0](https://github.com/oclif/parser/compare/d1b77f1c20d7a1263e2222728400f6c3b91d3341...v3.5.0) (2018-06-01)
### Features
* Handle flags with multiple inputs without the flag before each input ([#25](https://github.com/oclif/parser/issues/25)) ([c636d74](https://github.com/oclif/parser/commit/c636d74))
<a name="3.4.1"></a>

@@ -2,0 +10,0 @@ ## [3.4.1](https://github.com/oclif/parser/compare/a24c135b91d1902ad9d50636444dc2c14d98c25e...v3.4.1) (2018-05-31)

3

lib/errors.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const errors_1 = require("@oclif/errors");
const deps_1 = require("./deps");
const deps_1 = tslib_1.__importDefault(require("./deps"));
var errors_2 = require("@oclif/errors");

@@ -6,0 +7,0 @@ exports.CLIError = errors_2.CLIError;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const deps_1 = require("./deps");
const tslib_1 = require("tslib");
const deps_1 = tslib_1.__importDefault(require("./deps"));
const m = deps_1.default()

@@ -5,0 +6,0 @@ .add('chalk', () => require('chalk'))

"use strict";
// tslint:disable interface-over-type-literal
Object.defineProperty(exports, "__esModule", { value: true });
const args = require("./args");
const tslib_1 = require("tslib");
const args = tslib_1.__importStar(require("./args"));
exports.args = args;
const parse_1 = require("./parse");
const flags = require("./flags");
const flags = tslib_1.__importStar(require("./flags"));
exports.flags = flags;
var help_1 = require("./help");
exports.flagUsages = help_1.flagUsages;
const deps_1 = require("./deps");
const deps_1 = tslib_1.__importDefault(require("./deps"));
const m = deps_1.default()

@@ -13,0 +14,0 @@ .add('validate', () => require('./validate').validate);

@@ -39,2 +39,3 @@ import { Arg } from './args';

private readonly context;
private currentFlag?;
constructor(input: T);

@@ -41,0 +42,0 @@ parse(): {

"use strict";
// tslint:disable interface-over-type-literal
Object.defineProperty(exports, "__esModule", { value: true });
const deps_1 = require("./deps");
const tslib_1 = require("tslib");
const deps_1 = tslib_1.__importDefault(require("./deps"));
const m = deps_1.default()

@@ -63,2 +64,3 @@ .add('errors', () => require('./errors'))

if (flag.type === 'option') {
this.currentFlag = flag;
let input;

@@ -99,2 +101,6 @@ if (long || arg.length < 3) {

}
if (parsingFlags && this.currentFlag && this.currentFlag.multiple) {
this.raw.push({ type: 'flag', flag: this.currentFlag.name, input });
continue;
}
// not a flag, parse as arg

@@ -101,0 +107,0 @@ const arg = this.input.args[this._argTokens.length];

{
"name": "@oclif/parser",
"description": "arg and flag parser for oclif",
"version": "3.4.1",
"version": "3.5.0",
"author": "Jeff Dickey @jdxcode",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/parser/issues",

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