From ab45a90dbf1344b94b56c0fc41b6629e042308d9 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Wed, 16 Aug 2023 10:12:39 +0700 Subject: [PATCH 1/4] Update dependencies --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 56aefba..01478f3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "4.0.0", + "version": "4.0.1", "name": "@extractus/oembed-extractor", "description": "Get oEmbed data from given URL.", "homepage": "https://github.com/extractus/oembed-extractor", @@ -33,10 +33,10 @@ "cross-fetch": "^4.0.0" }, "devDependencies": { - "eslint": "^8.44.0", + "eslint": "^8.47.0", "https-proxy-agent": "^7.0.1", - "jest": "^29.6.1", - "nock": "^13.3.1" + "jest": "^29.6.2", + "nock": "^13.3.2" }, "keywords": [ "oembed", From c3dbf8fc876f0ed09881d385a3c476e1465818bc Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Wed, 16 Aug 2023 10:16:05 +0700 Subject: [PATCH 2/4] Update README --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 053f775..e350e6d 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,6 @@ yarn add @extractus/oembed-extractor // es6 module import { extract } from '@extractus/oembed-extractor' -// CommonJS -const { extract } = require('@extractus/oembed-extractor') - -// or specify exactly path to CommonJS variant -const { extract } = require('@extractus/oembed-extractor/dist/cjs/oembed-extractor.js') - const result = await extract('https://www.youtube.com/watch?v=x2bqscVkGxk') console.log(result) ``` @@ -50,9 +44,6 @@ import { extract } from 'https://esm.sh/@extractus/oembed-extractor' // deno > 1.28 import { extract } from 'npm:@extractus/oembed-extractor' - -const result = await extract('https://www.youtube.com/watch?v=x2bqscVkGxk') -console.log(result) ``` ### Browser @@ -283,4 +274,15 @@ npm run eval {URL_TO_PARSE_OEMBED} ## License The MIT License (MIT) + +## Support the project + +If you find value from this open source project, you can support in the following ways: + +- Give it a star ⭐ +- Buy me a coffee: https://paypal.me/ndaidong 🍵 +- Subscribe [Feed Reader service](https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1/) on RapidAPI 😉 + +Thank you. + --- From 3935bf1c78ba39fba298c8c5293c93335ac2e39a Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Wed, 16 Aug 2023 10:16:25 +0700 Subject: [PATCH 3/4] Sync provider list --- src/utils/providers.latest.js | 2 +- src/utils/providers.prev.js | 97 ++++++++++++++++++++++++++++------- 2 files changed, 80 insertions(+), 19 deletions(-) diff --git a/src/utils/providers.latest.js b/src/utils/providers.latest.js index d1eb468..1355c8c 100644 --- a/src/utils/providers.latest.js +++ b/src/utils/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2023-07-12T01:33:32.812Z +// provider data, synchronized at 2023-08-16T03:16:17.352Z /* eslint-disable */ diff --git a/src/utils/providers.prev.js b/src/utils/providers.prev.js index 61b74b7..d1eb468 100644 --- a/src/utils/providers.prev.js +++ b/src/utils/providers.prev.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2023-07-05T06:35:01.771Z +// provider data, synchronized at 2023-07-12T01:33:32.812Z /* eslint-disable */ @@ -35,6 +35,7 @@ export const providers = [ }, { "s": [ + "vod\\.afreecatv\\.com/player/", "v\\.afree\\.ca/ST/", "vod\\.afreecatv\\.com/ST/", "vod\\.afreecatv\\.com/PLAYER/STATION/", @@ -100,6 +101,23 @@ export const providers = [ ], "e": "app.archivos.digital/oembed/" }, + { + "s": [ + "studio\\.assemblrworld\\.com/*", + "assemblr\\.world/*", + "app-edu\\.assemblrworld\\.com/*", + "staging\\.d1o2otincy91d\\.amplifyapp\\.com/*", + "editor\\.assemblrworld\\.com/*" + ], + "e": "studio.assemblrworld.com/api/oembed" + }, + { + "s": [ + "audio\\.com/*", + "www\\.audio\\.com/*" + ], + "e": "api.audio.com/oembed" + }, { "s": [ "audioboom\\.com/channels/*", @@ -213,6 +231,12 @@ export const providers = [ ], "e": "cacoo.com/oembed.json" }, + { + "s": [ + "www\\.canva\\.com/design/*/view" + ], + "e": "www.canva.com/_oembed" + }, { "s": [ "minesweeper\\.today/*" @@ -396,9 +420,7 @@ export const providers = [ "*\\.deviantart\\.com/*#/d*", "fav\\.me/*", "sta\\.sh/*", - "*\\.deviantart\\.com/*/art/*", - "sta\\.sh/*\",", - "*\\.deviantart\\.com/*#/d*\"" + "*\\.deviantart\\.com/*/art/*" ], "e": "backend.deviantart.com/oembed" }, @@ -420,8 +442,8 @@ export const providers = [ }, { "s": [ - "docswell\\.com/*/*", - "www\\.docswell\\.com/*/*" + "docswell\\.com/s/*/*", + "www\\.docswell\\.com/s/*/*" ], "e": "www.docswell.com/service/oembed" }, @@ -463,12 +485,6 @@ export const providers = [ ], "e": "embedery.com/api/oembed" }, - { - "s": [ - "music\\.enystre\\.com/lyrics/*" - ], - "e": "music.enystre.com/oembed" - }, { "s": [ "ethfiddle\\.com/*" @@ -516,7 +532,7 @@ export const providers = [ "www\\.facebook\\.com/questions/*", "www\\.facebook\\.com/notes/*/*/*" ], - "e": "graph.facebook.com/v10.0/oembed_post" + "e": "graph.facebook.com/v16.0/oembed_post" }, { "s": [ @@ -524,13 +540,13 @@ export const providers = [ "www\\.facebook\\.com/video\\.php?id=*", "www\\.facebook\\.com/video\\.php?v=*" ], - "e": "graph.facebook.com/v10.0/oembed_video" + "e": "graph.facebook.com/v16.0/oembed_video" }, { "s": [ "www\\.facebook\\.com/*" ], - "e": "graph.facebook.com/v10.0/oembed_page" + "e": "graph.facebook.com/v16.0/oembed_page" }, { "s": [ @@ -688,6 +704,13 @@ export const providers = [ ], "e": "api.luminery.com/oembed" }, + { + "s": [ + "www\\.gumlet\\.com/watch/*", + "play\\.gumlet\\.io/embed/*" + ], + "e": "api.gumlet.com/v1/oembed" + }, { "s": [ "gyazo\\.com/*" @@ -835,7 +858,7 @@ export const providers = [ "instagram\\.com/reel/*", "instagr\\.am/reel/*" ], - "e": "graph.facebook.com/v10.0/instagram_oembed" + "e": "graph.facebook.com/v16.0/instagram_oembed" }, { "s": [ @@ -849,6 +872,12 @@ export const providers = [ ], "e": "issuu.com/oembed" }, + { + "s": [ + "play\\.itemis\\.io/*" + ], + "e": "create.storage.api.itemis.io/api/embed" + }, { "s": [ "jovian\\.ml/*", @@ -1202,6 +1231,12 @@ export const providers = [ ], "e": "orbitvu.co/service/oembed" }, + { + "s": [ + "origits\\.com/v/*" + ], + "e": "origits.net/oembed" + }, { "s": [ "outplayed\\.tv/media/*" @@ -1248,6 +1283,13 @@ export const providers = [ ], "e": "api.picturelfy.com/service/oembed/" }, + { + "s": [ + "piggy\\.to/@*/*", + "piggy\\.to/view/*" + ], + "e": "piggy.to/oembed" + }, { "s": [ "*\\.builder\\.pikasso\\.xyz/embed/*" @@ -1681,9 +1723,11 @@ export const providers = [ }, { "s": [ + "www\\.tickcounter\\.com/widget/*", "www\\.tickcounter\\.com/countdown/*", "www\\.tickcounter\\.com/countup/*", "www\\.tickcounter\\.com/ticker/*", + "www\\.tickcounter\\.com/clock/*", "www\\.tickcounter\\.com/worldclock/*" ], "e": "www.tickcounter.com/oembed" @@ -1695,6 +1739,15 @@ export const providers = [ ], "e": "www.tiktok.com/oembed" }, + { + "s": [ + "tonicaudio\\.com/take/*", + "tonicaudio\\.com/song/*", + "tnic\\.io/song/*", + "tnic\\.io/take/*" + ], + "e": "tonicaudio.com/oembed" + }, { "s": [ "www\\.toornament\\.com/tournaments/*/information", @@ -1718,9 +1771,11 @@ export const providers = [ }, { "s": [ - "trinitymedia\\.ai/player/*" + "trinitymedia\\.ai/player/*", + "trinitymedia\\.ai/player/*/*", + "trinitymedia\\.ai/player/*/*/*" ], - "e": "trinitymedia.ai/player/trinity-oembed" + "e": "trinitymedia.ai/services/oembed" }, { "s": [ @@ -1962,6 +2017,12 @@ export const providers = [ ], "e": "www.youtube.com/oembed" }, + { + "s": [ + "www\\.yumpu\\.com/*/document/view/*/*" + ], + "e": "www.yumpu.com/services/oembed" + }, { "s": [ "app\\.zeplin\\.io/project/*/screen/*", From fe1972806c762bb32642033e90969d2c346fd86a Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Wed, 16 Aug 2023 10:18:36 +0700 Subject: [PATCH 4/4] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e350e6d..ebf8410 100644 --- a/README.md +++ b/README.md @@ -281,7 +281,7 @@ If you find value from this open source project, you can support in the followin - Give it a star ⭐ - Buy me a coffee: https://paypal.me/ndaidong 🍵 -- Subscribe [Feed Reader service](https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1/) on RapidAPI 😉 +- Subscribe [oEmbed Parser service](https://rapidapi.com/pwshub-pwshub-default/api/oembed-parser/) on RapidAPI 😉 Thank you.