Skip to content

Commit

Permalink
Merge pull request #37 from ndaidong/5.0.2
Browse files Browse the repository at this point in the history
v5.0.2
  • Loading branch information
ndaidong authored Jul 4, 2022
2 parents eedf0c0 + 6296a2b commit 29a6a67
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Load and parse RSS/ATOM data from given feed url.
## Demo

- [Give it a try!](https://demos.pwshub.com/feed-reader)
- [Example FaaS](https://extractor.pwshub.com/feed/parse?url=https://news.google.com/rss&apikey=demo-orePhhidnWKWPvF8EYKap7z55cN)
- [Example FaaS](https://extractor.pwshub.com/feed/parse?url=https://news.google.com/rss&apikey=demo-TEyRycuuMCiGBiBocbLGSpagfj7gOF8AMyAWfEgP)

### Usage

Expand Down Expand Up @@ -101,7 +101,7 @@ In addition, this lib provides some methods to customize default settings. Don't
```js
{
headers: {
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0'
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
},
responseType: 'text',
responseEncoding: 'utf8',
Expand All @@ -111,10 +111,8 @@ In addition, this lib provides some methods to customize default settings. Don't
```
Read [axios' request config](https://axios-http.com/docs/req_config) for more info.


## Test


```bash
git clone https://github.com/ndaidong/feed-reader.git
cd feed-reader
Expand All @@ -125,7 +123,6 @@ npm run eval https://news.google.com/rss
npm test
```


## License
The MIT License (MIT)

Expand Down
4 changes: 2 additions & 2 deletions dist/cjs/feed-reader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// [email protected].1, by @ndaidong - built with esbuild at 2022-06-03T06:45:08.984Z - published under MIT license
// [email protected].2, by @ndaidong - built with esbuild at 2022-07-04T04:57:26.841Z - published under MIT license
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
Expand Down Expand Up @@ -14325,7 +14325,7 @@ var import_axios = __toESM(require_axios2(), 1);
var import_bellajs = __toESM(require_bella(), 1);
var requestOptions = {
headers: {
"user-agent": "Mozilla/5.0 (X11; Linux i686; rv:100.0) Gecko/20100101 Firefox/100.0"
"user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
},
responseType: "text",
responseEncoding: "utf8",
Expand Down
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": "feed-reader-cjs",
"version": "5.0.1",
"version": "5.0.2",
"main": "./feed-reader.js"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.0.1",
"version": "5.0.2",
"name": "feed-reader",
"description": "Load and parse ATOM/RSS data from given feed url",
"homepage": "https://www.npmjs.com/package/feed-reader",
Expand Down Expand Up @@ -32,9 +32,9 @@
"html-entities": "^2.3.3"
},
"devDependencies": {
"esbuild": "^0.14.42",
"jest": "^28.1.0",
"nock": "^13.2.4"
"esbuild": "^0.14.48",
"jest": "^28.1.2",
"nock": "^13.2.8"
},
"standard": {
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { clone, copies } from 'bellajs'

const requestOptions = {
headers: {
'user-agent': 'Mozilla/5.0 (X11; Linux i686; rv:100.0) Gecko/20100101 Firefox/100.0'
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
},
responseType: 'text',
responseEncoding: 'utf8',
Expand Down
2 changes: 1 addition & 1 deletion src/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('Testing setRequestOptions/getRequestOptions methods', () => {
const actual = getRequestOptions()
const expectedHeader = {
authorization: 'bearer <token>',
'user-agent': 'Mozilla/5.0 (X11; Linux i686; rv:100.0) Gecko/20100101 Firefox/100.0'
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
}

expect(actual.headers).toEqual(expectedHeader)
Expand Down

0 comments on commit 29a6a67

Please sign in to comment.