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

@travetto/base

Package Overview
Dependencies
Maintainers
1
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/base - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

2

package.json
{
"name": "@travetto/base",
"version": "4.0.5",
"version": "4.0.6",
"description": "Environment config and common utilities for travetto applications.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -115,2 +115,12 @@ const MIN = 1000 * 60;

}
/**
* Determine the number of units between two dates
*/
static unitsBetween(startDate: Date | number, endDate: Date | number, unit: TimeUnit): number {
const delta =
(typeof endDate === 'number' ? endDate : endDate.getTime()) -
(typeof startDate === 'number' ? startDate : startDate.getTime());
return delta / TIME_UNITS[unit];
}
}
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