@internationalized/date
Advanced tools
Comparing version 3.0.1-nightly.3363 to 3.0.1-nightly.3368
{ | ||
"name": "@internationalized/date", | ||
"version": "3.0.1-nightly.3363+2a6c48eb0", | ||
"version": "3.0.1-nightly.3368+bc1e8f829", | ||
"description": "Internationalized calendar, date, and time manipulation utilities", | ||
@@ -25,3 +25,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "2a6c48eb0099671cf9b530ec3d75882c549e9cb5" | ||
"gitHead": "bc1e8f82922ee0e7d52602efa30ff76dbc4e4708" | ||
} |
@@ -13,3 +13,3 @@ /* | ||
import {AnyCalendarDate, AnyTime, CycleOptions, CycleTimeOptions, DateDuration, DateField, DateFields, DateTimeDuration, Disambiguation, TimeDuration, TimeField, TimeFields} from './types'; | ||
import {AnyCalendarDate, AnyDateTime, AnyTime, CycleOptions, CycleTimeOptions, DateDuration, DateField, DateFields, DateTimeDuration, Disambiguation, TimeDuration, TimeField, TimeFields} from './types'; | ||
import {CalendarDate, CalendarDateTime, Time, ZonedDateTime} from './CalendarDate'; | ||
@@ -26,4 +26,4 @@ import {epochFromDate, fromAbsolute, toAbsolute, toCalendar, toCalendarDateTime} from './conversion'; | ||
export function add(date: CalendarDate | CalendarDateTime, duration: DateTimeDuration) { | ||
let mutableDate: Mutable<AnyCalendarDate> = date.copy(); | ||
let days = 'hour' in date ? addTimeFields(date, duration) : 0; | ||
let mutableDate: Mutable<AnyCalendarDate | AnyDateTime> = date.copy(); | ||
let days = 'hour' in mutableDate ? addTimeFields(mutableDate, duration) : 0; | ||
@@ -30,0 +30,0 @@ addYears(mutableDate, duration.years || 0); |
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 too big to display
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
823658