Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.1.3 #131

Merged
merged 3 commits into from
May 7, 2024
Merged

7.1.3 #131

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading