Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

readabilitySAX

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readabilitySAX - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

26

node/index.js

@@ -15,6 +15,6 @@ var Readability = require("../readabilitySAX"),

title: "Error",
text: err,
html: "<b>" + err + "</b>",
error: true
});
text: err,
html: "<b>" + err + "</b>",
error: true
});
}

@@ -62,5 +62,5 @@

article = exports.process(data, settings, 1);
}
article.link = settings.pageURL;
cb(article);
}
article.link = settings.pageURL;
cb(article);
});

@@ -81,6 +81,6 @@ }).on("error", onErr).end();

parser.parseComplete(data);
parser.parseComplete(data);
article = readable.getArticle();
skipLevel += 1;
article = readable.getArticle();
skipLevel += 1;
} while(article.score < 300 && article.textLength < 250 && skipLevel < 4);

@@ -91,5 +91,5 @@

title: "Error",
text: "Couldn't find content!",
html: "<b>Couldn't find content!</b>",
error: true
text: "Couldn't find content!",
html: "<b>Couldn't find content!</b>",
error: true
};

@@ -96,0 +96,0 @@ */

{
"name": "readabilitySAX",
"version": "1.0.4",
"version": "1.0.5",
"description": "the readability script ported to a sax parser",

@@ -5,0 +5,0 @@ "author": "Felix Boehm <me@feedic.com>",

@@ -26,3 +26,2 @@ /*

re_videos = /http:\/\/(?:www\.)?(?:youtube|vimeo)\.com/,
re_skipFootnoteLink =/^\s*(?:\[?[a-z\d]{1,2}\]?|^|edit|citation needed)\s*$/i,
re_nextLink = /[>»]|continue|next|weiter(?:[^\|]|$)/i,

@@ -44,3 +43,3 @@ re_prevLink = /[<«]|earl|new|old|prev/i,

re_pageInURL = /[_-]?p[a-zA-Z]*[_-]?\d{1,2}$/,
re_pageInURL = /[_\-]?p[a-zA-Z]*[_\-]?\d{1,2}$/,
re_badFirst = /^(?:[^a-z]{0,3}|index|\d+)$/i,

@@ -255,4 +254,2 @@ re_noLetters = /[^a-zA-Z]/,

var link;
for(var i in Settings){

@@ -574,5 +571,5 @@ if(typeof settings[i] !== "undefined")

if(this._settings.skipLevel > 0) this._settings.stripUnlikelyCandidates = false;
if(this._settings.skipLevel > 1) this._settings.weightClasses = false;
if(this._settings.skipLevel > 2) this._settings.cleanConditionally = false;
if(skipLevel > 0) this._settings.stripUnlikelyCandidates = false;
if(skipLevel > 1) this._settings.weightClasses = false;
if(skipLevel > 2) this._settings.cleanConditionally = false;
};

@@ -579,0 +576,0 @@

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