date-vir 7.1.0 → 7.1.1

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.
@@ -51,13 +51,13 @@ export function toRelativeString(datesOrDuration, units, options = {}) {
51
51
  (!check.isLengthAtLeast(unitValues, 1) ||
52
52
  (unitValues[0].unit === DurationUnit.Minutes &&
53
53
  /* node:coverage ignore next 1 */
54
- (diff.minutes || 0) < justNowThresholds.minutes) ||
54
+ Math.abs(diff.minutes || 0) < justNowThresholds.minutes) ||
55
55
  (unitValues[0].unit === DurationUnit.Seconds &&
56
56
  /* node:coverage ignore next 1 */
57
- (diff.seconds || 0) < justNowThresholds.seconds) ||
57
+ Math.abs(diff.seconds || 0) < justNowThresholds.seconds) ||
58
58
  (unitValues[0].unit === DurationUnit.Milliseconds &&
59
59
  /* node:coverage ignore next 1 */
60
- (diff.milliseconds || 0) < justNowThresholds.milliseconds));
60
+ Math.abs(diff.milliseconds || 0) < justNowThresholds.milliseconds));
61
61
  if (shouldUseJustNow) {
62
62
  return 'just now';
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "date-vir",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Easy and explicit dates and times.",
5
5
  "keywords": [
6
6
  "date",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@augment-vir/assert": "^31.1.0",
38
38
  "@augment-vir/common": "^31.0.1",
39
- "@date-vir/duration": "^7.1.0",
39
+ "@date-vir/duration": "^7.1.1",
40
40
  "@types/luxon": "^3.4.2",
41
41
  "luxon": "^3.5.0",
42
42
  "object-shape-tester": "^3.1.4",