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

@fastkit/visibility

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastkit/visibility - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

6

dist/visibility.esm-bundler.js
let _hidden = 'hidden';
let _visibilityChange = 'visibilitychange';
{
if ((typeof document !== 'undefined')) {
if (document.hidden !== undefined) {

@@ -26,2 +26,4 @@ _hidden = 'hidden';

function getVisibilityState() {
if (!(typeof document !== 'undefined'))
return 'hidden';
return document[HIDDEN] ? 'hidden' : 'visible';

@@ -46,3 +48,3 @@ }

constructor() {
{
if ((typeof document !== 'undefined')) {
document.addEventListener(VISIBILITY_CHANGE, (e) => {

@@ -49,0 +51,0 @@ this._setState(getVisibilityState(), e);

{
"name": "@fastkit/visibility",
"version": "0.2.1",
"version": "0.2.2",
"description": "@fastkit/visibility",

@@ -5,0 +5,0 @@ "buildOptions": {

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