@hyperframes/lint 0.8.107 → 0.8.108
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/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -122,7 +122,7 @@ function isAudibleVideoTag(tagSource) {
|
|
|
122
122
|
if (hasAttrName(tagSource, "muted")) return false;
|
|
123
123
|
if (!hasAttrName(tagSource, "data-has-audio")) return true;
|
|
124
124
|
const declared = readAttr(tagSource, "data-has-audio");
|
|
125
|
-
return declared
|
|
125
|
+
return declared === "true";
|
|
126
126
|
}
|
|
127
127
|
function mediaTimeWindow(tagSource) {
|
|
128
128
|
const start = Number(readAttr(tagSource, "data-start"));
|
|
@@ -2159,7 +2159,7 @@ function findCarveUngroupedSourcesFindings(ctx) {
|
|
|
2159
2159
|
var AUDIO_GROUP_TIMING_ATTRS = ["data-start", "data-duration", "data-track-index"];
|
|
2160
2160
|
function findAudioGroupNoMembersFindings(ctx) {
|
|
2161
2161
|
const memberGroupIds = new Set(
|
|
2162
|
-
ctx.tags.filter((tag) => tag.name === "audio").map((tag) => readAttr(tag.raw, "data-audio-group")).filter((id) => Boolean(id))
|
|
2162
|
+
ctx.tags.filter((tag) => tag.name === "audio" || tag.name === "video" && isAudibleVideoTag(tag.raw)).map((tag) => readAttr(tag.raw, "data-audio-group")).filter((id) => Boolean(id))
|
|
2163
2163
|
);
|
|
2164
2164
|
if (memberGroupIds.size === 0) return [];
|
|
2165
2165
|
const mayHaveCrossFileMembers = ctx.tags.some(
|