@common.js/is-network-error 1.0.1 → 1.1.0
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/README.md +1 -1
- package/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
The [is-network-error](https://www.npmjs.com/package/is-network-error) package exported as CommonJS modules.
|
|
4
4
|
|
|
5
|
-
Exported from [is-network-error@1.0
|
|
5
|
+
Exported from [is-network-error@1.1.0](https://www.npmjs.com/package/is-network-error/v/1.1.0) using https://github.com/etienne-martin/common.js.
|
package/index.js
CHANGED
|
@@ -19,7 +19,8 @@ var errorMessages = new Set([
|
|
|
19
19
|
"The Internet connection appears to be offline.",
|
|
20
20
|
"Load failed",
|
|
21
21
|
"Network request failed",
|
|
22
|
-
"fetch failed"
|
|
22
|
+
"fetch failed",
|
|
23
|
+
"terminated"
|
|
23
24
|
]);
|
|
24
25
|
function isNetworkError(error) {
|
|
25
26
|
var isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
|