main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
315 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | var debug;
|
---|
| 2 |
|
---|
| 3 | module.exports = function () {
|
---|
| 4 | if (!debug) {
|
---|
| 5 | try {
|
---|
| 6 | /* eslint global-require: off */
|
---|
| 7 | debug = require("debug")("follow-redirects");
|
---|
| 8 | }
|
---|
| 9 | catch (error) { /* */ }
|
---|
| 10 | if (typeof debug !== "function") {
|
---|
| 11 | debug = function () { /* */ };
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
| 14 | debug.apply(null, arguments);
|
---|
| 15 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.