react-compound-timer
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -155,2 +155,3 @@ 'use strict'; | ||
_this2.setTime = _this2.setTime.bind(_this2); | ||
_this2.getTime = _this2.getTime.bind(_this2); | ||
_this2.setDirection = _this2.setDirection.bind(_this2); | ||
@@ -215,2 +216,7 @@ _this2.setCheckpoints = _this2.setCheckpoints.bind(_this2); | ||
}, { | ||
key: 'getTime', | ||
value: function getTime() { | ||
return this.timer.getTime(); | ||
} | ||
}, { | ||
key: 'setDirection', | ||
@@ -233,2 +239,3 @@ value: function setDirection(direction) { | ||
reset = this.reset, | ||
getTime = this.getTime, | ||
setTime = this.setTime, | ||
@@ -260,2 +267,3 @@ setDirection = this.setDirection, | ||
reset: reset, | ||
getTime: getTime, | ||
setTime: setTime, | ||
@@ -262,0 +270,0 @@ setDirection: setDirection, |
@@ -110,3 +110,3 @@ ### Forward Count | ||
> | ||
{({ start, resume, pause, stop, reset, timerState }) => ( | ||
{({ start, resume, pause, stop, reset, timerState, getTime }) => ( | ||
<React.Fragment> | ||
@@ -120,3 +120,3 @@ <div> | ||
</div> | ||
<div>{timerState}</div> | ||
<div>{timerState} {getTime()}</div> | ||
<br /> | ||
@@ -178,11 +178,7 @@ <div> | ||
> | ||
{() => ( | ||
<React.Fragment> | ||
<Timer.Days /> days | ||
<Timer.Hours /> hours | ||
<Timer.Minutes /> minutes | ||
<Timer.Seconds /> seconds | ||
<Timer.Milliseconds /> milliseconds | ||
</React.Fragment> | ||
)} | ||
<Timer.Days /> days | ||
<Timer.Hours /> hours | ||
<Timer.Minutes /> minutes | ||
<Timer.Seconds /> seconds | ||
<Timer.Milliseconds /> milliseconds | ||
</Timer> | ||
@@ -189,0 +185,0 @@ ``` |
@@ -99,2 +99,7 @@ 'use strict'; | ||
}, { | ||
key: 'getTime', | ||
value: function getTime() { | ||
return this.time; | ||
} | ||
}, { | ||
key: 'setDirection', | ||
@@ -101,0 +106,0 @@ value: function setDirection(direction) { |
{ | ||
"name": "react-compound-timer", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Timer compound react component", | ||
@@ -5,0 +5,0 @@ "main": "build/components/Timer/Timer", |
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
33728
618