@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/index.js
CHANGED
|
@@ -100847,24 +100847,6 @@ var compositionRules = [
|
|
|
100847
100847
|
}
|
|
100848
100848
|
return findings;
|
|
100849
100849
|
},
|
|
100850
|
-
// root_composition_missing_data_duration
|
|
100851
|
-
({ rootTag }) => {
|
|
100852
|
-
const findings = [];
|
|
100853
|
-
if (!rootTag) return findings;
|
|
100854
|
-
const compId = readAttr(rootTag.raw, "data-composition-id");
|
|
100855
|
-
if (!compId) return findings;
|
|
100856
|
-
const hasDuration = readAttr(rootTag.raw, "data-duration") !== null;
|
|
100857
|
-
if (!hasDuration) {
|
|
100858
|
-
findings.push({
|
|
100859
|
-
code: "root_composition_missing_data_duration",
|
|
100860
|
-
severity: "warning",
|
|
100861
|
-
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.`,
|
|
100862
|
-
fixHint: 'Add data-duration="X" to the root composition element, where X is the total duration in seconds.',
|
|
100863
|
-
snippet: truncateSnippet(rootTag.raw)
|
|
100864
|
-
});
|
|
100865
|
-
}
|
|
100866
|
-
return findings;
|
|
100867
|
-
},
|
|
100868
100850
|
// standalone_composition_wrapped_in_template
|
|
100869
100851
|
({ rawSource, options }) => {
|
|
100870
100852
|
const findings = [];
|
|
@@ -108619,13 +108601,13 @@ function createFileServer2(options) {
|
|
|
108619
108601
|
let filePath = null;
|
|
108620
108602
|
if (compiledDir) {
|
|
108621
108603
|
const candidate = join12(compiledDir, relativePath);
|
|
108622
|
-
if (existsSync13(candidate) && isPathInside(candidate, compiledDir
|
|
108604
|
+
if (existsSync13(candidate) && isPathInside(candidate, compiledDir) && statSync6(candidate).isFile()) {
|
|
108623
108605
|
filePath = candidate;
|
|
108624
108606
|
}
|
|
108625
108607
|
}
|
|
108626
108608
|
if (!filePath) {
|
|
108627
108609
|
const candidate = join12(projectDir, relativePath);
|
|
108628
|
-
if (existsSync13(candidate) && isPathInside(candidate, projectDir
|
|
108610
|
+
if (existsSync13(candidate) && isPathInside(candidate, projectDir) && statSync6(candidate).isFile()) {
|
|
108629
108611
|
filePath = candidate;
|
|
108630
108612
|
}
|
|
108631
108613
|
}
|