mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-26 23:10:18 +00:00
push all website files
This commit is contained in:
15
website/node_modules/npm/node_modules/uid-number/LICENSE
generated
vendored
Normal file
15
website/node_modules/npm/node_modules/uid-number/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
17
website/node_modules/npm/node_modules/uid-number/README.md
generated
vendored
Normal file
17
website/node_modules/npm/node_modules/uid-number/README.md
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
Use this module to convert a username/groupname to a uid/gid number.
|
||||
|
||||
Usage:
|
||||
|
||||
```
|
||||
npm install uid-number
|
||||
```
|
||||
|
||||
Then, in your node program:
|
||||
|
||||
```javascript
|
||||
var uidNumber = require("uid-number")
|
||||
uidNumber("isaacs", function (er, uid, gid) {
|
||||
// gid is null because we didn't ask for a group name
|
||||
// uid === 24561 because that's my number.
|
||||
})
|
||||
```
|
24
website/node_modules/npm/node_modules/uid-number/get-uid-gid.js
generated
vendored
Normal file
24
website/node_modules/npm/node_modules/uid-number/get-uid-gid.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
if (module !== require.main) {
|
||||
throw new Error("This file should not be loaded with require()")
|
||||
}
|
||||
|
||||
if (!process.getuid || !process.getgid) {
|
||||
throw new Error("this file should not be called without uid/gid support")
|
||||
}
|
||||
|
||||
var argv = process.argv.slice(2)
|
||||
, user = argv[0] || process.getuid()
|
||||
, group = argv[1] || process.getgid()
|
||||
|
||||
if (!isNaN(user)) user = +user
|
||||
if (!isNaN(group)) group = +group
|
||||
|
||||
console.error([user, group])
|
||||
|
||||
try {
|
||||
process.setgid(group)
|
||||
process.setuid(user)
|
||||
console.log(JSON.stringify({uid:+process.getuid(), gid:+process.getgid()}))
|
||||
} catch (ex) {
|
||||
console.log(JSON.stringify({error:ex.message,errno:ex.errno}))
|
||||
}
|
55
website/node_modules/npm/node_modules/uid-number/package.json
generated
vendored
Normal file
55
website/node_modules/npm/node_modules/uid-number/package.json
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"uid-number@0.0.6",
|
||||
"/Users/rebecca/code/npm"
|
||||
]
|
||||
],
|
||||
"_from": "uid-number@0.0.6",
|
||||
"_id": "uid-number@0.0.6",
|
||||
"_inBundle": true,
|
||||
"_integrity": "sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=",
|
||||
"_location": "/npm/uid-number",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "uid-number@0.0.6",
|
||||
"name": "uid-number",
|
||||
"escapedName": "uid-number",
|
||||
"rawSpec": "0.0.6",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.0.6"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/npm",
|
||||
"/npm/npm-lifecycle"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz",
|
||||
"_spec": "0.0.6",
|
||||
"_where": "/Users/rebecca/code/npm",
|
||||
"author": {
|
||||
"name": "Isaac Z. Schlueter",
|
||||
"email": "i@izs.me",
|
||||
"url": "http://blog.izs.me/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/isaacs/uid-number/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Convert a username/group name to a uid/gid number",
|
||||
"devDependencies": {},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
"homepage": "https://github.com/isaacs/uid-number#readme",
|
||||
"license": "ISC",
|
||||
"main": "uid-number.js",
|
||||
"name": "uid-number",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/isaacs/uid-number.git"
|
||||
},
|
||||
"version": "0.0.6"
|
||||
}
|
59
website/node_modules/npm/node_modules/uid-number/uid-number.js
generated
vendored
Normal file
59
website/node_modules/npm/node_modules/uid-number/uid-number.js
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
module.exports = uidNumber
|
||||
|
||||
// This module calls into get-uid-gid.js, which sets the
|
||||
// uid and gid to the supplied argument, in order to find out their
|
||||
// numeric value. This can't be done in the main node process,
|
||||
// because otherwise node would be running as that user from this
|
||||
// point on.
|
||||
|
||||
var child_process = require("child_process")
|
||||
, path = require("path")
|
||||
, uidSupport = process.getuid && process.setuid
|
||||
, uidCache = {}
|
||||
, gidCache = {}
|
||||
|
||||
function uidNumber (uid, gid, cb) {
|
||||
if (!uidSupport) return cb()
|
||||
if (typeof cb !== "function") cb = gid, gid = null
|
||||
if (typeof cb !== "function") cb = uid, uid = null
|
||||
if (gid == null) gid = process.getgid()
|
||||
if (uid == null) uid = process.getuid()
|
||||
if (!isNaN(gid)) gid = gidCache[gid] = +gid
|
||||
if (!isNaN(uid)) uid = uidCache[uid] = +uid
|
||||
|
||||
if (uidCache.hasOwnProperty(uid)) uid = uidCache[uid]
|
||||
if (gidCache.hasOwnProperty(gid)) gid = gidCache[gid]
|
||||
|
||||
if (typeof gid === "number" && typeof uid === "number") {
|
||||
return process.nextTick(cb.bind(null, null, uid, gid))
|
||||
}
|
||||
|
||||
var getter = require.resolve("./get-uid-gid.js")
|
||||
|
||||
child_process.execFile( process.execPath
|
||||
, [getter, uid, gid]
|
||||
, function (code, out, stderr) {
|
||||
if (code) {
|
||||
var er = new Error("could not get uid/gid\n" + stderr)
|
||||
er.code = code
|
||||
return cb(er)
|
||||
}
|
||||
|
||||
try {
|
||||
out = JSON.parse(out+"")
|
||||
} catch (ex) {
|
||||
return cb(ex)
|
||||
}
|
||||
|
||||
if (out.error) {
|
||||
var er = new Error(out.error)
|
||||
er.errno = out.errno
|
||||
return cb(er)
|
||||
}
|
||||
|
||||
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, gidCache[gid] = +out.gid)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user