@abcnews/fuzzy-dates
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -188,5 +188,6 @@ 'use strict'; | ||
* @param {Date} date | ||
* @param {boolean} shortMonth | ||
* @return {string} | ||
*/ | ||
function formatDate(date) { | ||
function formatDate(date, shortMonth) { | ||
var tokens = []; | ||
@@ -200,3 +201,7 @@ | ||
// Month | ||
tokens.push(FULL_MONTHS[date.getMonth()]); | ||
var month = FULL_MONTHS[date.getMonth()]; | ||
if (shortMonth) { | ||
month = month.slice(0, 3); | ||
} | ||
tokens.push(month); | ||
@@ -203,0 +208,0 @@ // Day number |
{ | ||
"name": "@abcnews/fuzzy-dates", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A fuzzy date parser/sorter", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8769
180