@goodandready/dsh-subscriptions 0.6.31 → 0.6.32

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/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -65,7 +65,7 @@ const OK_HTML = `<!doctype html>
65
65
  </html>`
66
66
 
67
67
  export function apply(ctx, rawConfig) {
68
- const logger = ctx.logger ? ctx.logger('subscriptions') : undefined
68
+ const logger = typeof ctx.logger === 'function' ? ctx.logger('subscriptions') : (ctx.logger || ctx.log)
69
69
  let settingsApi
70
70
 
71
71
  let cachedConfig = Config(rawConfig || {})
@@ -185,7 +185,7 @@ export function apply(ctx, rawConfig) {
185
185
  bestEffort('emit limit-notice', () => ctx.emit && ctx.emit('subscriptions.limit-notice', { provider, ref, window: win.id, usedPercent: win.usedPercent, threshold }), undefined, logger)
186
186
  },
187
187
  })
188
- const historyDir = ctx?.historyDir || ctx?.storageDir || resolveHistoryDir()
188
+ const historyDir = resolveHistoryDir()
189
189
  const history = new HistoryStore(historyDir, 7 * 24 * 60 * 60 * 1000, 1000)
190
190
  if (typeof ctx?.on === 'function') {
191
191
  ctx.on('dispose', () => history.dispose())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-subscriptions",
3
- "version": "0.6.31",
3
+ "version": "0.6.32",
4
4
  "description": "Use ChatGPT Codex, Claude, Grok, Antigravity, Kimi, GLM, Cursor, Kiro, Copilot, Qwen, ERNIE, Spark, JetBrains, Perplexity, Replit, and Cody subscriptions as DeepSeek Harness LLM providers via OAuth.",
5
5
  "license": "MIT",
6
6
  "type": "module",