@bbn/bbn 2.0.12 → 2.0.13
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 -6
- package/package.json +1 -1
package/dist/date.js
CHANGED
|
@@ -776,12 +776,7 @@ class bbnDateTool {
|
|
|
776
776
|
__classPrivateFieldSet(this, _bbnDateTool_value, new Date(), "f");
|
|
777
777
|
}
|
|
778
778
|
else if (inputFormat) {
|
|
779
|
-
|
|
780
|
-
__classPrivateFieldSet(this, _bbnDateTool_value, bbnDateTool.parse(value, inputFormat), "f");
|
|
781
|
-
}
|
|
782
|
-
catch (e) {
|
|
783
|
-
throw new Error('Error parsing date with format "' + inputFormat + '": ' + e.message);
|
|
784
|
-
}
|
|
779
|
+
__classPrivateFieldSet(this, _bbnDateTool_value, bbnDateTool.parse(value, inputFormat), "f");
|
|
785
780
|
}
|
|
786
781
|
else {
|
|
787
782
|
if (t === 'number' || (isNumber(value) && value !== '')) {
|