Skip to content

Commit

Permalink
Merge pull request #131 from extractus/7.1.3
Browse files Browse the repository at this point in the history
7.1.3
  • Loading branch information
ndaidong authored May 7, 2024
2 parents d1d6695 + 8e5173f commit eda9905
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ console.log(result)
### Deno

```ts
// deno < 1.28
import { extract } from 'https://esm.sh/@extractus/feed-extractor'

// deno > 1.28
import { extract } from 'npm:@extractus/feed-extractor'
```

Expand Down
8 changes: 0 additions & 8 deletions deno.json

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.1.2",
"version": "7.1.3",
"name": "@extractus/feed-extractor",
"description": "To read and normalize RSS/ATOM/JSON feed data",
"homepage": "https://extractor-demos.pages.dev",
Expand All @@ -26,7 +26,7 @@
},
"types": "./index.d.ts",
"engines": {
"node": ">= 16"
"node": ">= 18"
},
"scripts": {
"lint": "eslint .",
Expand All @@ -45,9 +45,9 @@
"html-entities": "^2.5.2"
},
"devDependencies": {
"esbuild": "^0.20.2",
"eslint": "^9.1.1",
"globals": "^15.0.0",
"esbuild": "^0.21.0",
"eslint": "^9.2.0",
"globals": "^15.1.0",
"https-proxy-agent": "^7.0.4",
"jest": "^29.7.0",
"nock": "^13.5.4"
Expand Down
1 change: 0 additions & 1 deletion src/utils/retrieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default async (url, options = {}) => {
const buffer = await res.arrayBuffer()
const text = buffer ? Buffer.from(buffer).toString().trim() : ''

console.log(contentType)
if (/(\+|\/)(xml|html)/.test(contentType)) {
const arr = contentType.split('charset=')
let charset = arr.length === 2 ? arr[1].trim() : getCharsetFromText(text)
Expand Down

0 comments on commit eda9905

Please sign in to comment.