react-virtualized
Advanced tools
Comparing version 9.17.2 to 9.17.3
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -9,2 +9,6 @@ Object.defineProperty(exports, "__esModule", { | ||
var isBrowser = function isBrowser() { | ||
return typeof window !== 'undefined'; | ||
}; | ||
var isChrome = function isChrome() { | ||
@@ -15,7 +19,8 @@ return !!window.chrome && !!window.chrome.webstore; | ||
var getMaxElementSize = exports.getMaxElementSize = function getMaxElementSize() { | ||
if (isChrome()) { | ||
return CHROME_MAX_ELEMENT_SIZE; | ||
if (isBrowser()) { | ||
if (isChrome()) { | ||
return CHROME_MAX_ELEMENT_SIZE; | ||
} | ||
} | ||
return DEFAULT_MAX_ELEMENT_SIZE; | ||
}; |
var DEFAULT_MAX_ELEMENT_SIZE = 1500000; | ||
var CHROME_MAX_ELEMENT_SIZE = 1.67771e7; | ||
var isBrowser = function isBrowser() { | ||
return typeof window !== 'undefined'; | ||
}; | ||
var isChrome = function isChrome() { | ||
@@ -9,7 +13,8 @@ return !!window.chrome && !!window.chrome.webstore; | ||
export var getMaxElementSize = function getMaxElementSize() { | ||
if (isChrome()) { | ||
return CHROME_MAX_ELEMENT_SIZE; | ||
if (isBrowser()) { | ||
if (isChrome()) { | ||
return CHROME_MAX_ELEMENT_SIZE; | ||
} | ||
} | ||
return DEFAULT_MAX_ELEMENT_SIZE; | ||
}; |
@@ -6,3 +6,3 @@ { | ||
"user": "bvaughn", | ||
"version": "9.17.2", | ||
"version": "9.17.3", | ||
"homepage": "https://github.com/bvaughn/react-virtualized", | ||
@@ -39,3 +39,3 @@ "main": "dist/commonjs/index.js", | ||
"test:jest": "jest --no-watchman --runInBand", | ||
"test:ci": "cross-env JEST=ci jest --testPathPattern=jest.js --no-watchman --maxWorkers 2 --coverage && codecov", | ||
"test:ci": "cross-env JEST=ci jest --testPathPattern=\".(jest|ssr).js\" --no-watchman --maxWorkers 2 --coverage && codecov", | ||
"watch": "watch 'clear && npm run test -s' source", | ||
@@ -42,0 +42,0 @@ "watch:jest": "jest --no-watchman --watch" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1228675
23703