@gustavo-valsechi/node 1.0.40 → 1.0.41
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/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/dist/src/server/index.js +1 -2
- package/dist/src/server/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -267,9 +267,8 @@ var serverInit = (appConfig) => {
|
|
|
267
267
|
app.register(
|
|
268
268
|
(0, import_fastify_plugin.default)(async (instance) => {
|
|
269
269
|
instance.addHook(
|
|
270
|
-
"
|
|
270
|
+
"onResponse",
|
|
271
271
|
(req, res, done) => {
|
|
272
|
-
console.log(res);
|
|
273
272
|
console.log(`${res.statusCode < 400 ? "\u2705" : "\u{1F534}"} ${res.statusCode} [${req.method}] - ${req.url}`);
|
|
274
273
|
done();
|
|
275
274
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -236,9 +236,8 @@ var serverInit = (appConfig) => {
|
|
|
236
236
|
app.register(
|
|
237
237
|
fp(async (instance) => {
|
|
238
238
|
instance.addHook(
|
|
239
|
-
"
|
|
239
|
+
"onResponse",
|
|
240
240
|
(req, res, done) => {
|
|
241
|
-
console.log(res);
|
|
242
241
|
console.log(`${res.statusCode < 400 ? "\u2705" : "\u{1F534}"} ${res.statusCode} [${req.method}] - ${req.url}`);
|
|
243
242
|
done();
|
|
244
243
|
}
|
package/dist/src/server/index.js
CHANGED
|
@@ -199,9 +199,8 @@ var serverInit = (appConfig) => {
|
|
|
199
199
|
app.register(
|
|
200
200
|
(0, import_fastify_plugin.default)(async (instance) => {
|
|
201
201
|
instance.addHook(
|
|
202
|
-
"
|
|
202
|
+
"onResponse",
|
|
203
203
|
(req, res, done) => {
|
|
204
|
-
console.log(res);
|
|
205
204
|
console.log(`${res.statusCode < 400 ? "\u2705" : "\u{1F534}"} ${res.statusCode} [${req.method}] - ${req.url}`);
|
|
206
205
|
done();
|
|
207
206
|
}
|
|
@@ -175,9 +175,8 @@ var serverInit = (appConfig) => {
|
|
|
175
175
|
app.register(
|
|
176
176
|
fp(async (instance) => {
|
|
177
177
|
instance.addHook(
|
|
178
|
-
"
|
|
178
|
+
"onResponse",
|
|
179
179
|
(req, res, done) => {
|
|
180
|
-
console.log(res);
|
|
181
180
|
console.log(`${res.statusCode < 400 ? "\u2705" : "\u{1F534}"} ${res.statusCode} [${req.method}] - ${req.url}`);
|
|
182
181
|
done();
|
|
183
182
|
}
|