sekura 0.5.11 → 0.5.12

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/dist/errors.js +7 -2
  2. package/package.json +1 -1
package/dist/errors.js CHANGED
@@ -10,8 +10,13 @@ export async function reach(url, init) {
10
10
  }
11
11
  }
12
12
  export function refusal(data, status) {
13
- if (status >= 500)
14
- return serverTrouble(status);
13
+ // A 5xx that names its reason says it: "GitHub is not answering sign-ins just
14
+ // now" tells the person to wait a minute, where "had a problem answering
15
+ // (HTTP 503)" read as Sekura being down (Varsha's v5 test, 30 November 2026).
16
+ if (status >= 500) {
17
+ const why = typeof data.error_description === 'string' ? data.error_description.trim() : '';
18
+ return why ? `${HOST}: ${why.replace(/\.$/, '')} (HTTP ${status}). If it keeps happening, write to ${SUPPORT}.` : serverTrouble(status);
19
+ }
15
20
  const why = typeof data.error_description === 'string' ? data.error_description : typeof data.error === 'string' ? data.error : `HTTP ${status}`;
16
21
  return `${HOST} refused the sign-in: ${why}. Run the command again; if it keeps happening, write to ${SUPPORT}.`;
17
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sekura",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "Set up Sekura and scan your GitHub repositories from the terminal, and connect your coding tools: npx sekura@latest",
5
5
  "type": "module",
6
6
  "license": "MIT",