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

@rehooks/document-visibility

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rehooks/document-visibility - npm Package Compare versions

Comparing version 1.0.2 to 1.1.1

6

index.js

@@ -12,3 +12,3 @@ 'use strict';

function handleVisChange() {
function handleVisibilityChange() {
setDocumentVisibility(getVisibility());

@@ -18,5 +18,5 @@ }

useEffect(() => {
window.addEventListener('visibilitychange', handleVisChange);
window.addEventListener('visibilitychange', handleVisibilityChange);
return () => {
window.removeEventListener('visibilitychange', handleVisChange);
window.removeEventListener('visibilitychange', handleVisibilityChange);
};

@@ -23,0 +23,0 @@ }, []);

{
"name": "@rehooks/document-visibility",
"version": "1.0.2",
"version": "1.1.1",
"description": "React hook for subscribing to document visibility",

@@ -5,0 +5,0 @@ "main": "index.js",

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