Skip to content

Commit

Permalink
Merge pull request #334 from extractus/7.2.11
Browse files Browse the repository at this point in the history
v7.2.11
  • Loading branch information
ndaidong authored Mar 12, 2023
2 parents f727040 + 0a923b8 commit a79aa7f
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion dist/article-extractor.esm.js

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions dist/cjs/article-extractor.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ export interface ArticleData {
ttr?: number;
}

export function extract(input: string, parserOptions?: ParserOptions, fetchOptions?: FetchOptions): Promise<ArticleData>;
export function extract(input: string, parserOptions?: ParserOptions, fetchOptions?: FetchOptions): Promise<ArticleData|null>;

export function extractFromHtml(html: string, url?: string, parserOptions?: ParserOptions): Promise<ArticleData>;
export function extractFromHtml(html: string, url?: string, parserOptions?: ParserOptions): Promise<ArticleData|null>;
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": "@extractus/article-extractor",
"version": "7.2.10",
"version": "7.2.11",
"main": "./article-extractor.js"
}
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ export interface ArticleData {
ttr?: number;
}

export function extract(input: string, parserOptions?: ParserOptions, fetchOptions?: FetchOptions): Promise<ArticleData>;
export function extract(input: string, parserOptions?: ParserOptions, fetchOptions?: FetchOptions): Promise<ArticleData|null>;

export function extractFromHtml(html: string, url?: string, parserOptions?: ParserOptions): Promise<ArticleData>;
export function extractFromHtml(html: string, url?: string, parserOptions?: ParserOptions): Promise<ArticleData|null>;
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.2.10",
"version": "7.2.11",
"name": "@extractus/article-extractor",
"description": "To extract main article from given URL",
"homepage": "https://github.com/extractus/article-extractor",
Expand Down Expand Up @@ -37,14 +37,14 @@
"@mozilla/readability": "^0.4.2",
"bellajs": "^11.1.2",
"cross-fetch": "^3.1.5",
"linkedom": "^0.14.22",
"linkedom": "^0.14.24",
"sanitize-html": "2.10.0",
"string-similarity": "^4.0.4"
},
"devDependencies": {
"@types/sanitize-html": "^2.8.1",
"esbuild": "^0.17.11",
"eslint": "^8.35.0",
"eslint": "^8.36.0",
"jest": "^29.5.0",
"nock": "^13.3.0"
},
Expand Down

0 comments on commit a79aa7f

Please sign in to comment.