diff --git a/dist/cjs/oembed-parser.js b/dist/cjs/oembed-parser.js index 3d15e47..5e885e2 100644 --- a/dist/cjs/oembed-parser.js +++ b/dist/cjs/oembed-parser.js @@ -1,4 +1,4 @@ -// oembed-parser@3.0.1, by @ndaidong - built with esbuild at 2022-04-19T11:38:22.410Z - published under MIT license +// oembed-parser@3.0.2, by @ndaidong - built with esbuild at 2022-04-24T04:05:44.858Z - published under MIT license var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -3104,6 +3104,22 @@ var providers = [ } ] }, + { + "provider_name": "Adilo", + "provider_url": "https://adilo.bigcommand.com", + "endpoints": [ + { + "schemes": [ + "https://adilo.bigcommand.com/watch/*" + ], + "url": "https://adilo.bigcommand.com/web/oembed", + "discovery": true, + "formats": [ + "json" + ] + } + ] + }, { "provider_name": "Adways", "provider_url": "http://www.adways.com", @@ -4047,6 +4063,20 @@ var providers = [ } ] }, + { + "provider_name": "everviz", + "provider_url": "https://everviz.com", + "endpoints": [ + { + "schemes": [ + "https://app.everviz.com/embed/*", + "http://app.everviz.com/embed/*" + ], + "url": "https://api.everviz.com/oembed", + "discovery": true + } + ] + }, { "provider_name": "Ex.Co", "provider_url": "https://ex.co", @@ -6765,6 +6795,19 @@ var providers = [ } ] }, + { + "provider_name": "Vouch", + "provider_url": "https://www.vouchfor.com/", + "endpoints": [ + { + "schemes": [ + "https://*.vouchfor.com/*" + ], + "url": "https://embed.vouchfor.com/v1/oembed", + "discovery": true + } + ] + }, { "provider_name": "VoxSnap", "provider_url": "https://voxsnap.com/", diff --git a/dist/cjs/package.json b/dist/cjs/package.json index 7fd3fa5..45f1f90 100644 --- a/dist/cjs/package.json +++ b/dist/cjs/package.json @@ -1,5 +1,5 @@ { "name": "oembed-parser-cjs", - "version": "3.0.1", + "version": "3.0.2", "main": "./oembed-parser.js" } \ No newline at end of file diff --git a/dist/cjs/providers.latest.js b/dist/cjs/providers.latest.js index 472eae6..83a47e4 100644 --- a/dist/cjs/providers.latest.js +++ b/dist/cjs/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-04-19T11:37:36.305Z +// provider data, synchronized at 2022-04-24T04:05:40.938Z /* eslint-disable */ @@ -40,6 +40,22 @@ export const providers = [ } ] }, + { + "provider_name": "Adilo", + "provider_url": "https://adilo.bigcommand.com", + "endpoints": [ + { + "schemes": [ + "https://adilo.bigcommand.com/watch/*" + ], + "url": "https://adilo.bigcommand.com/web/oembed", + "discovery": true, + "formats": [ + "json" + ] + } + ] + }, { "provider_name": "Adways", "provider_url": "http://www.adways.com", @@ -983,6 +999,20 @@ export const providers = [ } ] }, + { + "provider_name": "everviz", + "provider_url": "https://everviz.com", + "endpoints": [ + { + "schemes": [ + "https://app.everviz.com/embed/*", + "http://app.everviz.com/embed/*" + ], + "url": "https://api.everviz.com/oembed", + "discovery": true + } + ] + }, { "provider_name": "Ex.Co", "provider_url": "https://ex.co", @@ -3701,6 +3731,19 @@ export const providers = [ } ] }, + { + "provider_name": "Vouch", + "provider_url": "https://www.vouchfor.com/", + "endpoints": [ + { + "schemes": [ + "https://*.vouchfor.com/*" + ], + "url": "https://embed.vouchfor.com/v1/oembed", + "discovery": true + } + ] + }, { "provider_name": "VoxSnap", "provider_url": "https://voxsnap.com/", diff --git a/index.d.ts b/index.d.ts index 41b58ad..ecfe9c3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -9,7 +9,7 @@ export function extract(url: string, params?: any): Promise; export function hasProvider(url: string): boolean -export function findProvider(url: string): FoundProvider +export function findProvider(url: string): FindProviderResult export function setProviderList(providers: Provider[]): void @@ -35,6 +35,7 @@ export interface FindProviderResult { "provider_name": string; "provider_url": string; } + /** * Basic data structure of every oembed response see https://oembed.com/ */ diff --git a/package.json b/package.json index c2a48a3..c6c55b9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.0.1", + "version": "3.0.2", "name": "oembed-parser", "description": "Get oEmbed data from given URL.", "homepage": "https://www.npmjs.com/package/oembed-parser", @@ -47,7 +47,7 @@ }, "devDependencies": { "@babel/plugin-transform-modules-commonjs": "^7.17.9", - "esbuild": "^0.14.36", + "esbuild": "^0.14.38", "jest": "^27.5.1", "nock": "^13.2.4" }, diff --git a/src/utils/providers.latest.js b/src/utils/providers.latest.js index 472eae6..83a47e4 100644 --- a/src/utils/providers.latest.js +++ b/src/utils/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-04-19T11:37:36.305Z +// provider data, synchronized at 2022-04-24T04:05:40.938Z /* eslint-disable */ @@ -40,6 +40,22 @@ export const providers = [ } ] }, + { + "provider_name": "Adilo", + "provider_url": "https://adilo.bigcommand.com", + "endpoints": [ + { + "schemes": [ + "https://adilo.bigcommand.com/watch/*" + ], + "url": "https://adilo.bigcommand.com/web/oembed", + "discovery": true, + "formats": [ + "json" + ] + } + ] + }, { "provider_name": "Adways", "provider_url": "http://www.adways.com", @@ -983,6 +999,20 @@ export const providers = [ } ] }, + { + "provider_name": "everviz", + "provider_url": "https://everviz.com", + "endpoints": [ + { + "schemes": [ + "https://app.everviz.com/embed/*", + "http://app.everviz.com/embed/*" + ], + "url": "https://api.everviz.com/oembed", + "discovery": true + } + ] + }, { "provider_name": "Ex.Co", "provider_url": "https://ex.co", @@ -3701,6 +3731,19 @@ export const providers = [ } ] }, + { + "provider_name": "Vouch", + "provider_url": "https://www.vouchfor.com/", + "endpoints": [ + { + "schemes": [ + "https://*.vouchfor.com/*" + ], + "url": "https://embed.vouchfor.com/v1/oembed", + "discovery": true + } + ] + }, { "provider_name": "VoxSnap", "provider_url": "https://voxsnap.com/", diff --git a/src/utils/providers.prev.js b/src/utils/providers.prev.js index 096322c..472eae6 100644 --- a/src/utils/providers.prev.js +++ b/src/utils/providers.prev.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-04-08T03:55:41.101Z +// provider data, synchronized at 2022-04-19T11:37:36.305Z /* eslint-disable */