Socket
Socket
Sign inDemoInstall

@internationalized/date

Package Overview
Dependencies
1
Maintainers
2
Versions
522
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.5-nightly.4647 to 3.5.5-nightly.4649

4

dist/types.d.ts

@@ -86,5 +86,5 @@ type Mutable<T> = {

/** Returns the lesser of the two provider dates. */
export function minDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B;
export function minDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined;
/** Returns the greater of the two provider dates. */
export function maxDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B;
export function maxDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined;
/** Returns whether the given date is on a weekend in the given locale. */

@@ -91,0 +91,0 @@ export function isWeekend(date: DateValue, locale: string): boolean;

{
"name": "@internationalized/date",
"version": "3.5.5-nightly.4647+1cacbf1d4",
"version": "3.5.5-nightly.4649+02f242f41",
"description": "Internationalized calendar, date, and time manipulation utilities",

@@ -30,3 +30,3 @@ "license": "Apache-2.0",

},
"gitHead": "1cacbf1d438675feb3859fee54b17e620b458d9c"
"gitHead": "02f242f41f0347b3f11e50b019c197127b7d0a08"
}

@@ -241,3 +241,3 @@ /*

/** Returns the lesser of the two provider dates. */
export function minDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B {
export function minDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined {
if (a && b) {

@@ -251,3 +251,3 @@ return a.compare(b) <= 0 ? a : b;

/** Returns the greater of the two provider dates. */
export function maxDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B {
export function maxDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined {
if (a && b) {

@@ -254,0 +254,0 @@ return a.compare(b) >= 0 ? a : b;

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc