mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 22:56:41 +00:00

* Windows improvements: no more uid is undefined errors, use `%COMSPEC%` when set in preference to hardcoded `cmd`, improved handling of Git remotes. * Add caching based on Last-Modified / If-Modified-Since headers in addition to Etag-based cache validation. PR-URL: https://github.com/iojs/io.js/pull/573 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
18 lines
343 B
JavaScript
18 lines
343 B
JavaScript
var umask = require("umask")
|
|
var npmlog = require("npmlog")
|
|
var _fromString = umask.fromString
|
|
|
|
module.exports = umask
|
|
|
|
// fromString with logging callback
|
|
umask.fromString = function (val) {
|
|
_fromString(val, function (err, result) {
|
|
if (err) {
|
|
npmlog.warn("invalid umask", err.message)
|
|
}
|
|
val = result
|
|
})
|
|
|
|
return val
|
|
}
|