Socket
Socket
Sign inDemoInstall

react-compound-timer

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-compound-timer - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

8

build/components/Timer/Timer.js

@@ -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,

18

build/components/Timer/Timer.md

@@ -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",

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