Initial
This commit is contained in:
21
resources/app/node_modules/@dabh/diagnostics/node/override.js
generated
vendored
Normal file
21
resources/app/node_modules/@dabh/diagnostics/node/override.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
const diagnostics = require('./');
|
||||
|
||||
//
|
||||
// Override the existing `debug` call so it will use `diagnostics` instead
|
||||
// of the `debug` module.
|
||||
//
|
||||
try {
|
||||
var key = require.resolve('debug');
|
||||
|
||||
require.cache[key] = {
|
||||
exports: diagnostics,
|
||||
filename: key,
|
||||
loaded: true,
|
||||
id: key
|
||||
};
|
||||
} catch (e) { /* We don't really care if it fails */ }
|
||||
|
||||
//
|
||||
// Export the default import as exports again.
|
||||
//
|
||||
module.exports = diagnostics;
|
||||
Reference in New Issue
Block a user