@luisrodrigues/nestjs-scheduler-dashboard 0.1.7 → 0.1.9

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.
@@ -4,6 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Scheduler Dashboard</title>
7
+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>">
7
8
  <script>
8
9
  (function () {
9
10
  var t = localStorage.getItem('scheduler-dash-theme');
@@ -12,7 +13,7 @@
12
13
  }
13
14
  })();
14
15
  </script>
15
- <script type="module" crossorigin src="./assets/index-BQiKk0pa.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-CGDJjaa0.js"></script>
16
17
  <link rel="stylesheet" crossorigin href="./assets/index-BMy-QxOf.css">
17
18
  </head>
18
19
  <body>
@@ -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.9",
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",
@@ -9,7 +9,8 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "prebuild": "pnpm --filter @luisrodrigues/nestjs-scheduler-dashboard-ui build",
12
- "build": "tsc -p tsconfig.json && cp -r src/public dist/public",
12
+ "build": "tsc -p tsconfig.json && rm -rf dist/public && cp -r src/public dist/public",
13
+ "prepublishOnly": "pnpm build",
13
14
  "dev": "tsc -p tsconfig.json --watch"
14
15
  },
15
16
  "peerDependencies": {