@rehooks/document-visibility
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -6,2 +6,3 @@ 'use strict'; | ||
function getVisibility() { | ||
if (typeof document === "undefined") return true; | ||
return document.visibilityState; | ||
@@ -8,0 +9,0 @@ } |
{ | ||
"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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3548
22
1