Socket
Socket
Sign inDemoInstall

@beyonk/date-utils

Package Overview
Dependencies
2
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.7.5 to 4.7.6

10

lib/interval/parse-interval.js

@@ -9,6 +9,8 @@ import dayjs from 'dayjs'

const start = toDate(date, tz)
const finish =
isDuration(other) ? start.add(dayjs.duration(other)) : toDate(other, tz)
return { start, finish }
if (isDuration(other)) {
const duration = dayjs.duration(other)
const seconds = duration.asSeconds()
return { start, finish: start.add(seconds, 'seconds') }
}
return { start, finish: toDate(other, tz) }
}

@@ -15,0 +17,0 @@

2

package.json
{
"name": "@beyonk/date-utils",
"version": "4.7.5",
"version": "4.7.6",
"description": "Beyonk Date Utils",

@@ -5,0 +5,0 @@ "author": "Antony Jones <aj@desirableobjects.co.uk>",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc