@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
package/dist/js-joda-extra.js
CHANGED
|
@@ -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)
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
}
|
|
1744
1744
|
var quarterCount = this._year * 4 + (this._quarter.value() - 1);
|
|
1745
1745
|
var calcQuarters = quarterCount + quartersToAdd;
|
|
1746
|
-
var newYear = core.ChronoField.YEAR.checkValidIntValue(MathUtil$1.
|
|
1746
|
+
var newYear = core.ChronoField.YEAR.checkValidIntValue(MathUtil$1.floorDiv(calcQuarters, 4));
|
|
1747
1747
|
var newQuarter = MathUtil$1.floorMod(calcQuarters, 4) + 1;
|
|
1748
1748
|
return this._with(newYear, Quarter.of(newQuarter));
|
|
1749
1749
|
};
|