Skip to content

Commit f3be32c

Browse files
committed
- extend default timeout from 20s to 40s to reduce some possibly edge cases
- bump version
1 parent a2fa860 commit f3be32c

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Logs
22

3+
## v3.0.4
4+
5+
- extend default timeout from 20s to 40s to reduce some possibly edge cases
6+
7+
38
## v3.0.3
49

510
- downgrade `node-fetch` to `2.6.7` for working with `require`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Common ldquery Options:
9898
`ld$.fetch("url", {}, {params: {qs: "some text"}}
9999
- is the same with this:
100100
`ld$.fetch("url?qs=some%20text", {}, {})
101-
* timeout: elapsed time ( in milliseconds ) for a timeout error to be fired.
101+
* timeout: elapsed time ( in milliseconds ) for a timeout error to be fired. default 40s
102102
* no-default-headers: default null. set this to true to bypass default headers in ld$.fetch.headers.
103103

104104

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
h = setTimeout(function(){
163163
rej(ajaxErr(1006, "timeout"));
164164
return h = null;
165-
}, opt.timeout || 20 * 1000);
165+
}, opt.timeout || 40 * 1000);
166166
return fetch(u, c).then(function(v){
167167
if (!h) {
168168
return;

dist/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "@loadingio/ldquery",
44
"description": "lite jQuery-like HTMLElement shorthands",
55
"license": "MIT",
6-
"version": "3.0.3",
6+
"version": "3.0.4",
77
"browser": "dist/index.min.js",
88
"main": "dist/index.min.js",
99
"files": [

src/index.ls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if !(ld$?) =>
6767
# see "error" section in README.
6868
rej ajax-err(1006, "timeout")
6969
h := null
70-
), (opt.timeout or (20 * 1000))
70+
), (opt.timeout or (40 * 1000))
7171
fetch(u, c)
7272
.then (v) ->
7373
if !h => return

0 commit comments

Comments
 (0)