@bbn/bbn 1.0.474 → 1.0.475
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 +3 -0
- package/package.json +1 -1
package/dist/date.js
CHANGED
|
@@ -795,6 +795,9 @@ class bbnDateTool {
|
|
|
795
795
|
}
|
|
796
796
|
_bbnDateTool_value = new WeakMap(), _bbnDateTool_daysInMonth = new WeakMap();
|
|
797
797
|
function generatorFunction(value, inputFormat = null) {
|
|
798
|
+
if (value instanceof bbnDateTool) {
|
|
799
|
+
return value;
|
|
800
|
+
}
|
|
798
801
|
return new bbnDateTool(value, inputFormat);
|
|
799
802
|
}
|
|
800
803
|
export default generatorFunction;
|