origem 0.2.0 → 0.2.1
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.
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1626,10 +1626,13 @@ async function runConnect(opts) {
|
|
|
1626
1626
|
authorizeUrl.searchParams.set("code_challenge_method", "S256");
|
|
1627
1627
|
authorizeUrl.searchParams.set("state", state);
|
|
1628
1628
|
authorizeUrl.searchParams.set("scope", "read write");
|
|
1629
|
-
info(`${color.cyan("\u2192")} opening your browser to authorise\u2026
|
|
1629
|
+
info(`${color.cyan("\u2192")} opening your browser to authorise\u2026`);
|
|
1630
1630
|
info(color.dim(` if nothing opens, paste this in your browser:
|
|
1631
1631
|
${authorizeUrl.toString()}`));
|
|
1632
1632
|
openBrowser(authorizeUrl.toString());
|
|
1633
|
+
info(
|
|
1634
|
+
color.bold("\n Waiting for you to authorise. Keep this terminal open.") + color.dim("\n It is not frozen \u2014 it is listening on 127.0.0.1 for the browser to come back.\n")
|
|
1635
|
+
);
|
|
1633
1636
|
const { code } = await server.waitForCode;
|
|
1634
1637
|
token = await exchangeCode(endpoints.token, {
|
|
1635
1638
|
code,
|
|
@@ -1728,7 +1731,7 @@ var STAGES = ["requisito", "design", "implementacao", "verificacao"];
|
|
|
1728
1731
|
async function runSpec(opts) {
|
|
1729
1732
|
const base = opts.apiUrl.replace(/\/$/, "");
|
|
1730
1733
|
const q = `?k=${encodeURIComponent(opts.key)}`;
|
|
1731
|
-
let res = await fetch(`${base}/specs${q}`, { signal: AbortSignal.timeout(15e3) });
|
|
1734
|
+
let res = await fetch(`${base}/api/specs${q}`, { signal: AbortSignal.timeout(15e3) });
|
|
1732
1735
|
if (res.status === 404) {
|
|
1733
1736
|
res = await fetch(`${base}/specsFeed${q}`, { signal: AbortSignal.timeout(15e3) });
|
|
1734
1737
|
}
|
package/package.json
CHANGED