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

coa

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coa - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

.idea/codeStyleSettings.xml

2

lib/arg.js

@@ -18,3 +18,2 @@ var Arg, Cmd, Color, Opt;

exports.Arg = Arg = (function() {
/**

@@ -24,3 +23,2 @@ @constructs

*/
function Arg(_cmd) {

@@ -27,0 +25,0 @@ this._cmd = _cmd;

@@ -1,3 +0,3 @@

var Cmd, Color, PATH, Q, UTIL;
var __slice = Array.prototype.slice;
var Cmd, Color, PATH, Q, UTIL,
__slice = Array.prototype.slice;

@@ -21,3 +21,2 @@ UTIL = require('util');

exports.Cmd = Cmd = (function() {
/**

@@ -27,3 +26,2 @@ @constructs

*/
function Cmd(cmd) {

@@ -54,4 +52,4 @@ if (!(this instanceof Cmd)) return new Cmd(cmd);

Cmd.get('api', function() {
var c, _fn;
var _this = this;
var c, _fn,
_this = this;
if (!this._api) {

@@ -208,4 +206,6 @@ this._api = function() {

Cmd.prototype._exit = function(msg, code) {
if (msg) UTIL.error(msg);
return process.exit(code || 0);
return process.once('exit', function() {
if (msg) UTIL.error(msg);
return process.exit(code || 0);
});
};

@@ -268,3 +268,3 @@

Cmd.prototype._checkRequired = function(opts, args) {
var all, i, _results;
var all, i;
if (!(this._opts.filter(function(o) {

@@ -274,11 +274,7 @@ return o._only && o._name in opts;

all = this._opts.concat(this._args);
_results = [];
while (i = all.shift()) {
if (i._req && i._checkParsed(opts, args)) {
return this.reject(i._requiredText());
} else {
_results.push(void 0);
}
}
return _results;
}

@@ -404,4 +400,4 @@ };

Cmd.prototype.run = function(argv) {
var cb;
var _this = this;
var cb,
_this = this;
if (argv == null) argv = process.argv.slice(2);

@@ -408,0 +404,0 @@ cb = function(code) {

@@ -1,2 +0,1 @@

/**

@@ -6,3 +5,2 @@ Most of the code adopted from the npm package shell completion code.

*/
var Q, complete, dumpScript, escape, getOpts, unescape;

@@ -9,0 +7,0 @@

@@ -20,3 +20,2 @@ var Cmd, Color, Opt, Q, fs;

exports.Opt = Opt = (function() {
/**

@@ -26,3 +25,2 @@ @constructs

*/
function Opt(_cmd) {

@@ -210,4 +208,4 @@ this._cmd = _cmd;

this._cmd.act(function(opts) {
var res;
var _this = this;
var res,
_this = this;
if (name in opts) {

@@ -214,0 +212,0 @@ res = act.apply(this, arguments);

{
"name": "coa",
"description": "Command-Option-Argument: Yet another parser for command line options.",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "http://github.com/veged/coa",

@@ -6,0 +6,0 @@ "author": "Sergey Berezhnoy <veged@ya.ru> (http://github.com/veged)",

Sorry, the diff of this file is not supported yet

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