diff --git a/dist/cjs/index.d.ts b/dist/cjs/index.d.ts index fd2890a..f4b5d01 100644 --- a/dist/cjs/index.d.ts +++ b/dist/cjs/index.d.ts @@ -111,27 +111,27 @@ export interface Params { * max width of embed size * Default: null */ - maxwidth: number + maxwidth?: number /** * max height of embed size * Default: null */ - maxheight: number + maxheight?: number /** * theme for the embed, such as "dark" or "light" * Default: null */ - theme: string + theme?: string /** * language for the embed, e.g. "en", "fr", "vi", etc * Default: null */ - lang: string + lang?: string } export interface ProxyConfig { target?: string; - headers?: string[]; + headers?: Record; } export interface FetchOptions { @@ -139,7 +139,7 @@ export interface FetchOptions { * list of request headers * default: null */ - headers?: string[]; + headers?: Record; /** * the values to configure proxy * default: null diff --git a/dist/cjs/oembed-parser.js b/dist/cjs/oembed-parser.js index 332b243..f0da3f6 100644 --- a/dist/cjs/oembed-parser.js +++ b/dist/cjs/oembed-parser.js @@ -1,4 +1,4 @@ -// oembed-parser@3.1.4, by @ndaidong - built with esbuild at 2022-11-13T05:18:59.638Z - published under MIT license +// oembed-parser@3.1.5, by @ndaidong - built with esbuild at 2022-11-22T04:15:03.946Z - published under MIT license var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; diff --git a/dist/cjs/package.json b/dist/cjs/package.json index 8db62eb..72c995c 100644 --- a/dist/cjs/package.json +++ b/dist/cjs/package.json @@ -1,5 +1,5 @@ { "name": "oembed-parser", - "version": "3.1.4", + "version": "3.1.5", "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 475329a..0953f6a 100644 --- a/dist/oembed-parser.esm.js +++ b/dist/oembed-parser.esm.js @@ -1,4 +1,4 @@ -// oembed-parser@3.1.4, by @ndaidong - built with esbuild at 2022-11-13T05:18:59.638Z - published under MIT license +// oembed-parser@3.1.5, by @ndaidong - built with esbuild at 2022-11-22T04:15:03.946Z - published under MIT license // src/utils/linker.js var isValid = (url = "") => { diff --git a/index.d.ts b/index.d.ts index fd2890a..f4b5d01 100644 --- a/index.d.ts +++ b/index.d.ts @@ -111,27 +111,27 @@ export interface Params { * max width of embed size * Default: null */ - maxwidth: number + maxwidth?: number /** * max height of embed size * Default: null */ - maxheight: number + maxheight?: number /** * theme for the embed, such as "dark" or "light" * Default: null */ - theme: string + theme?: string /** * language for the embed, e.g. "en", "fr", "vi", etc * Default: null */ - lang: string + lang?: string } export interface ProxyConfig { target?: string; - headers?: string[]; + headers?: Record; } export interface FetchOptions { @@ -139,7 +139,7 @@ export interface FetchOptions { * list of request headers * default: null */ - headers?: string[]; + headers?: Record; /** * the values to configure proxy * default: null diff --git a/package.json b/package.json index 721eaa6..feadbe5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.1.4", + "version": "3.1.5", "name": "oembed-parser", "description": "Get oEmbed data from given URL.", "homepage": "https://www.npmjs.com/package/oembed-parser", @@ -39,7 +39,7 @@ "cross-fetch": "^3.1.5" }, "devDependencies": { - "esbuild": "^0.15.13", + "esbuild": "^0.15.15", "jest": "^29.3.1", "nock": "^13.2.9", "standard": "^17.0.0" diff --git a/src/utils/providers.latest.js b/src/utils/providers.latest.js index 49e494f..78dec5c 100644 --- a/src/utils/providers.latest.js +++ b/src/utils/providers.latest.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-11-13T05:17:54.675Z +// provider data, synchronized at 2022-11-22T04:14:50.180Z /* eslint-disable */ diff --git a/src/utils/providers.prev.js b/src/utils/providers.prev.js index edb91b8..49e494f 100644 --- a/src/utils/providers.prev.js +++ b/src/utils/providers.prev.js @@ -1,4 +1,4 @@ -// provider data, synchronized at 2022-10-26T05:04:37.983Z +// provider data, synchronized at 2022-11-13T05:17:54.675Z /* eslint-disable */