react-interval-timer
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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 @@ }; |
{ | ||
"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": { |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12847
179
0