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.7 to 0.3.8

.travis.yml

2

lib/arg.js

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
var Arg, Cmd, Color, Opt;

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

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
var Cmd, Color, PATH, Q, UTIL,

@@ -459,3 +459,3 @@ __slice = [].slice;

};
Q.when(this._do(this._parseArr(argv)), cb(0), cb(1)).end();
Q.when(this["do"](argv), cb(0), cb(1)).done();
return this;

@@ -465,2 +465,13 @@ };

/**
Convenient function to run command from tests.
@param {Array} argv
@returns {Q.Promise}
*/
Cmd.prototype["do"] = function(argv) {
return this._do(this._parseArr(argv || []));
};
/**
Invoke specified (or current) command using provided

@@ -467,0 +478,0 @@ options and arguments.

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
var colors;

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

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
/**

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

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
var Cmd, Color, Opt, Q, fs;

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

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0

@@ -3,0 +3,0 @@ exports.unescape = function(w) {

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

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

},
"main": "./lib/coa.js",
"dependencies": {
"q": "~0.8.8"
"q": "~0.8.10"
},
"devDependencies": {
"coffee-script": "~1.3.3",
"vows": "~0.6.4"
"coffee-script": "~1.4.0",
"istanbul": "~0.1.11",
"mocha-as-promised": "*",
"mocha-istanbul": "*",
"mocha": "~1.6.0",
"chai": "~1.3.0"
},
"scripts": {
"test": "make test",
"coverage": "make coverage"
},
"engines": {

@@ -31,0 +38,0 @@ "node": ">= 0.6.0"

# Command-Option-Argument
[![build status](https://secure.travis-ci.org/veged/coa.png)](http://travis-ci.org/veged/coa)

@@ -3,0 +4,0 @@ ## What is it?

@@ -1,59 +0,60 @@

var vows = require('vows'),
assert = require('assert'),
shell = require('../lib/shell');
var assert = require('chai').assert,
shell = require('..').shell;
vows.describe('coa/shell').addBatch({
/**
* Mocha BDD interface.
*/
/** @name describe @function */
/** @name it @function */
/** @name before @function */
/** @name after @function */
/** @name beforeEach @function */
/** @name afterEach @function */
'The shell module': {
describe('shell', function() {
'`escape`': {
describe('escape()', function() {
topic: function() {
return shell.escape;
},
var escape = shell.escape;
'Should wrap values with spaces in double quotes': function(escape) {
assert.equal(escape('asd abc'), '"asd abc"');
},
it('Should wrap values with spaces in double quotes', function() {
assert.equal(escape('asd abc'), '"asd abc"');
});
'Should escape double quote "': function(escape) {
assert.equal(escape('"asd'), '\\"asd');
},
it('Should escape double quote "', function() {
assert.equal(escape('"asd'), '\\"asd');
});
"Should escape single quote '": function(escape) {
assert.equal(escape("'asd"), "\\'asd");
},
it("Should escape single quote '", function() {
assert.equal(escape("'asd"), "\\'asd");
});
'Should escape backslash \\': function(escape) {
assert.equal(escape('\\asd'), '\\\\asd');
},
it('Should escape backslash \\', function() {
assert.equal(escape('\\asd'), '\\\\asd');
});
'Should escape dollar $': function(escape) {
assert.equal(escape('$asd'), '\\$asd');
},
it('Should escape dollar $', function() {
assert.equal(escape('$asd'), '\\$asd');
});
'Should escape backtick `': function(escape) {
assert.equal(escape('`asd'), '\\`asd');
}
it('Should escape backtick `', function() {
assert.equal(escape('`asd'), '\\`asd');
});
},
});
'`unescape`': {
describe('unescape()', function() {
topic: function() {
return shell.unescape;
},
var unescape = shell.unescape;
'Should strip double quotes at the both ends': function(unescape) {
assert.equal(unescape('"asd"'), 'asd');
},
it('Should strip double quotes at the both ends', function() {
assert.equal(unescape('"asd"'), 'asd');
});
'Should not strip escaped double quotes at the both ends': function(unescape) {
assert.equal(unescape('\\"asd\\"'), '"asd"');
}
it('Should not strip escaped double quotes at the both ends', function() {
assert.equal(unescape('\\"asd\\"'), '"asd"');
});
}
});
}
}).export(module);
});

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

require('../lib/coa').Cmd()
require('..').Cmd()
.name('bla')

@@ -3,0 +3,0 @@ .title('Bla bla bla')

var argv = process.argv.slice(2);
require('../lib/coa').Cmd()
require('..').Cmd()
.name('bla')

@@ -4,0 +4,0 @@ .title('Bla bla bla')

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