react-detect-offline
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -49,3 +49,3 @@ "use strict"; | ||
if (xhr.readyState === xhr.HEADERS_RECEIVED) { | ||
if (xhr.status >= 200 && xhr.status < 400) { | ||
if (xhr.status) { | ||
isOnline(); | ||
@@ -52,0 +52,0 @@ } else { |
{ | ||
"name": "react-detect-offline", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Offline and Online components for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
[![npm](https://img.shields.io/npm/v/react-detect-offline.svg)](https://www.npmjs.com/package/react-detect-offline) | ||
[![npm downloads](https://img.shields.io/npm/dm/react-detect-offline.svg)](https://www.npmjs.com/package/react-detect-offline) | ||
![gzip size](http://img.badgesize.io/https://unpkg.com/react-detect-offline?compression=gzip&label=gzip%20size) | ||
![badges](https://img.shields.io/badge/license-MIT-lightgrey.svg) | ||
![badges](https://img.shields.io/badge/badges-4-lightgrey.svg) | ||
@@ -6,0 +6,0 @@ ### Offline and Online components for React |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15194
0