@goodandready/dsh-key-rotation 0.8.3 → 0.8.4

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/client.js +5 -5
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -352,12 +352,12 @@ window.__ModuleLoader__.load({
352
352
  function KeyRotationSection(props) {
353
353
  const t = resolveT(props);
354
354
  const settingsScope = React.useMemo(() => {
355
- if (props.ctx && props.ctx.settingsScope) {
356
- try {
355
+ try {
356
+ if (props.ctx && props.ctx.settingsScope) {
357
357
  return props.ctx.settingsScope.bind({ namespace: NS });
358
- } catch (_) {
359
- return null;
360
358
  }
359
+ } catch (_) {
360
+ return null;
361
361
  }
362
362
  return null;
363
363
  }, [props.ctx]);
@@ -1273,7 +1273,7 @@ window.__ModuleLoader__.load({
1273
1273
  }
1274
1274
  }
1275
1275
 
1276
- module.exports = { apply, inject: ['slots', 'locale'] };
1276
+ module.exports = { apply, inject: ['slots', 'locale', 'settingsScope'] };
1277
1277
  return module.exports;
1278
1278
  },
1279
1279
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-key-rotation",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "packageManager": "pnpm@10.33.2",
5
5
  "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.",
6
6
  "keywords": [