@bbn/bbn 2.0.125 → 2.0.126

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.
@@ -113,8 +113,8 @@ export default function parse(input, format, cls = 'auto', force, locale) {
113
113
  throw new Error('Invalid minute: ' + n);
114
114
  }
115
115
  // NOTE: kept as in your original code, even though name suggests minutes.
116
- ctx.month = n;
117
- ctx.hasMonth = true;
116
+ ctx.minute = n;
117
+ ctx.hasMinute = true;
118
118
  }
119
119
  },
120
120
  {
@@ -560,10 +560,6 @@ export default function parse(input, format, cls = 'auto', force, locale) {
560
560
  if (value != null && apply) {
561
561
  apply(value);
562
562
  }
563
- if (!ctx.month && (fmt === "YYYY-MM-DD HH:mm:ss")) {
564
- bbn.fn.log(i);
565
- debugger;
566
- }
567
563
  }
568
564
  // ---- NEW: convert 12h + AM/PM to 24h ----
569
565
  if (ctx.uses12Hour) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.125",
3
+ "version": "2.0.126",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",