@luisrodrigues/nestjs-scheduler-dashboard 0.1.7 → 0.1.8

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.
@@ -77,6 +77,19 @@ let SchedulerDashModule = SchedulerDashModule_1 = class SchedulerDashModule {
77
77
  router.use((_req, res) => {
78
78
  res.sendFile('index.html', { root: PUBLIC_PATH });
79
79
  });
80
+ const BROWSER_NOISE = [
81
+ '/favicon.ico',
82
+ '/.well-known/appspecific/com.chrome.devtools.json',
83
+ ];
84
+ consumer
85
+ .apply((req, res, next) => {
86
+ if (BROWSER_NOISE.includes(req.path)) {
87
+ res.status(204).end();
88
+ return;
89
+ }
90
+ next();
91
+ })
92
+ .forRoutes('/');
80
93
  consumer
81
94
  .apply((req, res, next) => {
82
95
  req.url =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luisrodrigues/nestjs-scheduler-dashboard",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Dashboard for @nestjs/schedule — embedded UI, job history, metrics, stop/trigger controls",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",