@chahakshah/terabox-api 2.6.4 → 2.6.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.
- package/api.js +2 -2
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -427,7 +427,7 @@ class TeraBoxApp {
|
|
|
427
427
|
|
|
428
428
|
// Constants
|
|
429
429
|
TERABOX_DOMAIN = 'terabox.com';
|
|
430
|
-
TERABOX_TIMEOUT =
|
|
430
|
+
TERABOX_TIMEOUT = 20000;
|
|
431
431
|
|
|
432
432
|
// app data
|
|
433
433
|
data = {
|
|
@@ -1676,7 +1676,7 @@ class TeraBoxApp {
|
|
|
1676
1676
|
clearTimeout(timeoutId);
|
|
1677
1677
|
|
|
1678
1678
|
if (req.statusCode !== 200) {
|
|
1679
|
-
throw new Error(`HTTP error! Status: ${req
|
|
1679
|
+
throw new Error(`HTTP error! Status: ${req}`);
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
1682
|
const res = await req.body.json();
|