Skip to content

Commit 0a18060

Browse files
authored
Merge pull request #180 from extractus/4.0.1
4.0.1
2 parents c5acbfa + fe19728 commit 0a18060

File tree

4 files changed

+95
-32
lines changed

4 files changed

+95
-32
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ yarn add @extractus/oembed-extractor
3232
// es6 module
3333
import { extract } from '@extractus/oembed-extractor'
3434

35-
// CommonJS
36-
const { extract } = require('@extractus/oembed-extractor')
37-
38-
// or specify exactly path to CommonJS variant
39-
const { extract } = require('@extractus/oembed-extractor/dist/cjs/oembed-extractor.js')
40-
4135
const result = await extract('https://www.youtube.com/watch?v=x2bqscVkGxk')
4236
console.log(result)
4337
```
@@ -50,9 +44,6 @@ import { extract } from 'https://esm.sh/@extractus/oembed-extractor'
5044

5145
// deno > 1.28
5246
import { extract } from 'npm:@extractus/oembed-extractor'
53-
54-
const result = await extract('https://www.youtube.com/watch?v=x2bqscVkGxk')
55-
console.log(result)
5647
```
5748

5849
### Browser
@@ -283,4 +274,15 @@ npm run eval {URL_TO_PARSE_OEMBED}
283274
## License
284275
The MIT License (MIT)
285276

277+
278+
## Support the project
279+
280+
If you find value from this open source project, you can support in the following ways:
281+
282+
- Give it a star ⭐
283+
- Buy me a coffee: https://paypal.me/ndaidong 🍵
284+
- Subscribe [oEmbed Parser service](https://rapidapi.com/pwshub-pwshub-default/api/oembed-parser/) on RapidAPI 😉
285+
286+
Thank you.
287+
286288
---

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "4.0.0",
2+
"version": "4.0.1",
33
"name": "@extractus/oembed-extractor",
44
"description": "Get oEmbed data from given URL.",
55
"homepage": "https://github.com/extractus/oembed-extractor",
@@ -33,10 +33,10 @@
3333
"cross-fetch": "^4.0.0"
3434
},
3535
"devDependencies": {
36-
"eslint": "^8.44.0",
36+
"eslint": "^8.47.0",
3737
"https-proxy-agent": "^7.0.1",
38-
"jest": "^29.6.1",
39-
"nock": "^13.3.1"
38+
"jest": "^29.6.2",
39+
"nock": "^13.3.2"
4040
},
4141
"keywords": [
4242
"oembed",

src/utils/providers.latest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// provider data, synchronized at 2023-07-12T01:33:32.812Z
1+
// provider data, synchronized at 2023-08-16T03:16:17.352Z
22

33
/* eslint-disable */
44

src/utils/providers.prev.js

Lines changed: 79 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// provider data, synchronized at 2023-07-05T06:35:01.771Z
1+
// provider data, synchronized at 2023-07-12T01:33:32.812Z
22

33
/* eslint-disable */
44

@@ -35,6 +35,7 @@ export const providers = [
3535
},
3636
{
3737
"s": [
38+
"vod\\.afreecatv\\.com/player/",
3839
"v\\.afree\\.ca/ST/",
3940
"vod\\.afreecatv\\.com/ST/",
4041
"vod\\.afreecatv\\.com/PLAYER/STATION/",
@@ -100,6 +101,23 @@ export const providers = [
100101
],
101102
"e": "app.archivos.digital/oembed/"
102103
},
104+
{
105+
"s": [
106+
"studio\\.assemblrworld\\.com/*",
107+
"assemblr\\.world/*",
108+
"app-edu\\.assemblrworld\\.com/*",
109+
"staging\\.d1o2otincy91d\\.amplifyapp\\.com/*",
110+
"editor\\.assemblrworld\\.com/*"
111+
],
112+
"e": "studio.assemblrworld.com/api/oembed"
113+
},
114+
{
115+
"s": [
116+
"audio\\.com/*",
117+
"www\\.audio\\.com/*"
118+
],
119+
"e": "api.audio.com/oembed"
120+
},
103121
{
104122
"s": [
105123
"audioboom\\.com/channels/*",
@@ -213,6 +231,12 @@ export const providers = [
213231
],
214232
"e": "cacoo.com/oembed.json"
215233
},
234+
{
235+
"s": [
236+
"www\\.canva\\.com/design/*/view"
237+
],
238+
"e": "www.canva.com/_oembed"
239+
},
216240
{
217241
"s": [
218242
"minesweeper\\.today/*"
@@ -396,9 +420,7 @@ export const providers = [
396420
"*\\.deviantart\\.com/*#/d*",
397421
"fav\\.me/*",
398422
"sta\\.sh/*",
399-
"*\\.deviantart\\.com/*/art/*",
400-
"sta\\.sh/*\",",
401-
"*\\.deviantart\\.com/*#/d*\""
423+
"*\\.deviantart\\.com/*/art/*"
402424
],
403425
"e": "backend.deviantart.com/oembed"
404426
},
@@ -420,8 +442,8 @@ export const providers = [
420442
},
421443
{
422444
"s": [
423-
"docswell\\.com/*/*",
424-
"www\\.docswell\\.com/*/*"
445+
"docswell\\.com/s/*/*",
446+
"www\\.docswell\\.com/s/*/*"
425447
],
426448
"e": "www.docswell.com/service/oembed"
427449
},
@@ -463,12 +485,6 @@ export const providers = [
463485
],
464486
"e": "embedery.com/api/oembed"
465487
},
466-
{
467-
"s": [
468-
"music\\.enystre\\.com/lyrics/*"
469-
],
470-
"e": "music.enystre.com/oembed"
471-
},
472488
{
473489
"s": [
474490
"ethfiddle\\.com/*"
@@ -516,21 +532,21 @@ export const providers = [
516532
"www\\.facebook\\.com/questions/*",
517533
"www\\.facebook\\.com/notes/*/*/*"
518534
],
519-
"e": "graph.facebook.com/v10.0/oembed_post"
535+
"e": "graph.facebook.com/v16.0/oembed_post"
520536
},
521537
{
522538
"s": [
523539
"www\\.facebook\\.com/*/videos/*",
524540
"www\\.facebook\\.com/video\\.php?id=*",
525541
"www\\.facebook\\.com/video\\.php?v=*"
526542
],
527-
"e": "graph.facebook.com/v10.0/oembed_video"
543+
"e": "graph.facebook.com/v16.0/oembed_video"
528544
},
529545
{
530546
"s": [
531547
"www\\.facebook\\.com/*"
532548
],
533-
"e": "graph.facebook.com/v10.0/oembed_page"
549+
"e": "graph.facebook.com/v16.0/oembed_page"
534550
},
535551
{
536552
"s": [
@@ -688,6 +704,13 @@ export const providers = [
688704
],
689705
"e": "api.luminery.com/oembed"
690706
},
707+
{
708+
"s": [
709+
"www\\.gumlet\\.com/watch/*",
710+
"play\\.gumlet\\.io/embed/*"
711+
],
712+
"e": "api.gumlet.com/v1/oembed"
713+
},
691714
{
692715
"s": [
693716
"gyazo\\.com/*"
@@ -835,7 +858,7 @@ export const providers = [
835858
"instagram\\.com/reel/*",
836859
"instagr\\.am/reel/*"
837860
],
838-
"e": "graph.facebook.com/v10.0/instagram_oembed"
861+
"e": "graph.facebook.com/v16.0/instagram_oembed"
839862
},
840863
{
841864
"s": [
@@ -849,6 +872,12 @@ export const providers = [
849872
],
850873
"e": "issuu.com/oembed"
851874
},
875+
{
876+
"s": [
877+
"play\\.itemis\\.io/*"
878+
],
879+
"e": "create.storage.api.itemis.io/api/embed"
880+
},
852881
{
853882
"s": [
854883
"jovian\\.ml/*",
@@ -1202,6 +1231,12 @@ export const providers = [
12021231
],
12031232
"e": "orbitvu.co/service/oembed"
12041233
},
1234+
{
1235+
"s": [
1236+
"origits\\.com/v/*"
1237+
],
1238+
"e": "origits.net/oembed"
1239+
},
12051240
{
12061241
"s": [
12071242
"outplayed\\.tv/media/*"
@@ -1248,6 +1283,13 @@ export const providers = [
12481283
],
12491284
"e": "api.picturelfy.com/service/oembed/"
12501285
},
1286+
{
1287+
"s": [
1288+
"piggy\\.to/@*/*",
1289+
"piggy\\.to/view/*"
1290+
],
1291+
"e": "piggy.to/oembed"
1292+
},
12511293
{
12521294
"s": [
12531295
"*\\.builder\\.pikasso\\.xyz/embed/*"
@@ -1681,9 +1723,11 @@ export const providers = [
16811723
},
16821724
{
16831725
"s": [
1726+
"www\\.tickcounter\\.com/widget/*",
16841727
"www\\.tickcounter\\.com/countdown/*",
16851728
"www\\.tickcounter\\.com/countup/*",
16861729
"www\\.tickcounter\\.com/ticker/*",
1730+
"www\\.tickcounter\\.com/clock/*",
16871731
"www\\.tickcounter\\.com/worldclock/*"
16881732
],
16891733
"e": "www.tickcounter.com/oembed"
@@ -1695,6 +1739,15 @@ export const providers = [
16951739
],
16961740
"e": "www.tiktok.com/oembed"
16971741
},
1742+
{
1743+
"s": [
1744+
"tonicaudio\\.com/take/*",
1745+
"tonicaudio\\.com/song/*",
1746+
"tnic\\.io/song/*",
1747+
"tnic\\.io/take/*"
1748+
],
1749+
"e": "tonicaudio.com/oembed"
1750+
},
16981751
{
16991752
"s": [
17001753
"www\\.toornament\\.com/tournaments/*/information",
@@ -1718,9 +1771,11 @@ export const providers = [
17181771
},
17191772
{
17201773
"s": [
1721-
"trinitymedia\\.ai/player/*"
1774+
"trinitymedia\\.ai/player/*",
1775+
"trinitymedia\\.ai/player/*/*",
1776+
"trinitymedia\\.ai/player/*/*/*"
17221777
],
1723-
"e": "trinitymedia.ai/player/trinity-oembed"
1778+
"e": "trinitymedia.ai/services/oembed"
17241779
},
17251780
{
17261781
"s": [
@@ -1962,6 +2017,12 @@ export const providers = [
19622017
],
19632018
"e": "www.youtube.com/oembed"
19642019
},
2020+
{
2021+
"s": [
2022+
"www\\.yumpu\\.com/*/document/view/*/*"
2023+
],
2024+
"e": "www.yumpu.com/services/oembed"
2025+
},
19652026
{
19662027
"s": [
19672028
"app\\.zeplin\\.io/project/*/screen/*",

0 commit comments

Comments
 (0)