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.2.0 to 1.3.0

4

lib/index.js

@@ -17,3 +17,3 @@ 'use strict';

function parse(possibleDatetime, helperDate) {
var tokens = possibleDatetime.toLowerCase().split(' ');
var tokens = possibleDatetime.indexOf(' ') > -1 ? possibleDatetime.toLowerCase().split(/[\s-]/) : possibleDatetime.toLowerCase().split(' ');

@@ -188,3 +188,3 @@ // Keep track of the meanings of the tokens

* Output a date (optionally fuzzy) as something like February 10, 2017 or Mid February, 2017
* @param {Date} date
* @param {Date} date
* @param {boolean} shortMonth

@@ -191,0 +191,0 @@ * @return {string}

{
"name": "@abcnews/fuzzy-dates",
"version": "1.2.0",
"version": "1.3.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