posix-argv-parser
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -6,3 +6,3 @@ var when = require("when"); | ||
var val = validator(data); | ||
return when.isPromise(val) ? val : when(val); | ||
return when.isPromiseLike(val) ? val : when(val); | ||
} catch (e) { | ||
@@ -9,0 +9,0 @@ return when.reject(e.message || e); |
@@ -1,2 +0,1 @@ | ||
var when = require("when"); | ||
var argument = require("./argument"); | ||
@@ -3,0 +2,0 @@ |
{ | ||
"name": "posix-argv-parser", | ||
"version": "1.0.2", | ||
"description": "POSIX compliant command-line argument parser.", | ||
"homepage": "http://busterjs.org/docs/posix-argv-parser", | ||
"author": { "name": "August Lilleaas" }, | ||
"contributors": [{ | ||
"name": "Christian Johansen", | ||
"email": "christian@cjohansen.no", | ||
"url": "http://cjohansen.no" | ||
}, { | ||
"name": "August Lilleaas", | ||
"email": "august.lilleaas@gmail.com", | ||
"url": "http://augustl.com" | ||
}, { | ||
"name": "Stein Magnus Jodal", | ||
"email": "stein.magnus@jodal.no", | ||
"url": "http://jodal.no" | ||
}], | ||
"main": "./lib/posix-argv-parser", | ||
"repository": "https://github.com/busterjs/posix-argv-parser.git", | ||
"license": { | ||
"type": "BSD", | ||
"url": "https://github.com/busterjs/posix-argv-parser/blob/master/LICENSE" | ||
"name": "posix-argv-parser", | ||
"version": "2.0.0", | ||
"description": "POSIX compliant command-line argument parser.", | ||
"homepage": "http://busterjs.org/docs/posix-argv-parser", | ||
"author": { | ||
"name": "August Lilleaas" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Christian Johansen", | ||
"email": "christian@cjohansen.no", | ||
"url": "http://cjohansen.no" | ||
}, | ||
"scripts": { | ||
"test": "node run-tests.js" | ||
{ | ||
"name": "August Lilleaas", | ||
"email": "august.lilleaas@gmail.com", | ||
"url": "http://augustl.com" | ||
}, | ||
"dependencies": { | ||
"when": "https://github.com/cujojs/when/tarball/1.8.1" | ||
}, | ||
"devDependencies": { | ||
"buster-node": "*" | ||
{ | ||
"name": "Stein Magnus Jodal", | ||
"email": "stein.magnus@jodal.no", | ||
"url": "http://jodal.no" | ||
} | ||
], | ||
"license": "BSD-3-Clause", | ||
"main": "./lib/posix-argv-parser", | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
"repository": "https://github.com/busterjs/posix-argv-parser.git", | ||
"scripts": { | ||
"test": "node run-tests.js" | ||
}, | ||
"dependencies": { | ||
"when": "3.x" | ||
}, | ||
"devDependencies": { | ||
"buster-node": "0.7.x" | ||
} | ||
} |
@@ -54,3 +54,3 @@ # posix-argv-parser | ||
posixArgvParser.parse(process.argv.slice(2), function (errors, options) { | ||
args.parse(process.argv.slice(2), function (errors, options) { | ||
if (errors) { return console.log(errors[0]); } | ||
@@ -479,8 +479,13 @@ | ||
**1.0.2** (23.04.2014) | ||
**2.0.0** (2015-Nov-18) | ||
* Potentially breaking: updated when.js v1 to v3 (no more zalgo in promises) | ||
* Added `engines` property in `package.json` with a node v4+ requirement | ||
**1.0.2** (2014-Apr-23) | ||
* additional fix for issue [#391](https://github.com/busterjs/buster/issues/391), [not call pop for string arg with trailing dash](https://github.com/busterjs/posix-argv-parser/commit/923797b4896523128586dc901567b4f0ffe2d837) | ||
**1.0.1** (25.03.2014) | ||
**1.0.1** (2014-Mar-25) | ||
@@ -487,0 +492,0 @@ * Fix for issue [#391, posix-argv-parser fails when short option is combined with shorthand](https://github.com/busterjs/buster/issues/391) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
1
493
0
104721
24
2216
2
+ Addedwhen@3.7.8(transitive)
Updatedwhen@3.x