mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 20:40:07 +02:00
update packages to latest version
This commit is contained in:
15
node_modules/npm/lib/config/load-uid.js
generated
vendored
Normal file
15
node_modules/npm/lib/config/load-uid.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = loadUid
|
||||
|
||||
var getUid = require("uid-number")
|
||||
|
||||
// Call in the context of a npmconf object
|
||||
|
||||
function loadUid (cb) {
|
||||
// if we're not in unsafe-perm mode, then figure out who
|
||||
// to run stuff as. Do this first, to support `npm update npm -g`
|
||||
if (!this.get("unsafe-perm")) {
|
||||
getUid(this.get("user"), this.get("group"), cb)
|
||||
} else {
|
||||
process.nextTick(cb)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user