@rankcli/agent-runtime 0.0.3 → 0.0.4
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/fixer.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -27078,7 +27078,8 @@ function generateSitemapFix(context, url) {
|
|
|
27078
27078
|
}
|
|
27079
27079
|
function generateSPAMetaFix(context, framework) {
|
|
27080
27080
|
const { htmlPath } = context;
|
|
27081
|
-
|
|
27081
|
+
const frameworkLower = framework.name.toLowerCase();
|
|
27082
|
+
if (frameworkLower.includes("react") || frameworkLower.includes("vite") || framework.name === "Unknown") {
|
|
27082
27083
|
return {
|
|
27083
27084
|
issue: { code: "SPA_NO_META_MANAGEMENT", message: "SPA without dynamic meta tag management", severity: "warning" },
|
|
27084
27085
|
file: "src/components/SEOHead.tsx",
|
package/dist/index.mjs
CHANGED
|
@@ -26006,7 +26006,8 @@ function generateSitemapFix(context, url) {
|
|
|
26006
26006
|
}
|
|
26007
26007
|
function generateSPAMetaFix(context, framework) {
|
|
26008
26008
|
const { htmlPath } = context;
|
|
26009
|
-
|
|
26009
|
+
const frameworkLower = framework.name.toLowerCase();
|
|
26010
|
+
if (frameworkLower.includes("react") || frameworkLower.includes("vite") || framework.name === "Unknown") {
|
|
26010
26011
|
return {
|
|
26011
26012
|
issue: { code: "SPA_NO_META_MANAGEMENT", message: "SPA without dynamic meta tag management", severity: "warning" },
|
|
26012
26013
|
file: "src/components/SEOHead.tsx",
|
package/package.json
CHANGED
package/src/fixer.ts
CHANGED
|
@@ -441,9 +441,10 @@ function generateSitemapFix(context: FixContext, url: string): GeneratedFix {
|
|
|
441
441
|
|
|
442
442
|
function generateSPAMetaFix(context: FixContext, framework: FrameworkInfo): GeneratedFix {
|
|
443
443
|
const { htmlPath } = context;
|
|
444
|
+
const frameworkLower = framework.name.toLowerCase();
|
|
444
445
|
|
|
445
|
-
// For React apps, recommend react-helmet-async
|
|
446
|
-
if (
|
|
446
|
+
// For React/Vite apps, recommend react-helmet-async
|
|
447
|
+
if (frameworkLower.includes('react') || frameworkLower.includes('vite') || framework.name === 'Unknown') {
|
|
447
448
|
return {
|
|
448
449
|
issue: { code: 'SPA_NO_META_MANAGEMENT', message: 'SPA without dynamic meta tag management', severity: 'warning' },
|
|
449
450
|
file: 'src/components/SEOHead.tsx',
|