Skip to content

Commit 71639d8

Browse files
authored
Merge pull request #163 from ndaidong/review
Merge pr #162
2 parents 4a79526 + 59ebfe8 commit 71639d8

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

dist/cjs/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,35 +111,35 @@ export interface Params {
111111
* max width of embed size
112112
* Default: null
113113
*/
114-
maxwidth: number
114+
maxwidth?: number
115115
/**
116116
* max height of embed size
117117
* Default: null
118118
*/
119-
maxheight: number
119+
maxheight?: number
120120
/**
121121
* theme for the embed, such as "dark" or "light"
122122
* Default: null
123123
*/
124-
theme: string
124+
theme?: string
125125
/**
126126
* language for the embed, e.g. "en", "fr", "vi", etc
127127
* Default: null
128128
*/
129-
lang: string
129+
lang?: string
130130
}
131131

132132
export interface ProxyConfig {
133133
target?: string;
134-
headers?: string[];
134+
headers?: Record<string, string>;
135135
}
136136

137137
export interface FetchOptions {
138138
/**
139139
* list of request headers
140140
* default: null
141141
*/
142-
headers?: string[];
142+
headers?: Record<string, string>;
143143
/**
144144
* the values to configure proxy
145145
* default: null

dist/cjs/oembed-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// [email protected].4, by @ndaidong - built with esbuild at 2022-11-13T05:18:59.638Z - published under MIT license
1+
// [email protected].5, by @ndaidong - built with esbuild at 2022-11-22T04:15:03.946Z - published under MIT license
22
var __create = Object.create;
33
var __defProp = Object.defineProperty;
44
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;

dist/cjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "oembed-parser",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"main": "./oembed-parser.js"
55
}

dist/oembed-parser.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// [email protected].4, by @ndaidong - built with esbuild at 2022-11-13T05:18:59.638Z - published under MIT license
1+
// [email protected].5, by @ndaidong - built with esbuild at 2022-11-22T04:15:03.946Z - published under MIT license
22

33
// src/utils/linker.js
44
var isValid = (url = "") => {

index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,35 +111,35 @@ export interface Params {
111111
* max width of embed size
112112
* Default: null
113113
*/
114-
maxwidth: number
114+
maxwidth?: number
115115
/**
116116
* max height of embed size
117117
* Default: null
118118
*/
119-
maxheight: number
119+
maxheight?: number
120120
/**
121121
* theme for the embed, such as "dark" or "light"
122122
* Default: null
123123
*/
124-
theme: string
124+
theme?: string
125125
/**
126126
* language for the embed, e.g. "en", "fr", "vi", etc
127127
* Default: null
128128
*/
129-
lang: string
129+
lang?: string
130130
}
131131

132132
export interface ProxyConfig {
133133
target?: string;
134-
headers?: string[];
134+
headers?: Record<string, string>;
135135
}
136136

137137
export interface FetchOptions {
138138
/**
139139
* list of request headers
140140
* default: null
141141
*/
142-
headers?: string[];
142+
headers?: Record<string, string>;
143143
/**
144144
* the values to configure proxy
145145
* default: null

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.1.4",
2+
"version": "3.1.5",
33
"name": "oembed-parser",
44
"description": "Get oEmbed data from given URL.",
55
"homepage": "https://www.npmjs.com/package/oembed-parser",
@@ -39,7 +39,7 @@
3939
"cross-fetch": "^3.1.5"
4040
},
4141
"devDependencies": {
42-
"esbuild": "^0.15.13",
42+
"esbuild": "^0.15.15",
4343
"jest": "^29.3.1",
4444
"nock": "^13.2.9",
4545
"standard": "^17.0.0"

src/utils/providers.latest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// provider data, synchronized at 2022-11-13T05:17:54.675Z
1+
// provider data, synchronized at 2022-11-22T04:14:50.180Z
22

33
/* eslint-disable */
44

src/utils/providers.prev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// provider data, synchronized at 2022-10-26T05:04:37.983Z
1+
// provider data, synchronized at 2022-11-13T05:17:54.675Z
22

33
/* eslint-disable */
44

0 commit comments

Comments
 (0)