@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.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/classes/dt.js +1 -4
- package/package.json +1 -1
package/dist/dt/classes/dt.js
CHANGED
|
@@ -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 ----
|