notifkit 0.1.5 → 0.1.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notifkit",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Self-hosted notification infrastructure. One call delivers to email, SMS, push, and webhook — routed by preference, quiet hours, and consent.",
5
5
  "license": "MIT",
6
6
  "author": "devkitshq",
@@ -38,7 +38,11 @@ export const baseConfigSchema = z.object({
38
38
  HOST: z.string().default("127.0.0.1"),
39
39
  REDIS_URL: z.string().url().default("redis://localhost:6379"),
40
40
  DATABASE_URL: z.string().url().default("postgres://platform:platform@localhost:5432/notifkit"),
41
- ADMIN_API_KEY: z.string().optional(),
41
+ // Trimmed because the incoming bearer token is trimmed before comparison, so
42
+ // an untrimmed value here could never match it. `set KEY=value && cmd` on
43
+ // Windows puts a trailing space in the variable, which otherwise turns every
44
+ // admin request into a 401 that reads like a wrong key.
45
+ ADMIN_API_KEY: z.string().trim().optional(),
42
46
  WORKER_CONCURRENCY: z.coerce.number().int().min(1).default(10),
43
47
  QUEUE_MAX_LEN: z.coerce.number().int().min(1).default(10000000),
44
48
  DB_MAX_CONNECTIONS: z.coerce.number().int().min(1).default(2),