@zintrust/queue-monitor 0.5.1 → 0.5.3

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Queue monitoring scaffolding for ZinTrust.
4
4
 
5
- - Docs: https://zintrust.com/queue
5
+ Docs: https://zintrust.com/package-queue-monitor
6
6
 
7
7
  ## Install
8
8
 
@@ -0,0 +1,3 @@
1
+ export declare const BrandFavicon: Readonly<{
2
+ forQueueMonitor(): string;
3
+ }>;
@@ -0,0 +1,18 @@
1
+ const encodeSvgDataUri = (svg) => {
2
+ return `data:image/svg+xml,${encodeURIComponent(svg.replaceAll(/\s+/g, ' ').trim())}`;
3
+ };
4
+ const buildQueueMonitorFavicon = () => {
5
+ return encodeSvgDataUri(`
6
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="none">
7
+ <rect width="256" height="256" rx="56" fill="#0f172a"/>
8
+ <circle cx="128" cy="128" r="64" stroke="#1e293b" stroke-width="24"/>
9
+ <path d="M128 64 A64 64 0 0 1 192 128" stroke="#0ea5e9" stroke-width="24" stroke-linecap="round"/>
10
+ <circle cx="128" cy="128" r="24" fill="#22c55e"/>
11
+ </svg>
12
+ `);
13
+ };
14
+ export const BrandFavicon = Object.freeze({
15
+ forQueueMonitor() {
16
+ return buildQueueMonitorFavicon();
17
+ },
18
+ });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zintrust/queue-monitor",
3
- "version": "0.5.1",
4
- "buildDate": "2026-04-12T19:49:25.451Z",
3
+ "version": "0.5.2",
4
+ "buildDate": "2026-04-12T20:07:31.235Z",
5
5
  "buildEnvironment": {
6
6
  "node": "v22.22.1",
7
7
  "platform": "darwin",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "build-manifest.json": {
44
44
  "size": 3865,
45
- "sha256": "d01cfb6b5d2cff38a2b03c6dac89142a0329eb0bfd3701551c422d3e7cde5dc1"
45
+ "sha256": "5142edffe4e7ec4f6d7dcee6359fb0e8d3071e9701ecc937e07b6313edd32dc4"
46
46
  },
47
47
  "config/queueMonitor.d.ts": {
48
48
  "size": 407,
@@ -90,7 +90,7 @@
90
90
  },
91
91
  "index.js": {
92
92
  "size": 12869,
93
- "sha256": "e1319c255ca7bd9df0324b95540af42c13f7698f817c465ab36ac0c130fb107a"
93
+ "sha256": "bb797daa01c702dcfee23411ddc0011a3c8855a675f977b15de68c78f660cb63"
94
94
  },
95
95
  "metrics.d.ts": {
96
96
  "size": 868,
@@ -1,3 +1,4 @@
1
+ import { BrandFavicon } from './BrandFavicon';
1
2
  const resolveAppName = (appName) => {
2
3
  return typeof appName === 'string' && appName.trim() !== '' ? appName.trim() : 'ZinTrust';
3
4
  };
@@ -1312,6 +1313,7 @@ export const getDashboardHtml = (options) => {
1312
1313
  <meta charset="UTF-8">
1313
1314
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1314
1315
  <title>${appName} Queue Monitor</title>
1316
+ <link rel="icon" type="image/svg+xml" href="${BrandFavicon.forQueueMonitor()}">
1315
1317
  <style>
1316
1318
  ${getDashboardStyles()}
1317
1319
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/queue-monitor",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Queue monitoring package for ZinTrust with BullMQ and Redis.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "node": ">=20.0.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@zintrust/core": "^0.5.0"
23
+ "@zintrust/core": "^0.5.2"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
@@ -40,4 +40,4 @@
40
40
  "bullmq": "^5.73.0",
41
41
  "ioredis": "^5.10.1"
42
42
  }
43
- }
43
+ }