@bbn/bbn 2.0.185 → 2.0.186

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.
@@ -959,7 +959,8 @@ export class bbnDt {
959
959
  throw new Error('Invalid unit for diff: ' + unit);
960
960
  }
961
961
  const [, , ms] = match; // [shortUnit, rtfUnit, ms]
962
- return Math.floor(diff / ms);
962
+ const result = diff / ms;
963
+ return result < 0 ? Math.ceil(result) : Math.floor(result);
963
964
  }
964
965
  guessUnit(valueInMs) {
965
966
  const absDiff = Math.abs(valueInMs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.185",
3
+ "version": "2.0.186",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",