Skip to content

Commit

Permalink
Merge pull request #154 from ndaidong/3.1.2
Browse files Browse the repository at this point in the history
v3.1.2
  • Loading branch information
ndaidong committed Oct 13, 2022
2 parents 933590f + 72ccd53 commit 3ba54fa
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 9 deletions.
32 changes: 31 additions & 1 deletion dist/cjs/oembed-parser.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -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/*/*/"
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -4675,6 +4704,7 @@ var providers = [
},
{
"s": [
"www\\.tiktok\\.com/*",
"www\\.tiktok\\.com/*/video/*"
],
"e": "www.tiktok.com/oembed"
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "oembed-parser",
"version": "3.1.1",
"version": "3.1.2",
"main": "./oembed-parser.js"
}
32 changes: 31 additions & 1 deletion dist/oembed-parser.esm.js
Original file line number Diff line number Diff line change
@@ -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 = "") => {
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -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/*/*/"
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -1772,6 +1801,7 @@ var providers = [
},
{
"s": [
"www\\.tiktok\\.com/*",
"www\\.tiktok\\.com/*/video/*"
],
"e": "www.tiktok.com/oembed"
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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": [
Expand Down
32 changes: 31 additions & 1 deletion src/utils/providers.latest.js
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -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/*/*/"
Expand Down Expand Up @@ -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/*"
Expand Down Expand Up @@ -1694,6 +1723,7 @@ export const providers = [
},
{
"s": [
"www\\.tiktok\\.com/*",
"www\\.tiktok\\.com/*/video/*"
],
"e": "www.tiktok.com/oembed"
Expand Down
63 changes: 63 additions & 0 deletions src/utils/providers.orginal.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down Expand Up @@ -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/",
Expand Down Expand Up @@ -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/",
Expand Down Expand Up @@ -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/",
Expand Down Expand Up @@ -3597,6 +3659,7 @@
"endpoints": [
{
"schemes": [
"https://www.tiktok.com/*",
"https://www.tiktok.com/*/video/*"
],
"url": "https://www.tiktok.com/oembed"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/providers.prev.js
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down

0 comments on commit 3ba54fa

Please sign in to comment.