@hyperframes/producer 0.5.0-alpha.1 → 0.5.0-alpha.3
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/public-server.js
CHANGED
|
@@ -103636,24 +103636,6 @@ var compositionRules = [
|
|
|
103636
103636
|
}
|
|
103637
103637
|
return findings;
|
|
103638
103638
|
},
|
|
103639
|
-
// root_composition_missing_data_duration
|
|
103640
|
-
({ rootTag }) => {
|
|
103641
|
-
const findings = [];
|
|
103642
|
-
if (!rootTag) return findings;
|
|
103643
|
-
const compId = readAttr(rootTag.raw, "data-composition-id");
|
|
103644
|
-
if (!compId) return findings;
|
|
103645
|
-
const hasDuration = readAttr(rootTag.raw, "data-duration") !== null;
|
|
103646
|
-
if (!hasDuration) {
|
|
103647
|
-
findings.push({
|
|
103648
|
-
code: "root_composition_missing_data_duration",
|
|
103649
|
-
severity: "warning",
|
|
103650
|
-
message: `Root composition "${compId}" is missing data-duration. Without an explicit duration, the runtime may infer Infinity for compositions with repeating animations, causing playback issues.`,
|
|
103651
|
-
fixHint: 'Add data-duration="X" to the root composition element, where X is the total duration in seconds.',
|
|
103652
|
-
snippet: truncateSnippet(rootTag.raw)
|
|
103653
|
-
});
|
|
103654
|
-
}
|
|
103655
|
-
return findings;
|
|
103656
|
-
},
|
|
103657
103639
|
// standalone_composition_wrapped_in_template
|
|
103658
103640
|
({ rawSource, options }) => {
|
|
103659
103641
|
const findings = [];
|
|
@@ -108784,13 +108766,13 @@ function createFileServer2(options) {
|
|
|
108784
108766
|
let filePath = null;
|
|
108785
108767
|
if (compiledDir) {
|
|
108786
108768
|
const candidate = join12(compiledDir, relativePath);
|
|
108787
|
-
if (existsSync13(candidate) && isPathInside(candidate, compiledDir
|
|
108769
|
+
if (existsSync13(candidate) && isPathInside(candidate, compiledDir) && statSync6(candidate).isFile()) {
|
|
108788
108770
|
filePath = candidate;
|
|
108789
108771
|
}
|
|
108790
108772
|
}
|
|
108791
108773
|
if (!filePath) {
|
|
108792
108774
|
const candidate = join12(projectDir, relativePath);
|
|
108793
|
-
if (existsSync13(candidate) && isPathInside(candidate, projectDir
|
|
108775
|
+
if (existsSync13(candidate) && isPathInside(candidate, projectDir) && statSync6(candidate).isFile()) {
|
|
108794
108776
|
filePath = candidate;
|
|
108795
108777
|
}
|
|
108796
108778
|
}
|