@bbn/bbn 1.0.445 → 1.0.447

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/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 === 'year' ? 'FullYear' : realUnit];
255
+ const suffix = realUnit === 'y' ? 'FullYear' : unitsMap[realUnit];
256
256
  const getter = 'get' + suffix;
257
257
  const setter = 'set' + suffix;
258
258
  date[setter](date[getter]() + value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.445",
3
+ "version": "1.0.447",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",