@openfort/cli 0.1.10 → 0.1.11
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/cli.js +3 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -167,6 +167,7 @@ function waitForCallback(port, state) {
|
|
|
167
167
|
return new Promise((resolve, reject) => {
|
|
168
168
|
const timeout = setTimeout(() => {
|
|
169
169
|
server.close();
|
|
170
|
+
server.closeAllConnections();
|
|
170
171
|
reject(new Error("Login timed out after 5 minutes. Please try again."));
|
|
171
172
|
}, 5 * 60 * 1e3);
|
|
172
173
|
const server = createServer((req, res) => {
|
|
@@ -184,6 +185,7 @@ function waitForCallback(port, state) {
|
|
|
184
185
|
res.end(callbackPage("Login failed", "Something went wrong. You can close this window.", "error"));
|
|
185
186
|
clearTimeout(timeout);
|
|
186
187
|
server.close();
|
|
188
|
+
server.closeAllConnections();
|
|
187
189
|
reject(new Error(errorDescription || error));
|
|
188
190
|
return;
|
|
189
191
|
}
|
|
@@ -206,6 +208,7 @@ function waitForCallback(port, state) {
|
|
|
206
208
|
res.end(callbackPage("Login successful!", "You can close this window and return to your terminal.", "success", agentSkillHtml));
|
|
207
209
|
clearTimeout(timeout);
|
|
208
210
|
server.close();
|
|
211
|
+
server.closeAllConnections();
|
|
209
212
|
resolve({ apiKey, publishableKey: publishableKey || void 0, projectId: projectId || void 0, project: project || "unknown" });
|
|
210
213
|
} else {
|
|
211
214
|
res.writeHead(404);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfort/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Openfort CLI — manage wallets, policies, and transactions from the terminal.",
|
|
5
5
|
"author": "Openfort (https://www.openfort.io)",
|
|
6
6
|
"bugs": "https://github.com/openfort-xyz/cli/issues",
|