@js-joda/extra 0.13.1 → 0.13.3
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/js-joda-extra.esm.js +2 -2
- package/dist/js-joda-extra.esm.js.map +1 -1
- package/dist/js-joda-extra.js +2 -2
- package/dist/js-joda-extra.js.map +1 -1
- package/dist/js-joda-extra.min.js +2 -2
- package/package.json +4 -4
- package/src/Interval.js +1 -1
- package/src/YearQuarter.js +1 -1
- package/typings/js-joda-extra.d.ts +12 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! @version @js-joda/extra - 0.13.
|
|
1
|
+
//! @version @js-joda/extra - 0.13.3
|
|
2
2
|
//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
|
|
3
3
|
//! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
4
4
|
//! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
@@ -1739,7 +1739,7 @@ var YearQuarter = function (_Temporal) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
var quarterCount = this._year * 4 + (this._quarter.value() - 1);
|
|
1741
1741
|
var calcQuarters = quarterCount + quartersToAdd;
|
|
1742
|
-
var newYear = ChronoField.YEAR.checkValidIntValue(MathUtil$1.
|
|
1742
|
+
var newYear = ChronoField.YEAR.checkValidIntValue(MathUtil$1.floorDiv(calcQuarters, 4));
|
|
1743
1743
|
var newQuarter = MathUtil$1.floorMod(calcQuarters, 4) + 1;
|
|
1744
1744
|
return this._with(newYear, Quarter.of(newQuarter));
|
|
1745
1745
|
};
|