magpie-gemini-web 0.5.5 → 0.5.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.
@@ -683,7 +683,7 @@ export function isConnectRefused(err) {
683
683
  let current = err;
684
684
  while (current && !visited.has(current)) {
685
685
  visited.add(current);
686
- if (current.code === 'ECONNREFUSED' || current.code === 'ENOENT') return true;
686
+ if (current.code === 'ECONNREFUSED' || current.code === 'ConnectionRefused' || current.code === 'ENOENT') return true;
687
687
  if (Array.isArray(current.errors)) {
688
688
  for (const sub of current.errors) {
689
689
  if (isConnectRefused(sub)) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magpie-gemini-web",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Gemini Web and Google AI Studio provider for Magpie, backed by gemini-web2api-go and AIStudio2API",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",