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

seord

Package Overview
Dependencies
Maintainers
1
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.4 to 0.0.5-patch.1

14

dist/html-analyzer.js

@@ -21,6 +21,8 @@ "use strict";

const text = hrefElement.text();
allLinks.push({
href,
text
});
if (href) {
allLinks.push({
href,
text
});
}
});

@@ -57,3 +59,3 @@ return allLinks;

this.getAllLinks().forEach((link) => {
if (!this.isInternalLink(link.href)) {
if (link.href && !this.isInternalLink(link.href)) {
if (allOutboundLinks.find(l => l.href === link.href)) {

@@ -79,3 +81,3 @@ duplicateOutboundLinks.push(link);

this.getAllLinks().forEach((link) => {
if (this.isInternalLink(link.href)) {
if (link.href && this.isInternalLink(link.href)) {
if (allInternalLinks.find(l => l.href === link.href)) {

@@ -82,0 +84,0 @@ duplicateInternalLinks.push(link);

@@ -6,5 +6,5 @@ "use strict";

constructor(content, htmlAnalyzer, strictMode = false) {
this.MINIMUM_KEYWORD_DENSITY = 1;
this.MAXIMUM_KEYWORD_DENSITY = 3;
this.MAXIMUM_SUB_KEYWORD_DENSITY = 1;
this.MINIMUM_KEYWORD_DENSITY = 0.46;
this.MAXIMUM_KEYWORD_DENSITY = 1.1;
this.MAXIMUM_SUB_KEYWORD_DENSITY = 0.9;
this.MINIMUM_SUB_KEYWORD_DENSITY = 0.12;

@@ -149,3 +149,3 @@ this.EXTREME_LOW_SUB_KEYWORD_DENSITY = 0.09;

let densityBeingLowString = subKeywordDensity.density < this.EXTREME_LOW_SUB_KEYWORD_DENSITY ? 'too low' : 'low';
this.messages.warnings.push(`The density of sub keyword "${subKeywordDensity.keyword}" is ${densityBeingLowString} in the content, i.e. ${subKeywordDensity.density.toFixed(2)}%.`);
this.messages.minorWarnings.push(`The density of sub keyword "${subKeywordDensity.keyword}" is ${densityBeingLowString} in the content, i.e. ${subKeywordDensity.density.toFixed(2)}%.`);
}

@@ -259,3 +259,3 @@ else {

let densityBeingLowString = subKeyword.density < 0.2 ? 'too low' : 'low';
this.messages.warnings.push(`The density of sub keyword "${subKeyword.keyword}" in meta description is ${densityBeingLowString}, i.e. ${subKeyword.density.toFixed(2)}%.`);
this.messages.minorWarnings.push(`The density of sub keyword "${subKeyword.keyword}" in meta description is ${densityBeingLowString}, i.e. ${subKeyword.density.toFixed(2)}%.`);
}

@@ -262,0 +262,0 @@ else {

{
"name": "seord",
"version": "0.0.4",
"version": "0.0.5-patch.1",
"description": "Advanced SEO Analyzer",

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

Sorry, the diff of this file is not supported yet

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