Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ahooks

Package Overview
Dependencies
Maintainers
5
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ahooks - npm Package Compare versions

Comparing version 2.10.2 to 2.10.3

es/utils/canUseDom.d.ts

7

es/useDocumentVisibility/index.js

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

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