@bbn/bbn 2.0.135 → 2.0.136

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,9 +200,6 @@ 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
- }
206
203
  // ---- CASE 1: same constructor → your original logic on raw Temporal ----
207
204
  const rawA = unwrap(a);
208
205
  const rawB = unwrap(b);
@@ -217,7 +214,7 @@ export class bbnDt {
217
214
  if (typeof rawA.until !== 'function') {
218
215
  throw new TypeError('This Temporal type does not support until/since');
219
216
  }
220
- const diff = rawA.until(rawB, { largestUnit: realUnit });
217
+ const diff = rawA.until(rawB, { smallestUnit: realUnit, largestUnit: realUnit });
221
218
  return diff.sign;
222
219
  }
223
220
  // ---- CASE 2: different constructors, but convertible bbnDt kinds ----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.135",
3
+ "version": "2.0.136",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",