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

react-interval-timer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-interval-timer - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

10

es/components/IntervalTimer.js

@@ -46,6 +46,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

IntervalTimer.prototype.componentDidMount = function componentDidMount() {
if (this.props.repeat) {
this.initializeInterval(this.props.callback, this.props.timeout);
} else {
this.initializeTimeout(this.props.callback, this.props.timeout);
if (this.props.enabled) {
if (this.props.repeat) {
this.initializeInterval(this.props.callback, this.props.timeout);
} else {
this.initializeTimeout(this.props.callback, this.props.timeout);
}
}

@@ -52,0 +54,0 @@ };

@@ -57,6 +57,8 @@ 'use strict';

IntervalTimer.prototype.componentDidMount = function componentDidMount() {
if (this.props.repeat) {
this.initializeInterval(this.props.callback, this.props.timeout);
} else {
this.initializeTimeout(this.props.callback, this.props.timeout);
if (this.props.enabled) {
if (this.props.repeat) {
this.initializeInterval(this.props.callback, this.props.timeout);
} else {
this.initializeTimeout(this.props.callback, this.props.timeout);
}
}

@@ -63,0 +65,0 @@ };

2

package.json
{
"name": "react-interval-timer",
"version": "1.0.4",
"version": "1.0.5",
"description": "React Component Wrapper for setTimeout and setInterval.",

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

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