From 484ce963823071ee493155ff61e18d2b27a0ccd0 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Fri, 29 Mar 2024 11:37:36 +0700 Subject: [PATCH] v4.0.3 - Update dependencies - Update provider list --- package.json | 8 +- src/utils/providers.latest.js | 100 +++++++++++++++-- src/utils/providers.orginal.json | 181 +++++++++++++++++++++++++++++-- src/utils/providers.prev.js | 28 +++-- 4 files changed, 280 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 61d211c..754c57e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "4.0.2", + "version": "4.0.3", "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.56.0", - "https-proxy-agent": "^7.0.2", + "eslint": "^8.57.0", + "https-proxy-agent": "^7.0.4", "jest": "^29.7.0", - "nock": "^13.5.0" + "nock": "^13.5.4" }, "keywords": [ "oembed", diff --git a/src/utils/providers.latest.js b/src/utils/providers.latest.js index f5a9754..96afe1c 100644 --- a/src/utils/providers.latest.js +++ b/src/utils/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2024-01-22T08:51:16.050Z +// provider data, synchronized at 2024-03-29T04:36:42.975Z /* eslint-disable */ @@ -9,6 +9,12 @@ export const providers = [ ], "e": "www.23hq.com/23/oembed" }, + { + "s": [ + "playout\\.3qsdn\\.com/embed/*" + ], + "e": "playout.3qsdn.com/oembed" + }, { "s": [ "store\\.abraia\\.me/*" @@ -108,7 +114,9 @@ export const providers = [ "*\\.app-edu\\.assemblrworld\\.com/Creation/*", "app-edu\\.assemblrworld\\.com/Creation/*", "assemblr\\.world/*", - "editor\\.assemblrworld\\.com/*" + "editor\\.assemblrworld\\.com/*", + "*\\.assemblrworld\\.com/creation/*", + "*\\.assemblrworld\\.com/Creation/*" ], "e": "studio.assemblrworld.com/api/oembed" }, @@ -183,6 +191,13 @@ export const providers = [ "s": [], "e": "www.beautiful.ai/api/oembed" }, + { + "s": [ + "www\\.behance\\.net/gallery/*/*", + "www\\.behance\\.net/*/services/*/*" + ], + "e": "www.behance.net/services/oembed" + }, { "s": [ "blackfire\\.io/profiles/*/graph", @@ -577,6 +592,12 @@ export const providers = [ ], "e": "faithlifetv.com/api/oembed" }, + { + "s": [ + "www\\.figma\\.com/file/*" + ], + "e": "www.figma.com/api/oembed" + }, { "s": [ "*\\.fireworktv\\.com/*", @@ -612,6 +633,20 @@ export const providers = [ ], "e": "app.flourish.studio/api/v1/oembed" }, + { + "s": [ + "flowhub\\.org/f/*", + "flowhub\\.org/s/*" + ], + "e": "flowhub.org/o/embed" + }, + { + "s": [ + "fooday\\.app/*/reviews/*", + "fooday\\.app/*/spots/*" + ], + "e": "fooday.app/oembed" + }, { "s": [ "fiso\\.foxsports\\.com\\.au/isomorphic-widget/*" @@ -1011,7 +1046,9 @@ export const providers = [ { "s": [ "lottiefiles\\.com/*", - "*\\.lottiefiles\\.com/*" + "*\\.lottiefiles\\.com/*", + "*\\.lottie\\.host/*", + "lottie\\.host/*" ], "e": "embed.lottiefiles.com/oembed" }, @@ -1152,16 +1189,15 @@ export const providers = [ }, { "s": [ - "ndla\\.no/*" + "ndla\\.no/*", + "ndla\\.no/article/*", + "ndla\\.no/audio/*", + "ndla\\.no/concept/*", + "ndla\\.no/image/*", + "ndla\\.no/video/*" ], "e": "ndla.no/oembed" }, - { - "s": [ - "liste\\.ndla\\.no/*" - ], - "e": "liste.ndla.no/oembed" - }, { "s": [ "*\\.nfb\\.ca/film/*" @@ -1243,6 +1279,12 @@ export const providers = [ ], "e": "origits.net/oembed" }, + { + "s": [ + "origits\\.com/v/*" + ], + "e": "origits.com/oembed" + }, { "s": [ "outplayed\\.tv/media/*" @@ -1649,6 +1691,19 @@ export const providers = [ ], "e": "sproutvideo.com/oembed.json" }, + { + "s": [ + "spyke\\.social/p/*", + "spyke\\.social/u/*", + "spyke\\.social/g/*", + "spyke\\.social/c/*", + "www\\.spyke\\.social/p/*", + "www\\.spyke\\.social/u/*", + "www\\.spyke\\.social/g/*", + "www\\.spyke\\.social/c/*" + ], + "e": "api.spyke.social/embed/oembed" + }, { "s": [ "purl\\.stanford\\.edu/*" @@ -1911,10 +1966,17 @@ export const providers = [ "vimeo\\.com/channels/*/*", "vimeo\\.com/groups/*/videos/*", "vimeo\\.com/ondemand/*/*", - "player\\.vimeo\\.com/video/*" + "player\\.vimeo\\.com/video/*", + "vimeo\\.com/event/*/*" ], "e": "vimeo.com/api/oembed.json" }, + { + "s": [ + "share\\.viostream\\.com/*" + ], + "e": "play.viostream.com/oembed" + }, { "s": [ "www\\.viously\\.com/*/*" @@ -1964,6 +2026,14 @@ export const providers = [ ], "e": "embed.wave.video/oembed" }, + { + "s": [ + "www\\.web3isgoinggreat\\.com/?id=*", + "www\\.web3isgoinggreat\\.com/single/*", + "www\\.web3isgoinggreat\\.com/embed/*" + ], + "e": "www.web3isgoinggreat.com/api/oembed" + }, { "s": [ "play\\.wecandeo\\.com/video/v/*" @@ -2012,6 +2082,14 @@ export const providers = [ ], "e": "public-api.wordpress.com/oembed/" }, + { + "s": [ + "x\\.com/*", + "x\\.com/*/status/*", + "*\\.x\\.com/*/status/*" + ], + "e": "publish.x.com/oembed" + }, { "s": [ "*\\.youtube\\.com/watch*", diff --git a/src/utils/providers.orginal.json b/src/utils/providers.orginal.json index 6c118fd..eff77fb 100644 --- a/src/utils/providers.orginal.json +++ b/src/utils/providers.orginal.json @@ -11,6 +11,19 @@ } ] }, + { + "provider_name": "3Q", + "provider_url": "https://3q.video/", + "endpoints": [ + { + "schemes": [ + "https://playout.3qsdn.com/embed/*" + ], + "url": "https://playout.3qsdn.com/oembed", + "discovery": true + } + ] + }, { "provider_name": "Abraia", "provider_url": "https://abraia.me", @@ -219,12 +232,16 @@ "http://app-edu.assemblrworld.com/Creation/*", "http://assemblr.world/*", "http://editor.assemblrworld.com/*", + "http://*.assemblrworld.com/creation/*", + "http://*.assemblrworld.com/Creation/*", "https://*.studio.assemblrworld.com/creation/*", "https://studio.assemblrworld.com/creation/*", "https://*.app-edu.assemblrworld.com/Creation/*", "https://app-edu.assemblrworld.com/Creation/*", "https://assemblr.world/*", - "https://editor.assemblrworld.com/*" + "https://editor.assemblrworld.com/*", + "https://*.assemblrworld.com/creation/*", + "https://*.assemblrworld.com/Creation/*" ], "url": "https://studio.assemblrworld.com/api/oembed", "discovery": true @@ -382,6 +399,22 @@ } ] }, + { + "provider_name": "Behance", + "provider_url": "https://www.behance.net", + "endpoints": [ + { + "schemes": [ + "https://www.behance.net/gallery/*/*", + "https://www.behance.net/*/services/*/*" + ], + "url": "https://www.behance.net/services/oembed", + "formats": [ + "json" + ] + } + ] + }, { "provider_name": "Blackfire.io", "provider_url": "https://blackfire.io", @@ -1203,6 +1236,19 @@ } ] }, + { + "provider_name": "Figma", + "provider_url": "https://www.figma.com", + "endpoints": [ + { + "schemes": [ + "https://www.figma.com/file/*" + ], + "url": "https://www.figma.com/api/oembed", + "discovery": true + } + ] + }, { "provider_name": "Firework", "provider_url": "https://fireworktv.com/", @@ -1276,6 +1322,34 @@ } ] }, + { + "provider_name": "FlowHubOrg", + "provider_url": "https://flows.flowhub.org", + "endpoints": [ + { + "url": "https://flowhub.org/o/embed", + "schemes": [ + "https://flowhub.org/f/*", + "https://flowhub.org/s/*" + ], + "discovery": true + } + ] + }, + { + "provider_name": "Fooday", + "provider_url": "https://fooday.app", + "endpoints": [ + { + "schemes": [ + "https://fooday.app/*/reviews/*", + "https://fooday.app/*/spots/*" + ], + "url": "https://fooday.app/oembed", + "discovery": true + } + ] + }, { "provider_name": "FOX SPORTS Australia", "provider_url": "http://www.foxsports.com.au", @@ -2107,7 +2181,9 @@ { "schemes": [ "https://lottiefiles.com/*", - "https://*.lottiefiles.com/*" + "https://*.lottiefiles.com/*", + "https://*.lottie.host/*", + "https://lottie.host/*" ], "url": "https://embed.lottiefiles.com/oembed", "discovery": true, @@ -2419,17 +2495,15 @@ "endpoints": [ { "schemes": [ - "https://ndla.no/*" + "https://ndla.no/*", + "https://ndla.no/article/*", + "https://ndla.no/audio/*", + "https://ndla.no/concept/*", + "https://ndla.no/image/*", + "https://ndla.no/video/*" ], "url": "https://ndla.no/oembed", "discovery": false - }, - { - "schemes": [ - "https://liste.ndla.no/*" - ], - "url": "https://liste.ndla.no/oembed", - "discovery": false } ] }, @@ -2600,6 +2674,13 @@ ], "url": "https://origits.net/oembed", "discovery": true + }, + { + "schemes": [ + "https://origits.com/v/*" + ], + "url": "https://origits.com/oembed", + "discovery": true } ] }, @@ -3486,6 +3567,37 @@ } ] }, + { + "provider_name": "Spyke", + "provider_url": "https://spyke.social", + "endpoints": [ + { + "schemes": [ + "http://spyke.social/p/*", + "http://spyke.social/u/*", + "http://spyke.social/g/*", + "http://spyke.social/c/*", + "https://spyke.social/p/*", + "https://spyke.social/u/*", + "https://spyke.social/g/*", + "https://spyke.social/c/*", + "http://www.spyke.social/p/*", + "http://www.spyke.social/u/*", + "http://www.spyke.social/g/*", + "http://www.spyke.social/c/*", + "https://www.spyke.social/p/*", + "https://www.spyke.social/u/*", + "https://www.spyke.social/g/*", + "https://www.spyke.social/c/*" + ], + "url": "https://api.spyke.social/embed/oembed", + "discovery": true, + "formats": [ + "json" + ] + } + ] + }, { "provider_name": "Stanford Digital Repository", "provider_url": "https://purl.stanford.edu/", @@ -4038,13 +4150,31 @@ "https://vimeo.com/channels/*/*", "https://vimeo.com/groups/*/videos/*", "https://vimeo.com/ondemand/*/*", - "https://player.vimeo.com/video/*" + "https://player.vimeo.com/video/*", + "https://vimeo.com/event/*/*" ], "url": "https://vimeo.com/api/oembed.{format}", "discovery": true } ] }, + { + "provider_name": "Viostream", + "provider_url": "https://www.viostream.com", + "endpoints": [ + { + "schemes": [ + "https://share.viostream.com/*" + ], + "url": "https://play.viostream.com/oembed", + "discovery": true, + "formats": [ + "json", + "xml" + ] + } + ] + }, { "provider_name": "Viously", "provider_url": "https://www.viously.com", @@ -4158,6 +4288,21 @@ } ] }, + { + "provider_name": "Web3 is Going Just Great", + "provider_url": "https://www.web3isgoinggreat.com/", + "endpoints": [ + { + "schemes": [ + "https://www.web3isgoinggreat.com/?id=*", + "https://www.web3isgoinggreat.com/single/*", + "https://www.web3isgoinggreat.com/embed/*" + ], + "url": "https://www.web3isgoinggreat.com/api/oembed", + "discovery": true + } + ] + }, { "provider_name": "wecandeo", "provider_url": "https://www.wecandeo.com/", @@ -4262,6 +4407,20 @@ } ] }, + { + "provider_name": "X", + "provider_url": "http://www.x.com/", + "endpoints": [ + { + "schemes": [ + "https://x.com/*", + "https://x.com/*/status/*", + "https://*.x.com/*/status/*" + ], + "url": "https://publish.x.com/oembed" + } + ] + }, { "provider_name": "YouTube", "provider_url": "https://www.youtube.com/", diff --git a/src/utils/providers.prev.js b/src/utils/providers.prev.js index 1355c8c..f5a9754 100644 --- a/src/utils/providers.prev.js +++ b/src/utils/providers.prev.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2023-08-16T03:16:17.352Z +// provider data, synchronized at 2024-01-22T08:51:16.050Z /* eslint-disable */ @@ -103,10 +103,11 @@ export const providers = [ }, { "s": [ - "studio\\.assemblrworld\\.com/*", + "*\\.studio\\.assemblrworld\\.com/creation/*", + "studio\\.assemblrworld\\.com/creation/*", + "*\\.app-edu\\.assemblrworld\\.com/Creation/*", + "app-edu\\.assemblrworld\\.com/Creation/*", "assemblr\\.world/*", - "app-edu\\.assemblrworld\\.com/*", - "staging\\.d1o2otincy91d\\.amplifyapp\\.com/*", "editor\\.assemblrworld\\.com/*" ], "e": "studio.assemblrworld.com/api/oembed" @@ -166,6 +167,12 @@ export const providers = [ ], "e": "backtracks.fm/oembed" }, + { + "s": [ + "balsamiq\\.cloud/*" + ], + "e": "balsamiq.cloud/oembed" + }, { "s": [ "beams\\.fm/*" @@ -465,6 +472,12 @@ export const providers = [ ], "e": "api.d.tube/oembed" }, + { + "s": [ + "app\\.echoeshq\\.com/embed/*" + ], + "e": "api.echoeshq.com/oembed" + }, { "s": [], "e": "www.edumedia-sciences.com/oembed.json" @@ -651,13 +664,6 @@ export const providers = [ ], "e": "embed.gettyimages.com/oembed" }, - { - "s": [ - "gfycat\\.com/*", - "www\\.gfycat\\.com/*" - ], - "e": "api.gfycat.com/v1/oembed" - }, { "s": [ "www\\.gifnote\\.com/play/*"