@goodandready/dsh-subscriptions 0.4.20 → 0.4.21

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 +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -373,7 +373,7 @@ export function apply(ctx, config) {
373
373
  verifier: row.verifier,
374
374
  challenge: row.challenge,
375
375
  state: row.state,
376
- }, code, fetch)
376
+ }, code, fetchForRef(ref))
377
377
  const slots = normalizeSlots(live().slots)
378
378
  const slot = slots.find((s) => s.ref === ref)
379
379
  if (slot && slot.label) blob.label = slot.label
@@ -921,7 +921,7 @@ export function apply(ctx, config) {
921
921
  }
922
922
  try {
923
923
  const cfg = vendorConfig(provider, live())
924
- const start = await vendor.deviceStart(cfg, fetch)
924
+ const start = await vendor.deviceStart(cfg, fetchForRef(oauthRef(provider, index)))
925
925
  const state = 'dev-' + Date.now() + '-' + Math.random().toString(36).slice(2, 10)
926
926
  sweepPending(Date.now())
927
927
  pending.set(state, {
@@ -970,7 +970,7 @@ export function apply(ctx, config) {
970
970
  const vendor = getVendor(row.provider)
971
971
  try {
972
972
  const cfg = vendorConfig(row.provider, live())
973
- const out = await vendor.devicePoll(cfg, { deviceAuthId: row.deviceAuthId, userCode: row.userCode }, fetch)
973
+ const out = await vendor.devicePoll(cfg, { deviceAuthId: row.deviceAuthId, userCode: row.userCode }, fetchForRef(row.ref))
974
974
  if (out.status !== 'authorized') {
975
975
  writeJson(res, 200, { ok: true, status: out.status })
976
976
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-subscriptions",
3
- "version": "0.4.20",
3
+ "version": "0.4.21",
4
4
  "description": "Use ChatGPT Codex, Claude, Grok, and Antigravity subscriptions as DeepSeek Harness LLM providers via OAuth.",
5
5
  "license": "MIT",
6
6
  "type": "module",