[Pkg-javascript-commits] [node-optimist] 03/33: Imported Upstream version 0.3.7

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Feb 27 23:21:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository node-optimist.

commit a48af53e6c6f445f90ec929700074861f2152741
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Feb 27 20:00:29 2015 +0100

    Imported Upstream version 0.3.7
---
 index.js     | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 08246ff..8ac67eb 100644
--- a/index.js
+++ b/index.js
@@ -31,7 +31,7 @@ function Argv (args, cwd) {
         .join(' ')
     ;
     
-    if (process.argv[1] == process.env._) {
+    if (process.env._ != undefined && process.argv[1] == process.env._) {
         self.$0 = process.env._.replace(
             path.dirname(process.execPath) + '/', ''
         );
diff --git a/package.json b/package.json
index 0c02a92..b908004 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name" : "optimist",
-    "version" : "0.3.6",
+    "version" : "0.3.7",
     "description" : "Light-weight option parsing with an argv hash. No optstrings attached.",
     "main" : "./index.js",
     "dependencies" : {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-optimist.git



More information about the Pkg-javascript-commits mailing list