@internationalized/date 3.3.1-nightly.4013 → 3.3.1-nightly.4015

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internationalized/date",
3
- "version": "3.3.1-nightly.4013+60e30029e",
3
+ "version": "3.3.1-nightly.4015+8c9d3bdc2",
4
4
  "description": "Internationalized calendar, date, and time manipulation utilities",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "60e30029e5627ac514a354219a6f790f5fee45f7"
30
+ "gitHead": "8c9d3bdc279568e76e406adc924607c04d796009"
31
31
  }
@@ -364,10 +364,11 @@ function cycleValue(value: number, amount: number, min: number, max: number, rou
364
364
 
365
365
  export function addZoned(dateTime: ZonedDateTime, duration: DateTimeDuration): ZonedDateTime {
366
366
  let ms: number;
367
- if ((duration.years != null && duration.years !== 0) || (duration.months != null && duration.months !== 0) || (duration.days != null && duration.days !== 0)) {
367
+ if ((duration.years != null && duration.years !== 0) || (duration.months != null && duration.months !== 0) || (duration.weeks != null && duration.weeks !== 0) || (duration.days != null && duration.days !== 0)) {
368
368
  let res = add(toCalendarDateTime(dateTime), {
369
369
  years: duration.years,
370
370
  months: duration.months,
371
+ weeks: duration.weeks,
371
372
  days: duration.days
372
373
  });
373
374