@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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/date.js +1 -2
- package/package.json +1 -1
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 +=
|
|
266
|
+
str += this[suffix];
|
|
268
267
|
}
|
|
269
268
|
else {
|
|
270
269
|
str += part;
|