Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
- Fix typo error (merge #118 by @AramZS
- Update dependencies
- Update request user agent
  • Loading branch information
ndaidong committed Jan 9, 2022
1 parent 93e2722 commit 04ae198
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Extract oEmbed content from given URL.

## Demo

- [Give it a try!](https://ndaidong.github.io/oembed-parser-demo)
- [Example FaaS](https://us-central1-technews-251304.cloudfunctions.net/oembed-parser?url=https://www.youtube.com/watch?v=8jPQjjsBbIc)
- [Give it a try!](https://demos.pwshub.com/oembed-parser)
- [Example FaaS](https://extractor.pwshub.com/oembed/parse?url=https://www.youtube.com/watch?v=8jPQjjsBbIc&apikey=demo-orePhhidnWKWPvF8EYKap7z55cN)


## Installation
Expand Down
2 changes: 1 addition & 1 deletion eval.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eval.js
// cjs-eval.js
// to quickly test with a single url or file

const { extract } = require('./src/main')
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.2",
"version": "2.0.3",
"name": "oembed-parser",
"description": "Get oEmbed data from given URL.",
"homepage": "https://www.npmjs.com/package/oembed-parser",
Expand Down Expand Up @@ -28,7 +28,7 @@
"bellajs": "^10.0.2"
},
"devDependencies": {
"jest": "^27.4.5",
"jest": "^27.4.7",
"nock": "^13.2.1"
},
"keywords": [
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 @@ const { clone, copies } = require('bellajs')

const requestOptions = {
headers: {
'user-agent': 'Mozilla/5.0 (X11; Linux i686; rv:94.0) Gecko/20100101 Firefox/94.0',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0',
accept: 'application/json; charset=utf-8'
},
responseType: 'json',
Expand Down
2 changes: 1 addition & 1 deletion src/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ test('Testing setRequestOptions()', () => {
const actual = getRequestOptions()
const expectedHeader = {
authorization: 'bearer <token>',
'user-agent': 'Mozilla/5.0 (X11; Linux i686; rv:94.0) Gecko/20100101 Firefox/94.0',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0',
accept: 'application/json; charset=utf-8'
}

Expand Down

0 comments on commit 04ae198

Please sign in to comment.