Socket
Socket
Sign inDemoInstall

react-detect-offline

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-detect-offline - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

.babelrc

4

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc