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
4
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 3.0.0 to 3.0.1

12

CHANGELOG.json

@@ -5,2 +5,14 @@ {

{
"version": "3.0.1",
"tag": "@beyonk/date-utils_v3.0.1",
"date": "Wed, 26 Aug 2020 13:47:45 GMT",
"comments": {
"patch": [
{
"comment": "litn"
}
]
}
},
{
"version": "3.0.0",

@@ -7,0 +19,0 @@ "tag": "@beyonk/date-utils_v3.0.0",

9

CHANGELOG.md
# Change Log - @beyonk/date-utils
This log was last generated on Thu, 23 Jul 2020 09:28:23 GMT and should not be manually modified.
This log was last generated on Wed, 26 Aug 2020 13:47:45 GMT and should not be manually modified.
## 3.0.1
Wed, 26 Aug 2020 13:47:45 GMT
### Patches
- litn
## 3.0.0

@@ -6,0 +13,0 @@ Thu, 23 Jul 2020 09:28:23 GMT

4

lib/date-utils.js

@@ -38,3 +38,3 @@ import dayjs from 'dayjs/esm'

function humanDateNoTimezone (d) {
const format = `Do MMM YYYY`
const format = 'Do MMM YYYY'
return utcDate(d).format(format)

@@ -74,3 +74,3 @@ }

for (let d = 0 ; d < limit ; d += step) {
for (let d = 0; d < limit; d += step) {
current = current.add(step, 'days')

@@ -77,0 +77,0 @@ callback(schedule, current)

@@ -8,3 +8,3 @@ import { findTimeZone, getZonedTime, populateTimeZones, setTimeZone } from 'timezone-support/dist/lookup-convert'

function updateTime(instance, zonedTime, convertTimezone) {
function updateTime (instance, zonedTime, convertTimezone) {
const { year, month, day, dayOfWeek, hours, minutes, epoch, zone } = zonedTime

@@ -39,7 +39,7 @@ const date = instance.$d

function padToTwoDigits(number) {
function padToTwoDigits (number) {
return number > 9 ? number : `0${number}`
}
function formatTimeZoneOffset(offset, separator) {
function formatTimeZoneOffset (offset, separator) {
let sign

@@ -57,3 +57,3 @@ if (offset <= 0) {

function formatTimezoneTokens(instance, format) {
function formatTimezoneTokens (instance, format) {
const str = format || FORMAT_DEFAULT

@@ -121,2 +121,2 @@ return str.replace(/z|ZZ|Z/g, (match) => {

}
}
}

@@ -51,2 +51,2 @@ import { expect } from '@hapi/code'

})
})
})
{
"name": "@beyonk/date-utils",
"version": "3.0.0",
"version": "3.0.1",
"description": "Beyonk Date Utils",

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

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