@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/dist/import.mjs +2 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -1
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
- package/src/manipulation.ts +2 -1
package/dist/import.mjs
CHANGED
|
@@ -981,10 +981,11 @@ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false
|
|
|
981
981
|
}
|
|
982
982
|
function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
|
|
983
983
|
let ms;
|
|
984
|
-
if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.days != null && duration.days !== 0) {
|
|
984
|
+
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) {
|
|
985
985
|
let res = $735220c2d4774dd3$export$e16d8520af44a096((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), {
|
|
986
986
|
years: duration.years,
|
|
987
987
|
months: duration.months,
|
|
988
|
+
weeks: duration.weeks,
|
|
988
989
|
days: duration.days
|
|
989
990
|
});
|
|
990
991
|
// Changing the date may change the timezone offset, so we need to recompute
|
package/dist/main.js
CHANGED
|
@@ -1045,10 +1045,11 @@ function $5c0571aa5b6fb5da$var$cycleValue(value, amount, min, max, round = false
|
|
|
1045
1045
|
}
|
|
1046
1046
|
function $5c0571aa5b6fb5da$export$96b1d28349274637(dateTime, duration) {
|
|
1047
1047
|
let ms;
|
|
1048
|
-
if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.days != null && duration.days !== 0) {
|
|
1048
|
+
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) {
|
|
1049
1049
|
let res = $5c0571aa5b6fb5da$export$e16d8520af44a096((0, $4ae0260a69729f1d$export$b21e0b124e224484)(dateTime), {
|
|
1050
1050
|
years: duration.years,
|
|
1051
1051
|
months: duration.months,
|
|
1052
|
+
weeks: duration.weeks,
|
|
1052
1053
|
days: duration.days
|
|
1053
1054
|
});
|
|
1054
1055
|
// Changing the date may change the timezone offset, so we need to recompute
|