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

sherlockjs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sherlockjs - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

20

lib/sherlock.js

@@ -282,3 +282,3 @@ /*!

// if this is an end date and the start date isn't an all day value,
(!(startTime && startTime.isAllDay) &&
(!(startTime && startTime.isAllDay) &&
// and if this match is too short to mean something,

@@ -289,3 +289,3 @@ match.length <= 2))

match = match.match(patterns.daysOnly);
var month = time.getMonth(),

@@ -314,3 +314,3 @@ day = match[1];

else {
// we are dealing with a time range that is today with start > end
// we are dealing with a time range that is today with start > end
// (ie. 9pm - 5pm when we want 9am - 5pm), roll back 12 hours.

@@ -590,10 +590,10 @@ start.setHours(start.getHours() - 12);

if(!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g,'');
};
if(!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g,'');
};
}
return {
// parses a string and returns an object defining the basic event
// parses a string and returns an object defining the basic event
// with properties: eventTitle, startDate, endDate, isAllDay

@@ -612,3 +612,3 @@ // plus anything Watson adds on...

tokens = readConfig("disableRanges") ? [str.toLowerCase()] : str.toLowerCase().split(patterns.rangeSplitters);
patterns.rangeSplitters.lastIndex = 0;

@@ -705,1 +705,3 @@

})();
module.exports.Sherlock = Sherlock;
{
"name": "sherlockjs",
"version": "0.0.2",
"version": "0.0.3",
"description": "A natural language datetime parser",

@@ -5,0 +5,0 @@ "main": "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