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

react-component-countdown-timer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-component-countdown-timer - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

10

lib/index.js

@@ -77,6 +77,6 @@ "use strict";

var day = Math.floor(time / 86400);
day = day.toString().length === 1 ? "0".concat(day) : day;
minutes = minutes.toString().length === 1 ? "0".concat(minutes) : minutes;
seconds = seconds.toString().length === 1 ? "0".concat(seconds) : seconds;
hours = hours.toString().length === 1 ? "0".concat(hours) : hours;
day = day < 10 ? "0".concat(day) : day;
minutes = minutes < 10 ? "0".concat(minutes) : minutes;
seconds = seconds < 10 ? "0".concat(seconds) : seconds;
hours = hours < 10 ? "0".concat(hours) : hours;

@@ -226,2 +226,4 @@ if (showTitle) {

_this2.props.onEnd();
clearInterval(_this2.timer);
}

@@ -228,0 +230,0 @@ });

2

package.json
{
"name": "react-component-countdown-timer",
"version": "0.1.7",
"version": "0.1.8",
"description": "Count down timer component for react",

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

Sorry, the diff of this file is not supported yet

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