Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-02-20 20:04:17 +0400
committerisaacs <i@izs.me>2014-02-20 20:04:17 +0400
commitd50b826b9e5884c0f4e1101b90c7206a138a43e7 (patch)
treeca6977f90578b57901c0847937fb2640348c92ca /node_modules/uid-number
parent14e650bce0bfebba10094c961ac104a61417a5de (diff)
uid-number@0.0.5
Diffstat (limited to 'node_modules/uid-number')
-rw-r--r--node_modules/uid-number/LICENCE25
-rw-r--r--node_modules/uid-number/package.json4
-rw-r--r--node_modules/uid-number/uid-number.js6
3 files changed, 5 insertions, 30 deletions
diff --git a/node_modules/uid-number/LICENCE b/node_modules/uid-number/LICENCE
deleted file mode 100644
index 74489e2e2..000000000
--- a/node_modules/uid-number/LICENCE
+++ /dev/null
@@ -1,25 +0,0 @@
-Copyright (c) Isaac Z. Schlueter
-All rights reserved.
-
-The BSD License
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/uid-number/package.json b/node_modules/uid-number/package.json
index b7d9e0007..0b10753b1 100644
--- a/node_modules/uid-number/package.json
+++ b/node_modules/uid-number/package.json
@@ -6,7 +6,7 @@
},
"name": "uid-number",
"description": "Convert a username/group name to a uid/gid number",
- "version": "0.0.4",
+ "version": "0.0.5",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/uid-number.git"
@@ -25,6 +25,6 @@
"url": "https://github.com/isaacs/uid-number/issues"
},
"homepage": "https://github.com/isaacs/uid-number",
- "_id": "uid-number@0.0.4",
+ "_id": "uid-number@0.0.5",
"_from": "uid-number@latest"
}
diff --git a/node_modules/uid-number/uid-number.js b/node_modules/uid-number/uid-number.js
index 1cd511c64..2ae421ede 100644
--- a/node_modules/uid-number/uid-number.js
+++ b/node_modules/uid-number/uid-number.js
@@ -18,7 +18,7 @@ function uidNumber (uid, gid, cb) {
if (typeof cb !== "function") cb = uid, uid = null
if (gid == null) gid = process.getgid()
if (uid == null) uid = process.getuid()
- if (!isNaN(gid)) gid = uidCache[gid] = +gid
+ if (!isNaN(gid)) gid = gidCache[gid] = +gid
if (!isNaN(uid)) uid = uidCache[uid] = +uid
if (uidCache.hasOwnProperty(uid)) uid = uidCache[uid]
@@ -33,7 +33,7 @@ function uidNumber (uid, gid, cb) {
child_process.execFile( process.execPath
, [getter, uid, gid]
, function (code, out, err) {
- if (err) return cb(new Error("could not get uid/gid\n" + err))
+ if (er) return cb(new Error("could not get uid/gid\n" + err))
try {
out = JSON.parse(out+"")
} catch (ex) {
@@ -49,6 +49,6 @@ function uidNumber (uid, gid, cb) {
if (isNaN(out.uid) || isNaN(out.gid)) return cb(new Error(
"Could not get uid/gid: "+JSON.stringify(out)))
- cb(null, uidCache[uid] = +out.uid, uidCache[gid] = +out.gid)
+ cb(null, uidCache[uid] = +out.uid, gidCache[gid] = +out.gid)
})
}