@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/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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.474",
3
+ "version": "1.0.475",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",