@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/browser.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"));
|
|
@@ -2156,7 +2156,7 @@ function findCarveUngroupedSourcesFindings(ctx) {
|
|
|
2156
2156
|
var AUDIO_GROUP_TIMING_ATTRS = ["data-start", "data-duration", "data-track-index"];
|
|
2157
2157
|
function findAudioGroupNoMembersFindings(ctx) {
|
|
2158
2158
|
const memberGroupIds = new Set(
|
|
2159
|
-
ctx.tags.filter((tag) => tag.name === "audio").map((tag) => readAttr(tag.raw, "data-audio-group")).filter((id) => Boolean(id))
|
|
2159
|
+
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))
|
|
2160
2160
|
);
|
|
2161
2161
|
if (memberGroupIds.size === 0) return [];
|
|
2162
2162
|
const mayHaveCrossFileMembers = ctx.tags.some(
|