Socket
Socket
Sign inDemoInstall

date-and-time

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-and-time - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

4

esm/plugin/timezone.es.js

@@ -554,6 +554,8 @@ /**

break;
case 'hour':
values[type] = value % 24;
break;
case 'year':
case 'month':
case 'day':
case 'hour':
case 'minute':

@@ -560,0 +562,0 @@ case 'second':

{
"name": "date-and-time",
"version": "3.4.0",
"version": "3.4.1",
"description": "A Minimalist DateTime utility for Node.js and the browser",

@@ -55,5 +55,5 @@ "main": "date-and-time.js",

"mocha": "^10.6.0",
"rollup": "^4.18.0",
"rollup": "^4.18.1",
"tsd": "^0.31.1"
}
}

@@ -560,6 +560,8 @@ (function (global, factory) {

break;
case 'hour':
values[type] = value % 24;
break;
case 'year':
case 'month':
case 'day':
case 'hour':
case 'minute':

@@ -566,0 +568,0 @@ case 'second':

@@ -28,2 +28,5 @@ # date-and-time

- 3.4.1
- Fixed an issue where `formatTZ()` would output 0:00 as 24:00 in 24-hour format in Node.js.
- 3.4.0

@@ -36,5 +39,2 @@ - Added `zz` (time zone name) and `z` (time zone name abbreviation) tokens to the `timezone` plugin.

- 3.2.0
- Refactored `compile()`, `format()`, and `preparse()`, slightly improved performance.
## Usage

@@ -41,0 +41,0 @@

Sorry, the diff of this file is not supported yet

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