Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

relative-date-component

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relative-date-component - npm Package Compare versions

Comparing version
0.0.3
to
0.0.4
+1
-1
component.json

@@ -5,3 +5,3 @@ {

"description": "Relative date in words",
"version": "0.0.3",
"version": "0.0.4",
"keywords": ["date", "relative", "utility"],

@@ -8,0 +8,0 @@ "dependencies": {},

0.0.4 / 2012-09-26
==================
* use .ceil() instead of .round()
0.0.3 / 2012-09-26

@@ -3,0 +8,0 @@ ==================

@@ -40,6 +40,6 @@

if (ms == minute) return 'one minute';
if (ms < hour) return Math.round(ms / minute) + ' minutes';
if (ms < hour) return Math.ceil(ms / minute) + ' minutes';
if (ms == hour) return 'one hour';
if (ms < day) return Math.round(ms / hour) + ' hours';
if (ms < day) return Math.ceil(ms / hour) + ' hours';

@@ -50,6 +50,6 @@ if (ms == day) return 'one day';

if (ms == week) return 'one week';
if (ms < month) return Math.round(ms / week) + ' weeks';
if (ms < month) return Math.ceil(ms / week) + ' weeks';
if (ms == month) return 'one month';
if (ms < year) return Math.round(ms / month) + ' months';
if (ms < year) return Math.ceil(ms / month) + ' months';

@@ -56,0 +56,0 @@ if (ms == year) return 'one year';

{
"name": "relative-date-component",
"description": "Relative date in words",
"version": "0.0.3",
"version": "0.0.4",
"keywords": ["date", "relative", "utility"],

@@ -6,0 +6,0 @@ "dependencies": {},