New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@beyonk/date-utils

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beyonk/date-utils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

lib/date-utils.js

@@ -10,2 +10,8 @@ import dayjs from 'dayjs/esm'

const utcDate = dayjs.utc
function longDate (str) {
return utcDate(str).format('dddd, D MMMM YYYY')
}
function yearMonthDayDashed (timestamp) {

@@ -20,3 +26,3 @@ return dayjs(timestamp).format('YYYY-MM-DD')

function ymdNoTimezone (d) {
return dayjs.utc(d).format('YYYY-MM-DD')
return utcDate(d).format('YYYY-MM-DD')
}

@@ -26,3 +32,3 @@

const format = `Do MMM YYYY`
return dayjs.utc(d).format(format)
return utcDate(d).format(format)
}

@@ -45,6 +51,8 @@

const dateString = yearMonthDayDashed(date)
return dayjs.utc(dateString).toDate()
return utcDate(dateString).toDate()
}
export {
utcDate,
longDate,
stripTimezone,

@@ -51,0 +59,0 @@ dayMonthTime,

{
"name": "@beyonk/date-utils",
"version": "1.0.2",
"version": "1.0.3",
"description": "Beyonk Date Utils",

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

},
"gitHead": "896f310b3c292af281dc9c4b03ebf4fec6b55ede"
"gitHead": "0b52f1a9e57e7eb40f5c57f7d891ea0b983e0742"
}
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