Skip to content

Commit

Permalink
Merge pull request #300 from ndaidong/7.2.0
Browse files Browse the repository at this point in the history
v7.2.0
  • Loading branch information
ndaidong authored Sep 17, 2022
2 parents d896abd + f2ee351 commit 90692fd
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ import { extract } from 'https://esm.sh/article-parser'
})();
```

View [more examples](https://github.com/ndaidong/article-parser/tree/main/examples).


## APIs

Expand Down
4 changes: 2 additions & 2 deletions dist/article-parser.browser.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/article-parser.browser.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/article-parser.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/article-parser.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "article-parser-cjs",
"version": "7.2.0rc6",
"version": "7.2.0",
"main": "./article-parser.js"
}
2 changes: 1 addition & 1 deletion examples/deno-article-parser/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { opine } from 'https://deno.land/x/[email protected]/mod.ts'
import { extract } from 'https://esm.sh/[email protected]-rc5'
import { extract } from 'https://esm.sh/[email protected]'

const app = opine()

Expand Down
2 changes: 1 addition & 1 deletion examples/node-article-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "node index.js"
},
"dependencies": {
"article-parser": "7.2.0-rc5",
"article-parser": "^7.2.0",
"express": "^4.18.1"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.2.0rc6",
"version": "7.2.0",
"name": "article-parser",
"description": "To extract main article from given URL",
"homepage": "https://demos.pwshub.com/article-parser",
Expand Down
1 change: 0 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const sanitizeHtmlOptions = {

const parserOptions = {
wordsPerMinute: 300, // to estimate "time to read"
urlsCompareAlgorithm: 'levenshtein', // to find the best url from list
descriptionLengthThreshold: 180, // min num of chars required for description
descriptionTruncateLen: 210, // max num of chars generated for description
contentLengthThreshold: 200 // content must have at least 200 chars
Expand Down
2 changes: 0 additions & 2 deletions src/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {

test('Testing setParserOptions/getParserOptions methods', () => {
const expectedWPM = 400
const expectedAlgorithm = 'levenshtein'

setParserOptions({
wordsPerMinute: expectedWPM
Expand All @@ -19,7 +18,6 @@ test('Testing setParserOptions/getParserOptions methods', () => {
const actual = getParserOptions()

expect(actual.wordsPerMinute).toEqual(expectedWPM)
expect(actual.urlsCompareAlgorithm).toEqual(expectedAlgorithm)
})

test('Testing setSanitizeHtmlOptions/getSanitizeHtmlOptions methods', () => {
Expand Down

0 comments on commit 90692fd

Please sign in to comment.