react-detect-offline
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -25,3 +25,3 @@ "use strict"; | ||
// these browsers don't fully support navigator.onLine, so we need to use a polling backup | ||
var unsupportedUserAgentsPattern = /Windows.*Chrome|Windows.*Firefox/; | ||
var unsupportedUserAgentsPattern = /Windows.*Chrome|Windows.*Firefox|Linux.*Chrome/; | ||
@@ -225,2 +225,2 @@ var config = { | ||
return Detector; | ||
}(Base); | ||
}(Base); |
{ | ||
"name": "react-detect-offline", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Offline and Online components for React", | ||
@@ -14,4 +14,11 @@ "main": "dist/index.js", | ||
"babel-cli": "^6.24.1", | ||
"babel-jest": "^21.0.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"react": "^15.6.1" | ||
"babel-preset-react": "^6.24.1", | ||
"enzyme": "^2.9.1", | ||
"enzyme-to-json": "^1.5.1", | ||
"jest": "^21.0.1", | ||
"react": "^15.6.1", | ||
"react-dom": "^15.6.1", | ||
"react-test-renderer": "^15.6.1" | ||
}, | ||
@@ -23,3 +30,5 @@ "bugs": { | ||
"scripts": { | ||
"compile": "babel --presets es2015 -d dist/ src/" | ||
"compile": "babel src/index.js -o dist/index.js", | ||
"test": "jest spec --watch", | ||
"test.cover": "jest spec --coverage" | ||
}, | ||
@@ -32,3 +41,18 @@ "keywords": [ | ||
"disconnect" | ||
] | ||
], | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.js", | ||
"!<rootDir>/node_modules/", | ||
"!<rootDir>/demo/" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 100, | ||
"functions": 100, | ||
"lines": 100, | ||
"statements": 100 | ||
} | ||
} | ||
} | ||
} |
@@ -9,3 +9,3 @@ import React, { | ||
// these browsers don't fully support navigator.onLine, so we need to use a polling backup | ||
const unsupportedUserAgentsPattern = /Windows.*Chrome|Windows.*Firefox/; | ||
const unsupportedUserAgentsPattern = /Windows.*Chrome|Windows.*Firefox|Linux.*Chrome/; | ||
@@ -12,0 +12,0 @@ const config = { |
Sorry, the diff of this file is not supported yet
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
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
189334
20
854
10
1