Socket
Socket
Sign inDemoInstall

date-fns

Package Overview
Dependencies
0
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.5 to 3.0.6

4

areIntervalsOverlapping.js

@@ -67,7 +67,7 @@ "use strict";

+(0, _index.toDate)(intervalLeft.end),
].sort();
].sort((a, b) => a - b);
const [rightStartTime, rightEndTime] = [
+(0, _index.toDate)(intervalRight.start),
+(0, _index.toDate)(intervalRight.end),
].sort();
].sort((a, b) => a - b);

@@ -74,0 +74,0 @@ if (options?.inclusive)

@@ -80,3 +80,3 @@ # I18n Contribution Guide

also use the same regional standards: the first day of the week,
the week numbering (see: https://en.wikipedia.org/wiki/Week#Week_numbering),
the week numbering (see: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system),
calendar date format (see: https://en.wikipedia.org/wiki/Calendar_date)

@@ -132,3 +132,3 @@ and date representation (see: https://en.wikipedia.org/wiki/Date_and_time_representation_by_country

// Nth of January which is always in the first week of the year. See:
// https://en.wikipedia.org/wiki/Week#Week_numbering
// https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
// http://www.pjh2.de/datetime/weeknumber/wnd.php?l=en

@@ -135,0 +135,0 @@ firstWeekContainsDate: 1,

@@ -43,3 +43,3 @@ import type { LocalizedOptions, WeekOptions } from "./types.js";

* // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday
* const result = formatRelative(addDays(new Date(), -6), new Date())
* const result = formatRelative(subDays(new Date(), 6), new Date())
* //=> "last Thursday at 12:45 AM"

@@ -46,0 +46,0 @@ */

@@ -48,3 +48,3 @@ "use strict";

* // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday
* const result = formatRelative(addDays(new Date(), -6), new Date())
* const result = formatRelative(subDays(new Date(), 6), new Date())
* //=> "last Thursday at 12:45 AM"

@@ -51,0 +51,0 @@ */

@@ -25,3 +25,3 @@ import type {

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -28,0 +28,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -24,3 +24,3 @@ "use strict";

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -27,0 +27,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -25,3 +25,3 @@ import type {

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -28,0 +28,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -25,3 +25,3 @@ "use strict";

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -28,0 +28,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -25,3 +25,3 @@ import type {

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -28,0 +28,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -22,3 +22,3 @@ "use strict";

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -25,0 +25,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -26,3 +26,3 @@ import type {

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -29,0 +29,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -27,3 +27,3 @@ "use strict";

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -30,0 +30,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -25,3 +25,3 @@ import type {

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -28,0 +28,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -25,3 +25,3 @@ "use strict";

*
* Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
*

@@ -28,0 +28,0 @@ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).

@@ -121,3 +121,3 @@ import type { Locale } from "./locale/types.js";

*
* Please see https://en.wikipedia.org/wiki/Week#Week_numbering for more information.
* Please see https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system for more information.
*/

@@ -124,0 +124,0 @@ export type FirstWeekContainsDate = 1 | 4;

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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