@bbn/bbn 2.0.133 → 2.0.135

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.
@@ -200,6 +200,9 @@ export class bbnDt {
200
200
  }
201
201
  throw new TypeError('toZdt expects a bbnDt wrapper or ZonedDateTime');
202
202
  };
203
+ if (unit === 'd') {
204
+ debugger;
205
+ }
203
206
  // ---- CASE 1: same constructor → your original logic on raw Temporal ----
204
207
  const rawA = unwrap(a);
205
208
  const rawB = unwrap(b);
@@ -236,7 +239,7 @@ export class bbnDt {
236
239
  if (typeof za.until !== 'function') {
237
240
  throw new TypeError('ZonedDateTime does not support until/since');
238
241
  }
239
- const diff = za.until(zb, { largestUnit: realUnit });
242
+ const diff = za.until(zb, { largestUnit: realUnit, roundingMode: 'floor' });
240
243
  return diff.sign;
241
244
  }
242
245
  // ---- CASE 3: not compatible ----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.133",
3
+ "version": "2.0.135",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",