@bbn/bbn 1.0.445 → 1.0.446
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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/date.js +1 -1
- package/package.json +1 -1
package/dist/date.js
CHANGED
|
@@ -252,7 +252,7 @@ class bbnDateTool {
|
|
|
252
252
|
const date = __classPrivateFieldGet(this, _bbnDateTool_value, "f") ? new Date(__classPrivateFieldGet(this, _bbnDateTool_value, "f").getTime()) : new Date();
|
|
253
253
|
if (unitsCorrespondence[unit]) {
|
|
254
254
|
const realUnit = unitsCorrespondence[unit];
|
|
255
|
-
const suffix = unitsMap[realUnit === '
|
|
255
|
+
const suffix = unitsMap[realUnit === 'y' ? 'FullYear' : realUnit];
|
|
256
256
|
const getter = 'get' + suffix;
|
|
257
257
|
const setter = 'set' + suffix;
|
|
258
258
|
date[setter](date[getter]() + value);
|