@bbn/bbn 2.0.117 → 2.0.119

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.
@@ -535,6 +535,9 @@ export default function parse(input, format, cls = 'auto', force, locale) {
535
535
  input = inputDate.format(fmt);
536
536
  isValid = false;
537
537
  match = fullRegex.exec(input);
538
+ if (!match) {
539
+ debugger;
540
+ }
538
541
  }
539
542
  else {
540
543
  throw new Error(`Date string "${input}" does not match format "${fmt}"`);
package/dist/dt.js CHANGED
@@ -177,12 +177,7 @@ const dt = (value, inputFormat = null, cls = 'auto') => {
177
177
  }
178
178
  if (typeof value === 'string') {
179
179
  if (inputFormat) {
180
- let parsed;
181
- try {
182
- parsed = parse(value, inputFormat, cls, true);
183
- return parsed;
184
- }
185
- catch (e) { }
180
+ return parse(value, inputFormat, cls, true);
186
181
  }
187
182
  else {
188
183
  const format = guessFormat(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.117",
3
+ "version": "2.0.119",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",