aeorank 2.3.0 → 2.3.1
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.d.ts +14 -1
- package/dist/browser.js +8 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -262,12 +262,25 @@ interface RawDataSummary {
|
|
|
262
262
|
* Single entry point for all HTTP requests - no redundant fetches.
|
|
263
263
|
*/
|
|
264
264
|
declare function prefetchSiteData(domain: string): Promise<SiteData>;
|
|
265
|
+
interface SitemapDateAnalysis {
|
|
266
|
+
recentCount: number;
|
|
267
|
+
isUniform: boolean;
|
|
268
|
+
uniformDetail?: string;
|
|
269
|
+
totalWithDates: number;
|
|
270
|
+
distinctRecentDays: number;
|
|
271
|
+
}
|
|
272
|
+
declare function countRecentSitemapDates(sitemapText: string): SitemapDateAnalysis;
|
|
265
273
|
declare function extractRawDataSummary(data: SiteData): RawDataSummary;
|
|
266
274
|
/**
|
|
267
275
|
* Run all 26 criteria checks using pre-fetched site data.
|
|
268
276
|
* All functions are synchronous (no HTTP calls) - data was already fetched.
|
|
269
277
|
*/
|
|
270
278
|
declare function auditSiteFromData(data: SiteData): CriterionResult[];
|
|
279
|
+
/**
|
|
280
|
+
* Legacy entry point: fetches data and runs all checks.
|
|
281
|
+
* Used by analyzer.ts for the /api/aeo/analyze endpoint.
|
|
282
|
+
*/
|
|
283
|
+
declare function auditSite(targetUrl: string): Promise<CriterionResult[]>;
|
|
271
284
|
|
|
272
285
|
declare function calculateOverallScore(criteria: CriterionResult[]): number;
|
|
273
286
|
|
|
@@ -521,4 +534,4 @@ interface ComparisonResult {
|
|
|
521
534
|
*/
|
|
522
535
|
declare function compare(domainA: string, domainB: string, options?: AuditOptions): Promise<ComparisonResult>;
|
|
523
536
|
|
|
524
|
-
export { type AuditData, type AuditFinding, type AuditStatus, CRITERION_LABELS, type ComparisonResult, type CrawlOptions, type CrawlResult, type CriterionComparison, type CriterionDetail, type CriterionResult, type Deliverable, type DetailedFinding, type FetchResult, type FindingSeverity, type FindingType, type FixAction, type FixPhase, type FixPlan, type FixPlanSummary, type ImpactLevel, type LinkEdge, type LinkGraph, type LinkGraphStats, type PageCategory$1 as PageCategory, type PageCriterionScore$1 as PageCriterionScore, type PageIssue, type PageNode, type PageReview, type PageScoreResult, type ParkedDomainResult, type PitchMetric, type Priority, type RawDataSummary, type ScoreCardItem, type SerializedLinkGraph, type Severity, type SiteData, type Status, type TopicCluster, analyzeAllPages, analyzePage, auditSiteFromData, buildDetailedFindings, buildLinkGraph, buildScorecard, calculateOverallScore, compare, crawlFullSite, detectParkedDomain, extractAllUrlsFromSitemap, extractContentPagesFromSitemap, extractInternalLinks, extractLinksWithAnchors, extractNavLinks, extractRawDataSummary, fetchMultiPageData, generateBottomLine, generateFixPlan, generateOpportunities, generatePitchNumbers, generateVerdict, inferCategory, prefetchSiteData, scoreAllPages, scorePage, scoreToStatus, serializeLinkGraph };
|
|
537
|
+
export { type AuditData, type AuditFinding, type AuditStatus, CRITERION_LABELS, type ComparisonResult, type CrawlOptions, type CrawlResult, type CriterionComparison, type CriterionDetail, type CriterionResult, type Deliverable, type DetailedFinding, type FetchResult, type FindingSeverity, type FindingType, type FixAction, type FixPhase, type FixPlan, type FixPlanSummary, type ImpactLevel, type LinkEdge, type LinkGraph, type LinkGraphStats, type PageCategory$1 as PageCategory, type PageCriterionScore$1 as PageCriterionScore, type PageIssue, type PageNode, type PageReview, type PageScoreResult, type ParkedDomainResult, type PitchMetric, type Priority, type RawDataSummary, type ScoreCardItem, type SerializedLinkGraph, type Severity, type SiteData, type SitemapDateAnalysis, type Status, type TopicCluster, analyzeAllPages, analyzePage, auditSite, auditSiteFromData, buildDetailedFindings, buildLinkGraph, buildScorecard, calculateOverallScore, compare, countRecentSitemapDates, crawlFullSite, detectParkedDomain, extractAllUrlsFromSitemap, extractContentPagesFromSitemap, extractInternalLinks, extractLinksWithAnchors, extractNavLinks, extractRawDataSummary, fetchMultiPageData, generateBottomLine, generateFixPlan, generateOpportunities, generatePitchNumbers, generateVerdict, inferCategory, prefetchSiteData, scoreAllPages, scorePage, scoreToStatus, serializeLinkGraph };
|
package/dist/browser.js
CHANGED
|
@@ -2077,6 +2077,12 @@ function auditSiteFromData(data) {
|
|
|
2077
2077
|
checkContentDepth(data, topicCoherence.score)
|
|
2078
2078
|
];
|
|
2079
2079
|
}
|
|
2080
|
+
async function auditSite(targetUrl) {
|
|
2081
|
+
const url = new URL(targetUrl.startsWith("http") ? targetUrl : `https://${targetUrl}`);
|
|
2082
|
+
const domain = url.hostname.replace(/^www\./, "");
|
|
2083
|
+
const data = await prefetchSiteData(domain);
|
|
2084
|
+
return auditSiteFromData(data);
|
|
2085
|
+
}
|
|
2080
2086
|
|
|
2081
2087
|
// src/scoring.ts
|
|
2082
2088
|
var WEIGHTS = {
|
|
@@ -4917,12 +4923,14 @@ export {
|
|
|
4917
4923
|
CRITERION_LABELS,
|
|
4918
4924
|
analyzeAllPages,
|
|
4919
4925
|
analyzePage,
|
|
4926
|
+
auditSite,
|
|
4920
4927
|
auditSiteFromData,
|
|
4921
4928
|
buildDetailedFindings,
|
|
4922
4929
|
buildLinkGraph,
|
|
4923
4930
|
buildScorecard,
|
|
4924
4931
|
calculateOverallScore,
|
|
4925
4932
|
compare,
|
|
4933
|
+
countRecentSitemapDates,
|
|
4926
4934
|
crawlFullSite,
|
|
4927
4935
|
detectParkedDomain,
|
|
4928
4936
|
extractAllUrlsFromSitemap,
|