Comparing version 0.0.5-patch.1 to 0.0.5-patch.2
@@ -11,3 +11,3 @@ import { SeoAnalyzer } from './seo-analyzer'; | ||
private makeContentLowerCase; | ||
analyzeSeo(): { | ||
analyzeSeo(): Promise<{ | ||
seoScore: number; | ||
@@ -32,3 +32,3 @@ wordCount: number; | ||
}; | ||
}; | ||
}>; | ||
} |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -23,19 +32,21 @@ exports.SeoCheck = void 0; | ||
analyzeSeo() { | ||
return { | ||
seoScore: this.seoAnalyzer.getSeoScore(), | ||
wordCount: this.htmlAnalyzer.getWordCount(), | ||
keywordSeoScore: this.seoAnalyzer.getKeywordSeoScore(), | ||
keywordFrequency: this.seoAnalyzer.countOccurrencesInString(), | ||
messages: this.seoAnalyzer.messages, | ||
keywordDensity: this.seoAnalyzer.keywordDensity, | ||
subKeywordDensity: this.seoAnalyzer.getSubKeywordsDensity(), | ||
totalLinks: this.htmlAnalyzer.getAllLinks().length, | ||
internalLinks: this.htmlAnalyzer.getInternalLinks(), | ||
outboundLinks: this.htmlAnalyzer.getOutboundLinks(), | ||
titleSEO: { | ||
subKeywordsWithTitle: this.seoAnalyzer.getSubKeywordsInTitle(), | ||
keywordWithTitle: this.seoAnalyzer.getKeywordInTitle(), | ||
wordCount: this.seoAnalyzer.getTitleWordCount(), | ||
} | ||
}; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return { | ||
seoScore: this.seoAnalyzer.getSeoScore(), | ||
wordCount: this.htmlAnalyzer.getWordCount(), | ||
keywordSeoScore: this.seoAnalyzer.getKeywordSeoScore(), | ||
keywordFrequency: this.seoAnalyzer.countOccurrencesInString(), | ||
messages: this.seoAnalyzer.messages, | ||
keywordDensity: this.seoAnalyzer.keywordDensity, | ||
subKeywordDensity: this.seoAnalyzer.getSubKeywordsDensity(), | ||
totalLinks: this.htmlAnalyzer.getAllLinks().length, | ||
internalLinks: this.htmlAnalyzer.getInternalLinks(), | ||
outboundLinks: this.htmlAnalyzer.getOutboundLinks(), | ||
titleSEO: { | ||
subKeywordsWithTitle: this.seoAnalyzer.getSubKeywordsInTitle(), | ||
keywordWithTitle: this.seoAnalyzer.getKeywordInTitle(), | ||
wordCount: this.seoAnalyzer.getTitleWordCount(), | ||
} | ||
}; | ||
}); | ||
} | ||
@@ -42,0 +53,0 @@ } |
{ | ||
"name": "seord", | ||
"version": "0.0.5-patch.1", | ||
"version": "0.0.5-patch.2", | ||
"description": "Advanced SEO Analyzer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
65147
723