mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-07 07:27:20 +00:00
push all website files
This commit is contained in:
13
website/node_modules/npm/lib/install/and-add-parent-to-errors.js
generated
vendored
Normal file
13
website/node_modules/npm/lib/install/and-add-parent-to-errors.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
var validate = require('aproba')
|
||||
|
||||
module.exports = function (parent, cb) {
|
||||
validate('F', [cb])
|
||||
return function (er) {
|
||||
if (!er) return cb.apply(null, arguments)
|
||||
if (er instanceof Error && parent && parent.package && parent.package.name) {
|
||||
er.parent = parent.package.name
|
||||
}
|
||||
cb(er)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user