From 72ccd5392edadd95ae3422213dd52e5a30c20628 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Thu, 13 Oct 2022 09:17:46 +0700 Subject: [PATCH] v3.1.2 - Sync to last provider list - Update dependencies Related issues: #153 --- dist/cjs/oembed-parser.js | 32 +++++++++++++++- dist/cjs/package.json | 2 +- dist/oembed-parser.esm.js | 32 +++++++++++++++- package.json | 10 +++-- src/utils/providers.latest.js | 32 +++++++++++++++- src/utils/providers.orginal.json | 63 ++++++++++++++++++++++++++++++++ src/utils/providers.prev.js | 2 +- 7 files changed, 164 insertions(+), 9 deletions(-) diff --git a/dist/cjs/oembed-parser.js b/dist/cjs/oembed-parser.js index 0301bdf..1d3ab22 100644 --- a/dist/cjs/oembed-parser.js +++ b/dist/cjs/oembed-parser.js @@ -1,4 +1,4 @@ -// oembed-parser@3.1.1, by @ndaidong - built with esbuild at 2022-09-21T15:03:39.445Z - published under MIT license +// oembed-parser@3.1.2, by @ndaidong - built with esbuild at 2022-10-13T02:16:48.560Z - published under MIT license var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -3418,6 +3418,13 @@ var providers = [ ], "e": "www.docdroid.net/api/oembed" }, + { + "s": [ + "docswell\\.com/*/*", + "www\\.docswell\\.com/*/*" + ], + "e": "www.docswell.com/service/oembed" + }, { "s": [ "dotsub\\.com/view/*" @@ -3925,6 +3932,13 @@ var providers = [ ], "e": "embed.kooapp.com/services/oembed" }, + { + "s": [ + "kurozora\\.app/episodes*", + "kurozora\\.app/songs*" + ], + "e": "kurozora.app/oembed" + }, { "s": [ "learningapps\\.org/*" @@ -4044,6 +4058,12 @@ var providers = [ ], "e": "oembed.minervaknows.com" }, + { + "s": [ + "miro\\.com/app/board/*" + ], + "e": "miro.com/api/v1/oembed" + }, { "s": [ "www\\.mixcloud\\.com/*/*/" @@ -4567,6 +4587,15 @@ var providers = [ ], "e": "open.spotify.com/oembed" }, + { + "s": [ + "*\\.spotlightr\\.com/watch/*", + "*\\.spotlightr\\.com/publish/*", + "*\\.cdn\\.spotlightr\\.com/watch/*", + "*\\.cdn\\.spotlightr\\.com/publish/*" + ], + "e": "api.spotlightr.com/getOEmbed" + }, { "s": [ "*\\.spreaker\\.com/*" @@ -4675,6 +4704,7 @@ var providers = [ }, { "s": [ + "www\\.tiktok\\.com/*", "www\\.tiktok\\.com/*/video/*" ], "e": "www.tiktok.com/oembed" diff --git a/dist/cjs/package.json b/dist/cjs/package.json index 9f47f0c..ec577e0 100644 --- a/dist/cjs/package.json +++ b/dist/cjs/package.json @@ -1,5 +1,5 @@ { "name": "oembed-parser", - "version": "3.1.1", + "version": "3.1.2", "main": "./oembed-parser.js" } \ No newline at end of file diff --git a/dist/oembed-parser.esm.js b/dist/oembed-parser.esm.js index 3f0dcad..7053f06 100644 --- a/dist/oembed-parser.esm.js +++ b/dist/oembed-parser.esm.js @@ -1,4 +1,4 @@ -// oembed-parser@3.1.1, by @ndaidong - built with esbuild at 2022-09-21T15:03:39.445Z - published under MIT license +// oembed-parser@3.1.2, by @ndaidong - built with esbuild at 2022-10-13T02:16:48.560Z - published under MIT license // src/utils/linker.js var isValid = (url = "") => { @@ -515,6 +515,13 @@ var providers = [ ], "e": "www.docdroid.net/api/oembed" }, + { + "s": [ + "docswell\\.com/*/*", + "www\\.docswell\\.com/*/*" + ], + "e": "www.docswell.com/service/oembed" + }, { "s": [ "dotsub\\.com/view/*" @@ -1022,6 +1029,13 @@ var providers = [ ], "e": "embed.kooapp.com/services/oembed" }, + { + "s": [ + "kurozora\\.app/episodes*", + "kurozora\\.app/songs*" + ], + "e": "kurozora.app/oembed" + }, { "s": [ "learningapps\\.org/*" @@ -1141,6 +1155,12 @@ var providers = [ ], "e": "oembed.minervaknows.com" }, + { + "s": [ + "miro\\.com/app/board/*" + ], + "e": "miro.com/api/v1/oembed" + }, { "s": [ "www\\.mixcloud\\.com/*/*/" @@ -1664,6 +1684,15 @@ var providers = [ ], "e": "open.spotify.com/oembed" }, + { + "s": [ + "*\\.spotlightr\\.com/watch/*", + "*\\.spotlightr\\.com/publish/*", + "*\\.cdn\\.spotlightr\\.com/watch/*", + "*\\.cdn\\.spotlightr\\.com/publish/*" + ], + "e": "api.spotlightr.com/getOEmbed" + }, { "s": [ "*\\.spreaker\\.com/*" @@ -1772,6 +1801,7 @@ var providers = [ }, { "s": [ + "www\\.tiktok\\.com/*", "www\\.tiktok\\.com/*/video/*" ], "e": "www.tiktok.com/oembed" diff --git a/package.json b/package.json index 3b4796a..e71557c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.1.1", + "version": "3.1.2", "name": "oembed-parser", "description": "Get oEmbed data from given URL.", "homepage": "https://www.npmjs.com/package/oembed-parser", @@ -26,6 +26,7 @@ }, "scripts": { "lint": "standard .", + "lint:fix": "standard --fix", "pretest": "npm run lint", "test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage=true", "eval": "node eval", @@ -38,9 +39,10 @@ "cross-fetch": "^3.1.5" }, "devDependencies": { - "esbuild": "^0.15.7", - "jest": "^29.0.3", - "nock": "^13.2.9" + "esbuild": "^0.15.10", + "jest": "^29.1.2", + "nock": "^13.2.9", + "standard": "^17.0.0" }, "standard": { "ignore": [ diff --git a/src/utils/providers.latest.js b/src/utils/providers.latest.js index ba6d7e5..0082ee2 100644 --- a/src/utils/providers.latest.js +++ b/src/utils/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-09-19T09:58:06.421Z +// provider data, synchronized at 2022-10-13T02:14:43.201Z /* eslint-disable */ @@ -437,6 +437,13 @@ export const providers = [ ], "e": "www.docdroid.net/api/oembed" }, + { + "s": [ + "docswell\\.com/*/*", + "www\\.docswell\\.com/*/*" + ], + "e": "www.docswell.com/service/oembed" + }, { "s": [ "dotsub\\.com/view/*" @@ -944,6 +951,13 @@ export const providers = [ ], "e": "embed.kooapp.com/services/oembed" }, + { + "s": [ + "kurozora\\.app/episodes*", + "kurozora\\.app/songs*" + ], + "e": "kurozora.app/oembed" + }, { "s": [ "learningapps\\.org/*" @@ -1063,6 +1077,12 @@ export const providers = [ ], "e": "oembed.minervaknows.com" }, + { + "s": [ + "miro\\.com/app/board/*" + ], + "e": "miro.com/api/v1/oembed" + }, { "s": [ "www\\.mixcloud\\.com/*/*/" @@ -1586,6 +1606,15 @@ export const providers = [ ], "e": "open.spotify.com/oembed" }, + { + "s": [ + "*\\.spotlightr\\.com/watch/*", + "*\\.spotlightr\\.com/publish/*", + "*\\.cdn\\.spotlightr\\.com/watch/*", + "*\\.cdn\\.spotlightr\\.com/publish/*" + ], + "e": "api.spotlightr.com/getOEmbed" + }, { "s": [ "*\\.spreaker\\.com/*" @@ -1694,6 +1723,7 @@ export const providers = [ }, { "s": [ + "www\\.tiktok\\.com/*", "www\\.tiktok\\.com/*/video/*" ], "e": "www.tiktok.com/oembed" diff --git a/src/utils/providers.orginal.json b/src/utils/providers.orginal.json index 112605f..3ebd555 100644 --- a/src/utils/providers.orginal.json +++ b/src/utils/providers.orginal.json @@ -924,6 +924,25 @@ } ] }, + { + "provider_name": "Docswell", + "provider_url": "https://docswell.com", + "endpoints": [ + { + "schemes": [ + "http://docswell.com/*/*", + "https://docswell.com/*/*", + "http://www.docswell.com/*/*", + "https://www.docswell.com/*/*" + ], + "url": "https://www.docswell.com/service/oembed", + "discovery": true, + "formats": [ + "json" + ] + } + ] + }, { "provider_name": "Dotsub", "provider_url": "http://dotsub.com/", @@ -1969,6 +1988,20 @@ } ] }, + { + "provider_name": "Kurozora", + "provider_url": "https://kurozora.app/", + "endpoints": [ + { + "schemes": [ + "https://kurozora.app/episodes*", + "https://kurozora.app/songs*" + ], + "url": "https://kurozora.app/oembed", + "discovery": true + } + ] + }, { "provider_name": "LearningApps.org", "provider_url": "http://learningapps.org/", @@ -2217,6 +2250,19 @@ } ] }, + { + "provider_name": "Miro", + "provider_url": "https://miro.com/", + "endpoints": [ + { + "schemes": [ + "https://miro.com/app/board/*" + ], + "url": "https://miro.com/api/v1/oembed", + "discovery": true + } + ] + }, { "provider_name": "MixCloud", "provider_url": "https://mixcloud.com/", @@ -3349,6 +3395,22 @@ } ] }, + { + "provider_name": "Spotlightr", + "provider_url": "https://spotlightr.com", + "endpoints": [ + { + "schemes": [ + "https://*.spotlightr.com/watch/*", + "https://*.spotlightr.com/publish/*", + "https://*.cdn.spotlightr.com/watch/*", + "https://*.cdn.spotlightr.com/publish/*" + ], + "url": "https://api.spotlightr.com/getOEmbed", + "discovery": true + } + ] + }, { "provider_name": "Spreaker", "provider_url": "https://www.spreaker.com/", @@ -3597,6 +3659,7 @@ "endpoints": [ { "schemes": [ + "https://www.tiktok.com/*", "https://www.tiktok.com/*/video/*" ], "url": "https://www.tiktok.com/oembed" diff --git a/src/utils/providers.prev.js b/src/utils/providers.prev.js index 82c0b40..ba6d7e5 100644 --- a/src/utils/providers.prev.js +++ b/src/utils/providers.prev.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-09-18T15:50:15.125Z +// provider data, synchronized at 2022-09-19T09:58:06.421Z /* eslint-disable */