From a5df74b1c2e25e53e0a9f5cc97dc2c159f3b213a Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Tue, 28 Mar 2023 10:23:19 +0700 Subject: [PATCH 1/2] v3.1.9 - Sync to the latest provider list - Update dependencies --- dist/cjs/oembed-extractor.js | 28 ++++++++++++------- dist/oembed-extractor.esm.js | 28 ++++++++++++------- package.json | 6 ++-- src/utils/providers.latest.js | 28 ++++++++++++------- src/utils/providers.orginal.json | 48 +++++++++++++++++++++----------- src/utils/providers.prev.js | 2 +- 6 files changed, 89 insertions(+), 51 deletions(-) diff --git a/dist/cjs/oembed-extractor.js b/dist/cjs/oembed-extractor.js index ad4a3de..d697071 100644 --- a/dist/cjs/oembed-extractor.js +++ b/dist/cjs/oembed-extractor.js @@ -1,4 +1,4 @@ -// @extractus/oembed-extractor@3.1.8, by @extractus - built with esbuild at 2023-01-11T02:48:50.197Z - published under MIT license +// @extractus/oembed-extractor@3.1.8, by @extractus - built with esbuild at 2023-03-28T03:23:06.966Z - published under MIT license var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -3248,6 +3248,12 @@ var providers = [ ], "e": "backtracks.fm/oembed" }, + { + "s": [ + "beams\\.fm/*" + ], + "e": "api.beams.fm/oEmbed" + }, { "s": [], "e": "www.beautiful.ai/api/oembed" @@ -3313,13 +3319,6 @@ var providers = [ ], "e": "minesweeper.today/api/oembed" }, - { - "s": [ - "www-catapult-app\\.sandbox\\.hs-sites\\.com/video-page*", - "www-catapult\\.app/video-page*" - ], - "e": "www.catapult.app/_hcms/api/video/oembed" - }, { "s": [ "img\\.catbo\\.at/*" @@ -3957,9 +3956,12 @@ var providers = [ "*\\.jovian\\.ml/*", "jovian\\.ai/*", "jovian\\.ai/viewer*", - "*\\.jovian\\.ai/*" + "*\\.jovian\\.ai/*", + "jovian\\.com/*", + "jovian\\.com/viewer*", + "*\\.jovian\\.com/*" ], - "e": "api.jovian.ai/oembed.json" + "e": "api.jovian.com/oembed.json" }, { "s": [ @@ -4156,6 +4158,12 @@ var providers = [ ], "e": "www.mixcloud.com/oembed/" }, + { + "s": [ + "mixpanel\\.com/*" + ], + "e": "mixpanel.com/api/app/embed/oembed/" + }, { "s": [ "www\\.mobypicture\\.com/user/*/view/*", diff --git a/dist/oembed-extractor.esm.js b/dist/oembed-extractor.esm.js index 55738c3..04670d3 100644 --- a/dist/oembed-extractor.esm.js +++ b/dist/oembed-extractor.esm.js @@ -1,4 +1,4 @@ -// @extractus/oembed-extractor@3.1.8, by @extractus - built with esbuild at 2023-01-11T02:48:50.197Z - published under MIT license +// @extractus/oembed-extractor@3.1.8, by @extractus - built with esbuild at 2023-03-28T03:23:06.966Z - published under MIT license // src/utils/linker.js var isValid = (url = "") => { @@ -226,6 +226,12 @@ var providers = [ ], "e": "backtracks.fm/oembed" }, + { + "s": [ + "beams\\.fm/*" + ], + "e": "api.beams.fm/oEmbed" + }, { "s": [], "e": "www.beautiful.ai/api/oembed" @@ -291,13 +297,6 @@ var providers = [ ], "e": "minesweeper.today/api/oembed" }, - { - "s": [ - "www-catapult-app\\.sandbox\\.hs-sites\\.com/video-page*", - "www-catapult\\.app/video-page*" - ], - "e": "www.catapult.app/_hcms/api/video/oembed" - }, { "s": [ "img\\.catbo\\.at/*" @@ -935,9 +934,12 @@ var providers = [ "*\\.jovian\\.ml/*", "jovian\\.ai/*", "jovian\\.ai/viewer*", - "*\\.jovian\\.ai/*" + "*\\.jovian\\.ai/*", + "jovian\\.com/*", + "jovian\\.com/viewer*", + "*\\.jovian\\.com/*" ], - "e": "api.jovian.ai/oembed.json" + "e": "api.jovian.com/oembed.json" }, { "s": [ @@ -1134,6 +1136,12 @@ var providers = [ ], "e": "www.mixcloud.com/oembed/" }, + { + "s": [ + "mixpanel\\.com/*" + ], + "e": "mixpanel.com/api/app/embed/oembed/" + }, { "s": [ "www\\.mobypicture\\.com/user/*/view/*", diff --git a/package.json b/package.json index adf4523..0d8d7f5 100644 --- a/package.json +++ b/package.json @@ -39,9 +39,9 @@ "cross-fetch": "^3.1.5" }, "devDependencies": { - "esbuild": "^0.16.16", - "eslint": "^8.31.0", - "jest": "^29.3.1", + "esbuild": "^0.17.14", + "eslint": "^8.36.0", + "jest": "^29.5.0", "nock": "^13.3.0" }, "keywords": [ diff --git a/src/utils/providers.latest.js b/src/utils/providers.latest.js index de804bd..8f61c34 100644 --- a/src/utils/providers.latest.js +++ b/src/utils/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2023-01-11T02:27:50.456Z +// provider data, synchronized at 2023-03-28T03:23:00.248Z /* eslint-disable */ @@ -148,6 +148,12 @@ export const providers = [ ], "e": "backtracks.fm/oembed" }, + { + "s": [ + "beams\\.fm/*" + ], + "e": "api.beams.fm/oEmbed" + }, { "s": [], "e": "www.beautiful.ai/api/oembed" @@ -213,13 +219,6 @@ export const providers = [ ], "e": "minesweeper.today/api/oembed" }, - { - "s": [ - "www-catapult-app\\.sandbox\\.hs-sites\\.com/video-page*", - "www-catapult\\.app/video-page*" - ], - "e": "www.catapult.app/_hcms/api/video/oembed" - }, { "s": [ "img\\.catbo\\.at/*" @@ -857,9 +856,12 @@ export const providers = [ "*\\.jovian\\.ml/*", "jovian\\.ai/*", "jovian\\.ai/viewer*", - "*\\.jovian\\.ai/*" + "*\\.jovian\\.ai/*", + "jovian\\.com/*", + "jovian\\.com/viewer*", + "*\\.jovian\\.com/*" ], - "e": "api.jovian.ai/oembed.json" + "e": "api.jovian.com/oembed.json" }, { "s": [ @@ -1056,6 +1058,12 @@ export const providers = [ ], "e": "www.mixcloud.com/oembed/" }, + { + "s": [ + "mixpanel\\.com/*" + ], + "e": "mixpanel.com/api/app/embed/oembed/" + }, { "s": [ "www\\.mobypicture\\.com/user/*/view/*", diff --git a/src/utils/providers.orginal.json b/src/utils/providers.orginal.json index 59b25f9..f05294d 100644 --- a/src/utils/providers.orginal.json +++ b/src/utils/providers.orginal.json @@ -305,6 +305,19 @@ } ] }, + { + "provider_name": "Beams.fm", + "provider_url": "http://beams.fm", + "endpoints": [ + { + "schemes": [ + "https://beams.fm/*" + ], + "url": "https://api.beams.fm/oEmbed", + "discovery": true + } + ] + }, { "provider_name": "Beautiful.AI", "provider_url": "https://www.beautiful.ai/", @@ -450,20 +463,6 @@ } ] }, - { - "provider_name": "Catapult", - "provider_url": "https://www.catapult.app/", - "endpoints": [ - { - "schemes": [ - "https://www-catapult-app.sandbox.hs-sites.com/video-page*", - "https://www-catapult.app/video-page*" - ], - "url": "https://www.catapult.app/_hcms/api/video/oembed", - "discovery": true - } - ] - }, { "provider_name": "CatBoat", "provider_url": "http://img.catbo.at/", @@ -1783,7 +1782,7 @@ }, { "provider_name": "Jovian", - "provider_url": "https://jovian.ai/", + "provider_url": "https://jovian.com/", "endpoints": [ { "schemes": [ @@ -1792,9 +1791,12 @@ "https://*.jovian.ml/*", "https://jovian.ai/*", "https://jovian.ai/viewer*", - "https://*.jovian.ai/*" + "https://*.jovian.ai/*", + "https://jovian.com/*", + "https://jovian.com/viewer*", + "https://*.jovian.com/*" ], - "url": "https://api.jovian.ai/oembed.json", + "url": "https://api.jovian.com/oembed.json", "discovery": true } ] @@ -2208,6 +2210,18 @@ } ] }, + { + "provider_name": "Mixpanel", + "provider_url": "https://mixpanel.com/", + "endpoints": [ + { + "schemes": [ + "https://mixpanel.com/*" + ], + "url": "https://mixpanel.com/api/app/embed/oembed/" + } + ] + }, { "provider_name": "Moby Picture", "provider_url": "http://www.mobypicture.com", diff --git a/src/utils/providers.prev.js b/src/utils/providers.prev.js index db78c29..de804bd 100644 --- a/src/utils/providers.prev.js +++ b/src/utils/providers.prev.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-12-02T14:34:17.228Z +// provider data, synchronized at 2023-01-11T02:27:50.456Z /* eslint-disable */ From a28f2cd27b62b72f8806c5a988d636bacea6d950 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Tue, 28 Mar 2023 10:24:36 +0700 Subject: [PATCH 2/2] Update ci config --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index e16923c..109cd4c 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node_version: [14.x, 15.x, 16.x, 17.x, 18.x, 19.x] + node_version: [14.x, 16.x, 18.x, 19.x] steps: - uses: actions/checkout@v3