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

@abcnews/fuzzy-dates

Package Overview
Dependencies
Maintainers
7
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abcnews/fuzzy-dates - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

lib/index.js

@@ -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",

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