Socket
Socket
Sign inDemoInstall

@mozilla/readability

Package Overview
Dependencies
Maintainers
14
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mozilla/readability - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

LICENSE.md

11

CHANGELOG.md

@@ -14,4 +14,13 @@ # Changelog

## [Unreleased]
## [0.4.3] - 2023-03-22
- Fixed [`aria-modal` cookie dialogs interfering with readability](https://github.com/mozilla/readability/pull/746)
- Fixed [lists of images not showing](https://github.com/mozilla/readability/pull/738)
- [Updated type information for TypeScript](https://github.com/mozilla/readability/pull/734)
- [Simplify `script` and `noscript` removal](https://github.com/mozilla/readability/pull/762)
- [Updated dependencies](https://github.com/mozilla/readability/pull/770)
- [Added allowedVideoRegex option to override the default](https://github.com/mozilla/readability/pull/788)
## [0.4.2] - 2022-02-09
- Fix [compatibility with DOM implementations where the `childNodes` property is not live](https://github.com/mozilla/readability/pull/694) ([x2](https://github.com/mozilla/readability/pull/677)).

@@ -18,0 +27,0 @@ - Lazily-loaded image references [will no longer use the `alt` attribute](https://github.com/mozilla/readability/pull/689) to find images.

24

index.d.ts

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

disableJSONLD?: boolean;
allowedVideoRegex?: RegExp;
}

@@ -36,16 +37,27 @@ );

title: string;
/** author metadata */
byline: string;
/** content direction */
dir: string;
/** HTML of processed article content */
/** HTML string of processed article content */
content: T;
/** text content of the article (all HTML removed) */
/** text content of the article, with all the HTML tags removed */
textContent: string;
/** length of an article, in characters */
length: number;
/** article description, or short excerpt from the content */
excerpt: string;
/** author metadata */
byline: string;
/** content direction */
dir: string;
/** name of the site */
siteName: string;
/** content language */
lang: string;
};
}
{
"name": "@mozilla/readability",
"version": "0.4.2",
"version": "0.4.3",
"description": "A standalone version of the readability library used for Firefox Reader View.",

@@ -23,16 +23,16 @@ "main": "index.js",

"engines": {
"node": ">=10.0.0"
"node": ">=14.0.0"
},
"homepage": "https://github.com/mozilla/readability",
"devDependencies": {
"@release-it/keep-a-changelog": "^2.2.2",
"chai": "^2.1.*",
"eslint": "^7.26.0",
"htmltidy2": "^0.3.0",
"js-beautify": "^1.13.13",
"jsdom": "^13.1",
"mocha": "^8.4.0",
"release-it": "^14.6.2",
"sinon": "^7.3.2"
"@release-it/keep-a-changelog": "3.1.0",
"chai": "4.3.7",
"eslint": "8.27.0",
"htmltidy2": "1.0.0",
"js-beautify": "1.14.7",
"jsdom": "20.0.2",
"mocha": "10.1.0",
"release-it": "15.5.0",
"sinon": "14.0.2"
}
}
# Readability.js
A standalone version of the readability library used for Firefox Reader View.
A standalone version of the readability library used for [Firefox Reader View](https://support.mozilla.org/kb/firefox-reader-view-clutter-free-web-pages).

@@ -39,2 +39,3 @@ ## Installation

* `serializer` (function, default `el => el.innerHTML`) controls how the the `content` property returned by the `parse()` method is produced from the root DOM element. It may be useful to specify the `serializer` as the identity function (`el => el`) to obtain a DOM element instead of a string for `content` if you plan to process it further.
* `allowedVideoRegex` (RegExp, default `undefined` ): a regular expression that matches video URLs that should be allowed to be included in the article content. If `undefined`, the [default regex](https://github.com/mozilla/readability/blob/8e8ec27cd2013940bc6f3cc609de10e35a1d9d86/Readability.js#L133) is applied.

@@ -41,0 +42,0 @@ ### `parse()`

Sorry, the diff of this file is too big to display

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