Comparing version 2.0.1 to 2.0.2
@@ -5,3 +5,3 @@ 'use strict'; | ||
CoaParam = require('./coaparam'), | ||
Color = require('./color'); | ||
chalk = require('chalk'); | ||
@@ -49,5 +49,5 @@ /** | ||
res.push(Color('lpurple', this._name.toUpperCase()), ' : ', this._title); | ||
res.push(chalk.magentaBright(this._name.toUpperCase()), ' : ', this._title); | ||
this._req && res.push(' ', Color('lred', '(required)')); | ||
this._req && res.push(' ', chalk.redBright('(required)')); | ||
@@ -54,0 +54,0 @@ return res.join(''); |
@@ -10,5 +10,5 @@ /* eslint-disable class-methods-use-this */ | ||
Q = require('q'), | ||
chalk = require('chalk'), | ||
CoaObject = require('./coaobject'), | ||
Color = require('./color'), | ||
Opt = require('./opt'), | ||
@@ -216,4 +216,4 @@ Arg = require('./arg'), | ||
&& res.push([ | ||
'', '', Color('lred', this._fullName()), Color('lblue', 'COMMAND'), | ||
Color('lgreen', '[OPTIONS]'), Color('lpurple', '[ARGS]') | ||
'', '', chalk.redBright(this._fullName()), chalk.blueBright('COMMAND'), | ||
chalk.greenBright('[OPTIONS]'), chalk.magentaBright('[ARGS]') | ||
].join(' ')); | ||
@@ -223,4 +223,4 @@ | ||
&& res.push([ | ||
'', '', Color('lred', this._fullName()), | ||
Color('lgreen', '[OPTIONS]'), Color('lpurple', '[ARGS]') | ||
'', '', chalk.redBright(this._fullName()), | ||
chalk.greenBright('[OPTIONS]'), chalk.magentaBright('[ARGS]') | ||
].join(' ')); | ||
@@ -238,3 +238,3 @@ | ||
_usage() { | ||
return Color('lblue', this._name) + ' : ' + this._title; | ||
return chalk.blueBright(this._name) + ' : ' + this._title; | ||
} | ||
@@ -377,3 +377,3 @@ | ||
for(const item of desc) | ||
item._def && | ||
item._def !== undefined && | ||
!params.hasOwnProperty(item._name) && | ||
@@ -380,0 +380,0 @@ item._saveVal(params, item._def); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
CoaParam = require('./coaparam'), | ||
Color = require('./color'); | ||
chalk = require('chalk'); | ||
@@ -136,3 +136,3 @@ /** | ||
if(this._short) { | ||
res.push('-', Color('lgreen', this._short)); | ||
res.push('-', chalk.greenBright(this._short)); | ||
this._flag || res.push(' ' + nameStr); | ||
@@ -143,3 +143,3 @@ res.push(', '); | ||
if(this._long) { | ||
res.push('--', Color('green', this._long)); | ||
res.push('--', chalk.green(this._long)); | ||
this._flag || res.push('=' + nameStr); | ||
@@ -150,3 +150,3 @@ } | ||
this._req && res.push(' ', Color('lred', '(required)')); | ||
this._req && res.push(' ', chalk.redBright('(required)')); | ||
@@ -153,0 +153,0 @@ return res.join(''); |
{ | ||
"name": "coa", | ||
"description": "Command-Option-Argument: Yet another parser for command line options.", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"homepage": "http://github.com/veged/coa", | ||
@@ -17,2 +17,3 @@ "author": "Sergey Berezhnoy <veged@ya.ru> (http://github.com/veged)", | ||
"index.js", | ||
"coa.d.ts", | ||
"README.ru.md" | ||
@@ -28,2 +29,4 @@ ], | ||
"dependencies": { | ||
"@types/q": "^1.5.1", | ||
"chalk": "^2.4.1", | ||
"q": "^1.1.2" | ||
@@ -50,3 +53,4 @@ }, | ||
}, | ||
"types": "./coa.d.ts", | ||
"license": "MIT" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72481
1034
3
+ Added@types/q@^1.5.1
+ Addedchalk@^2.4.1
+ Added@types/q@1.5.8(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)