@bbn/bbn 2.0.98 → 2.0.100

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.
@@ -789,7 +789,7 @@ export class bbnDt {
789
789
  }
790
790
  fromNow(unit = '') {
791
791
  const nowValue = bbnDt.nowForKind(this.kind);
792
- const temp = { kind: this.kind, value: nowValue };
792
+ const temp = bbn.dt(nowValue, null, this.kind);
793
793
  const rawDiffMs = this.diff(temp);
794
794
  const chosenUnit = unitsCorrespondence[unit] || this.guessUnit(rawDiffMs);
795
795
  if (!chosenUnit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.98",
3
+ "version": "2.0.100",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",