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

@rehooks/document-visibility

Package Overview
Dependencies
Maintainers
6
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.1.1 to 1.2.0

1

index.js

@@ -6,2 +6,3 @@ 'use strict';

function getVisibility() {
if (typeof document === "undefined") return true;
return document.visibilityState;

@@ -8,0 +9,0 @@ }

2

package.json
{
"name": "@rehooks/document-visibility",
"version": "1.1.1",
"version": "1.2.0",
"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