@bbn/bbn 2.0.145 → 2.0.147

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.
@@ -215,7 +215,7 @@ export class bbnDt {
215
215
  throw new TypeError('This Temporal type does not support until/since');
216
216
  }
217
217
  const diff = rawA.until(rawB, { smallestUnit: realUnit, largestUnit: realUnit, roundingMode: 'floor' });
218
- bbn.fn.log(['compare0', diff, realUnit, diff.sign, a.date(), b.date(), rawA.day, rawB.day]);
218
+ //bbn.fn.log(['compare0', diff, realUnit, diff.sign, a.date(), b.date(), rawA.day, rawB.day]);
219
219
  return diff.sign;
220
220
  }
221
221
  // ---- CASE 2: different constructors, but convertible bbnDt kinds ----
@@ -238,7 +238,7 @@ export class bbnDt {
238
238
  throw new TypeError('ZonedDateTime does not support until/since');
239
239
  }
240
240
  const diff = za.until(zb, { smallestUnit: realUnit, largestUnit: realUnit, roundingMode: 'floor' });
241
- bbn.fn.log(['compare', diff, realUnit, diff.sign, a.date(), b.date(), za.day, zb.day]);
241
+ //bbn.fn.log(['compare', diff, realUnit, diff.sign, a.date(), b.date(), za.day, zb.day]);
242
242
  return diff.sign;
243
243
  }
244
244
  // ---- CASE 3: not compatible ----
package/dist/dt.js CHANGED
@@ -190,7 +190,7 @@ const dt = (value, inputFormat = null, cls = 'auto') => {
190
190
  }
191
191
  }
192
192
  if (typeof value === 'number') {
193
- return new bbnDtDateTime(value);
193
+ return new bbnDtDateTime(value < 99999999999 ? value * 1000 : value);
194
194
  }
195
195
  else if (value.__isBbnDt) {
196
196
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.145",
3
+ "version": "2.0.147",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",