New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

timer-countdown

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-countdown - npm Package Compare versions

Comparing version 0.0.9 to 0.1.2

5

lib/CountdownTimer.js

@@ -81,4 +81,5 @@ "use strict";

const differenceInTime = this.state.prevTime ? (currentTime - this.state.prevTime) : 0;
console.log('differenceInTime', differenceInTime);
const interval = this.props.interval;
const timeRemainingInInterval = interval - (differenceInTime % interval)
const timeRemainingInInterval = interval - (differenceInTime % interval);
let timeout = timeRemainingInInterval;

@@ -91,2 +92,3 @@ if (timeRemainingInInterval < (interval / 2.0)) {

if (is_mounted) {
console.log(thi.state);
this.setState({

@@ -97,2 +99,3 @@ timeoutId: countdownComplete? null : setInterval(this.startTimer, timeout),

});
console.log(this.state);
}

@@ -99,0 +102,0 @@ if (countdownComplete && this.props.completeCallback) {

2

package.json
{
"name": "timer-countdown",
"version": "0.0.9",
"version": "0.1.2",
"description": "A well designed ReactJs component for timer-counter",

@@ -5,0 +5,0 @@ "main": "lib/CountdownTimer.js",

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