@goodandready/dsh-key-rotation 0.5.2 → 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.
Files changed (2) hide show
  1. package/lib/pool.js +1 -1
  2. package/package.json +2 -2
package/lib/pool.js CHANGED
@@ -54,7 +54,7 @@ export const SWITCHABLE_MESSAGE_PATTERN = new RegExp([
54
54
  /\b(?:invalid|expired|revoked|unauthorized)[\s_-]+(?:api[\s_-]?key|token)\b/i,
55
55
  /\bapi[\s_-]?key[\s_-]+(?:is[\s_-]+)?(?:invalid|expired|revoked|unauthorized)\b/i,
56
56
  /\b(?:authentication|unauthorized|not[\s_-]+authorized)\b/i,
57
- ].map((r) => r.source).join('|'));
57
+ ].map((r) => r.source).join('|'), 'i');
58
58
 
59
59
  /** Default switch codes used by lib/index.js. Kept here so tests assert against
60
60
  * the same list the runtime ships. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-key-rotation",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Per-provider API key rotation for DeepSeek Harness: a key pool per provider, auto-created clone routes, and switching to the next key on quota/rate-limit errors. Includes a Settings section (Key Rotation) to edit the key pools, cooldown and switch codes.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -58,4 +58,4 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  }
61
- }
61
+ }