@bbn/bbn 1.0.441 → 1.0.442

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
@@ -257,14 +257,13 @@ class bbnDateTool {
257
257
  return d;
258
258
  }
259
259
  format(format = '') {
260
- const date = __classPrivateFieldGet(this, _bbnDateTool_value, "f") ? new Date(__classPrivateFieldGet(this, _bbnDateTool_value, "f").getTime()) : new Date();
261
260
  let str = '';
262
261
  if (format) {
263
262
  const parts = format.split('/(' + Object.keys(unitsCorrespondence).join('|') + ')/');
264
263
  each(parts, (part) => {
265
264
  if (part in unitsCorrespondence) {
266
265
  const suffix = unitsMap[unitsCorrespondence[part]];
267
- str += date[suffix];
266
+ str += this[suffix];
268
267
  }
269
268
  else {
270
269
  str += part;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.441",
3
+ "version": "1.0.442",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",