Skip to content

Commit

Permalink
Merge pull request #163 from ndaidong/review
Browse files Browse the repository at this point in the history
Merge pr #162
  • Loading branch information
ndaidong authored Nov 22, 2022
2 parents 4a79526 + 59ebfe8 commit 71639d8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,35 +111,35 @@ 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<string, string>;
}

export interface FetchOptions {
/**
* list of request headers
* default: null
*/
headers?: string[];
headers?: Record<string, string>;
/**
* the values to configure proxy
* default: null
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/oembed-parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// [email protected].4, by @ndaidong - built with esbuild at 2022-11-13T05:18:59.638Z - published under MIT license
// [email protected].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;
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.4",
"version": "3.1.5",
"main": "./oembed-parser.js"
}
2 changes: 1 addition & 1 deletion dist/oembed-parser.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// [email protected].4, by @ndaidong - built with esbuild at 2022-11-13T05:18:59.638Z - published under MIT license
// [email protected].5, by @ndaidong - built with esbuild at 2022-11-22T04:15:03.946Z - published under MIT license

// src/utils/linker.js
var isValid = (url = "") => {
Expand Down
12 changes: 6 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,35 +111,35 @@ 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<string, string>;
}

export interface FetchOptions {
/**
* list of request headers
* default: null
*/
headers?: string[];
headers?: Record<string, string>;
/**
* the values to configure proxy
* default: null
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 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-11-13T05:17:54.675Z
// provider data, synchronized at 2022-11-22T04:14:50.180Z

/* eslint-disable */

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-10-26T05:04:37.983Z
// provider data, synchronized at 2022-11-13T05:17:54.675Z

/* eslint-disable */

Expand Down

0 comments on commit 71639d8

Please sign in to comment.