Socket
Book a DemoInstallSign in
Socket

react-idle-timer

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-idle-timer - npm Package Compare versions

Comparing version

to
1.5.1

11

build/index.js

@@ -56,6 +56,5 @@ 'use strict';

remaining: null,
tId: null,
pageX: null,
pageY: null
}, _this._toggleIdleState = function () {
}, _this.tId = null, _this._toggleIdleState = function () {
// Set the state

@@ -85,3 +84,3 @@ _this.setState({

// clear any existing timeout
clearTimeout(_this.state.tId
clearTimeout(_this.tId

@@ -99,3 +98,3 @@ // if the idle timer is enabled, flip

// reset timers
clearTimeout(_this.state.tId);
clearTimeout(_this.tId);

@@ -115,3 +114,3 @@ // reset settings

// clear any existing timeout
clearTimeout(_this.state.tId
clearTimeout(_this.tId

@@ -176,3 +175,3 @@ // define how much is left on the timer

// Clear timeout to prevent delayed state changes
clearTimeout(this.state.tId);
clearTimeout(this.tId);
// Unbind all events

@@ -179,0 +178,0 @@ this.props.events.forEach(function (e) {

{
"name": "react-idle-timer",
"version": "1.5.0",
"version": "1.5.1",
"description": "Activity detection for React.js",

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.