New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

seord

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seord - npm Package Compare versions

Comparing version 0.0.5-patch.3 to 0.0.5-patch.4

1

dist/seo-analyzer.d.ts

@@ -31,2 +31,3 @@ import type { HtmlAnalyzer } from "./html-analyzer";

getKeywordInTitle(keyword?: string | null): KeywordDensity;
getPosition(text: string, keyword: string): number;
getSubKeywordsInTitle(): KeywordDensity[];

@@ -33,0 +34,0 @@ getKeywordInMetaDescription(keyword?: string | null): KeywordDensity;

9

dist/seo-analyzer.js

@@ -60,5 +60,10 @@ "use strict";

density,
position: this.content.title ? this.content.title.split(keyword).indexOf(keyword) : -1
position: this.getPosition(this.content.title, keyword)
};
}
getPosition(text, keyword) {
if (!text || !keyword)
return -1;
return text.split(keyword)[0].split(' ').length;
}
getSubKeywordsInTitle() {

@@ -79,3 +84,3 @@ let subKeywordsInTitle = [];

density,
position: this.content.metaDescription ? this.content.metaDescription.split(keyword).indexOf(keyword) : -1
position: this.getPosition(this.content.title, keyword)
};

@@ -82,0 +87,0 @@ }

{
"name": "seord",
"version": "0.0.5-patch.3",
"version": "0.0.5-patch.4",
"description": "Advanced SEO Analyzer",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc