debug.js 315 B

123456789101112131415
  1. var debug;
  2. module.exports = function () {
  3. if (!debug) {
  4. try {
  5. /* eslint global-require: off */
  6. debug = require("debug")("follow-redirects");
  7. }
  8. catch (error) { /* */ }
  9. if (typeof debug !== "function") {
  10. debug = function () { /* */ };
  11. }
  12. }
  13. debug.apply(null, arguments);
  14. };