15 lines
268 B
JavaScript
15 lines
268 B
JavaScript
var debug;
|
|
|
|
module.exports = function () {
|
|
if (!debug) {
|
|
try {
|
|
/* eslint global-require: off */
|
|
debug = require("debug")("follow-redirects");
|
|
}
|
|
catch (error) {
|
|
debug = function () { /* */ };
|
|
}
|
|
}
|
|
debug.apply(null, arguments);
|
|
};
|