azify-logger 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/register-restify.js +0 -5
package/package.json
CHANGED
package/register-restify.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
console.log('🔧 @azify/logger-client/register-restify carregando...')
|
|
2
|
-
|
|
3
1
|
const Module = require('module')
|
|
4
2
|
const originalRequire = Module.prototype.require
|
|
5
3
|
|
|
@@ -10,10 +8,7 @@ Module.prototype.require = function(id) {
|
|
|
10
8
|
|
|
11
9
|
if (!patched && (id === 'restify' || id.endsWith('/restify') || id.includes('restify/lib'))) {
|
|
12
10
|
patched = true
|
|
13
|
-
console.log(' ✅ Restify detectado!')
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
return module
|
|
17
14
|
}
|
|
18
|
-
|
|
19
|
-
console.log(' ✅ Hook de interceptação do Restify registrado!')
|