@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.
Files changed (2) hide show
  1. package/api.js +2 -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 = 10000;
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.statusCode}`);
1679
+ throw new Error(`HTTP error! Status: ${req}`);
1680
1680
  }
1681
1681
 
1682
1682
  const res = await req.body.json();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chahakshah/terabox-api",
3
3
  "name_ext": "TeraBox API",
4
- "version": "2.6.4",
4
+ "version": "2.6.6",
5
5
  "main": "api.js",
6
6
  "type": "module",
7
7
  "keywords": [