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

ngx-countdown-timer

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-countdown-timer - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

9

index.js

@@ -32,11 +32,6 @@ import { Component, Input, NgModule } from '@angular/core';

}
if (datetime < now) {
var /** @type {?} */ milisec_diff = now - datetime;
}
else {
var /** @type {?} */ milisec_diff = datetime - now;
}
var /** @type {?} */ milisec_diff = datetime - now;
var /** @type {?} */ days = Math.floor(milisec_diff / 1000 / 60 / (60 * 24));
var /** @type {?} */ date_diff = new Date(milisec_diff);
var /** @type {?} */ day_string = (days) ? days + " " : "";
var /** @type {?} */ day_string = (days) ? this.twoDigit(days) + ":" : "";
return day_string + this.twoDigit(date_diff.getHours()) +

@@ -43,0 +38,0 @@ ":" + this.twoDigit(date_diff.getMinutes()) + ":"

@@ -35,11 +35,6 @@ (function (global, factory) {

}
if (datetime < now) {
var /** @type {?} */ milisec_diff = now - datetime;
}
else {
var /** @type {?} */ milisec_diff = datetime - now;
}
var /** @type {?} */ milisec_diff = datetime - now;
var /** @type {?} */ days = Math.floor(milisec_diff / 1000 / 60 / (60 * 24));
var /** @type {?} */ date_diff = new Date(milisec_diff);
var /** @type {?} */ day_string = (days) ? days + " " : "";
var /** @type {?} */ day_string = (days) ? this.twoDigit(days) + ":" : "";
return day_string + this.twoDigit(date_diff.getHours()) +

@@ -46,0 +41,0 @@ ":" + this.twoDigit(date_diff.getMinutes()) + ":"

{
"name": "ngx-countdown-timer",
"version": "0.1.3",
"version": "0.1.4",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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