@wistia/vhs 4.0.1-beta.269bd1b4.399d50c → 4.0.1-beta.4dfaa999.db889dd
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/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v4.0.1-beta.
|
|
3
|
+
* @license @wistia/vhs v4.0.1-beta.4dfaa999.db889dd
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -352,7 +352,9 @@ var dateOnlyStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
var timeAgoString = (date, { nowAnchor = /* @__PURE__ */ new Date(), includeTime = true } = {}) => {
|
|
355
|
-
if (isInvalidDate(date))
|
|
355
|
+
if (isInvalidDate(date)) {
|
|
356
|
+
return "";
|
|
357
|
+
}
|
|
356
358
|
const minutesAgo = (nowAnchor.valueOf() - date.valueOf()) / (secondsInMinute * milisecondsInSecond);
|
|
357
359
|
const minutesAgoRounded = Math.round(minutesAgo);
|
|
358
360
|
const differenceInDays2 = (0, import_date_fns.differenceInCalendarDays)(nowAnchor, date);
|