Comparing version 2.10.2 to 2.10.3
@@ -30,5 +30,6 @@ var __read = this && this.__read || function (o, n) { | ||
import useEventListener from '../useEventListener'; | ||
import canUseDom from '../utils/canUseDom'; | ||
var getVisibility = function getVisibility() { | ||
if (typeof document === 'undefined') return; | ||
if (!canUseDom()) return 'visible'; | ||
return document.visibilityState; | ||
@@ -47,3 +48,5 @@ }; | ||
}, { | ||
target: document | ||
target: function target() { | ||
return document; | ||
} | ||
}); | ||
@@ -50,0 +53,0 @@ return documentVisibility; |
@@ -44,4 +44,6 @@ "use strict"; | ||
var canUseDom_1 = __importDefault(require("../utils/canUseDom")); | ||
var getVisibility = function getVisibility() { | ||
if (typeof document === 'undefined') return; | ||
if (!canUseDom_1["default"]()) return 'visible'; | ||
return document.visibilityState; | ||
@@ -60,3 +62,5 @@ }; | ||
}, { | ||
target: document | ||
target: function target() { | ||
return document; | ||
} | ||
}); | ||
@@ -63,0 +67,0 @@ return documentVisibility; |
{ | ||
"name": "ahooks", | ||
"version": "2.10.2", | ||
"version": "2.10.3", | ||
"description": "react hooks library", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ahooksjs/use-request": "^2.8.5", | ||
"@ahooksjs/use-request": "^2.8.6", | ||
"@types/js-cookie": "^2.2.6", | ||
@@ -38,0 +38,0 @@ "dayjs": "^1.9.1", |
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
417466
279
10120
Updated@ahooksjs/use-request@^2.8.6