@luutuankiet/gsd-reader 0.2.20 → 0.2.22
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/cli.cjs +2 -2
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -244,7 +244,7 @@ function promptPassword(prompt) {
|
|
|
244
244
|
|
|
245
245
|
async function httpRequest(url, options, data) {
|
|
246
246
|
const controller = new AbortController();
|
|
247
|
-
const timeout = setTimeout(() => controller.abort(),
|
|
247
|
+
const timeout = setTimeout(() => controller.abort(), 60000);
|
|
248
248
|
|
|
249
249
|
try {
|
|
250
250
|
const res = await fetch(url, {
|
|
@@ -265,7 +265,7 @@ async function httpRequest(url, options, data) {
|
|
|
265
265
|
}
|
|
266
266
|
} catch (err) {
|
|
267
267
|
if (err.name === 'AbortError') {
|
|
268
|
-
throw new Error('Request timed out after
|
|
268
|
+
throw new Error('Request timed out after 60s. Check server/proxy status.');
|
|
269
269
|
}
|
|
270
270
|
throw err;
|
|
271
271
|
} finally {
|