Socket
Socket
Sign inDemoInstall

luxon

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luxon - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

6

changelog.md
# Changelog
## 0.2.6
* Fix 'h' and 'hh' `toFormat` tokens for midnight
## 0.2.5
* Better shiftTo behavior for durations with floating point components
* Better `shiftTo` behavior for durations with floating point components

@@ -7,0 +11,0 @@ ## 0.2.4

2

package.json
{
"name": "luxon",
"version": "0.2.5",
"version": "0.2.6",
"description": "Immutable date wrapper",

@@ -5,0 +5,0 @@ "author": "Isaac Cambron",

@@ -164,5 +164,5 @@ import { DateTime } from '../datetime';

case 'h':
return this.num(dt.hour === 12 ? 12 : dt.hour % 12);
return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);
case 'hh':
return this.num(dt.hour === 12 ? 12 : dt.hour % 12, 2);
return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);
case 'H':

@@ -169,0 +169,0 @@ return this.num(dt.hour);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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