@hyperframes/inspector 0.8.230 → 0.8.231

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.
Files changed (2) hide show
  1. package/dist/service.js +9 -2
  2. package/package.json +3 -3
package/dist/service.js CHANGED
@@ -59648,9 +59648,14 @@ var captionRules = [
59648
59648
  return findings;
59649
59649
  }
59650
59650
  ];
59651
+ function inheritsLibrariesFromHost({ options, rawSource }) {
59652
+ return options.isSubComposition === true || rawSource.trimStart().toLowerCase().startsWith("<template");
59653
+ }
59651
59654
  var adapterRules = [
59652
59655
  // missing_lottie_script
59653
- ({ tags, scripts }) => {
59656
+ (ctx) => {
59657
+ const { tags, scripts } = ctx;
59658
+ if (inheritsLibrariesFromHost(ctx)) return [];
59654
59659
  const { texts, srcs } = extractScriptTextsAndSrcs(scripts);
59655
59660
  const hasLottieAttr = tags.some((t) => readAttr(t.raw, "data-lottie-src") !== null);
59656
59661
  const usesLottieApi = texts.some(
@@ -59668,7 +59673,9 @@ var adapterRules = [
59668
59673
  ];
59669
59674
  },
59670
59675
  // missing_three_script
59671
- ({ scripts }) => {
59676
+ (ctx) => {
59677
+ const { scripts } = ctx;
59678
+ if (inheritsLibrariesFromHost(ctx)) return [];
59672
59679
  const { texts, srcs } = extractScriptTextsAndSrcs(scripts);
59673
59680
  const usesThree = texts.some((t) => /\bTHREE\./.test(t));
59674
59681
  const hasThreeScript = srcs.some((src) => /three/i.test(src));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.8.230",
3
+ "version": "0.8.231",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -43,8 +43,8 @@
43
43
  "htmlparser2": "^10.1.0",
44
44
  "postcss": "^8.5.8",
45
45
  "puppeteer-core": "^25.8.0",
46
- "@hyperframes/parsers": "0.8.230",
47
- "@hyperframes/core": "0.8.230"
46
+ "@hyperframes/parsers": "0.8.231",
47
+ "@hyperframes/core": "0.8.231"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",