Comparing version 0.0.5-patch.2 to 0.0.5-patch.3
@@ -55,3 +55,2 @@ "use strict"; | ||
getKeywordInTitle(keyword = null) { | ||
var _a; | ||
keyword = keyword !== null && keyword !== void 0 ? keyword : this.content.keyword; | ||
@@ -62,3 +61,3 @@ const density = this.calculateDensity(keyword, this.content.title); | ||
density, | ||
position: (_a = this.content.title) === null || _a === void 0 ? void 0 : _a.indexOf(keyword) | ||
position: this.content.title ? this.content.title.split(keyword).indexOf(keyword) : -1 | ||
}; | ||
@@ -74,3 +73,2 @@ } | ||
getKeywordInMetaDescription(keyword = null) { | ||
var _a; | ||
if (keyword === null) { | ||
@@ -83,3 +81,3 @@ keyword = this.content.keyword; | ||
density, | ||
position: (_a = this.content.metaDescription) === null || _a === void 0 ? void 0 : _a.indexOf(keyword) | ||
position: this.content.metaDescription ? this.content.metaDescription.split(keyword).indexOf(keyword) : -1 | ||
}; | ||
@@ -86,0 +84,0 @@ } |
{ | ||
"name": "seord", | ||
"version": "0.0.5-patch.2", | ||
"version": "0.0.5-patch.3", | ||
"description": "Advanced SEO Analyzer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
65279
721