@@ -89,7 +89,7 @@ const initializeMetaContentCollection = (): MetaContentCollection => {
89
89
. map ( ( existingValue ) =>
90
90
typeof existingValue === "string"
91
91
? existingValue
92
- : existingValue . value
92
+ : existingValue . value ,
93
93
)
94
94
. some ( ( existingValue ) => value === existingValue ) ;
95
95
@@ -160,7 +160,7 @@ const collectMetaTags = (head: Element): MetaContentCollection => {
160
160
*/
161
161
const combineRoot = (
162
162
metaTags : MetaContentCollection ,
163
- options : ParsingOptions
163
+ options : ParsingOptions ,
164
164
) : MicroformatRoot [ ] => {
165
165
const item : MicroformatRoot = { properties : { } } ;
166
166
@@ -175,7 +175,7 @@ const combineRoot = (
175
175
*/
176
176
const setMicroformatProp = (
177
177
property : string ,
178
- value : MetaTagContent [ ] = [ ]
178
+ value : MetaTagContent [ ] = [ ] ,
179
179
) => {
180
180
const filteredValue = value . filter ( Boolean ) ;
181
181
if ( filteredValue . length ) {
@@ -196,18 +196,18 @@ const combineRoot = (
196
196
197
197
setMicroformatProp (
198
198
"name" ,
199
- metaTags . get ( [ "og:title" , "twitter:title" , TITLE_TAG_KEY ] )
199
+ metaTags . get ( [ "og:title" , "twitter:title" , TITLE_TAG_KEY ] ) ,
200
200
) ;
201
201
setMicroformatProp (
202
202
"summary" ,
203
- metaTags . get ( [ "og:description" , "twitter:description" , "description" ] )
203
+ metaTags . get ( [ "og:description" , "twitter:description" , "description" ] ) ,
204
204
) ;
205
205
setMicroformatProp ( "featured" , metaTags . get ( [ "og:image" , "twitter:image" ] ) ) ;
206
206
setMicroformatProp ( "video" , metaTags . get ( [ "og:video" , "twitter:video" ] ) ) ;
207
207
setMicroformatProp ( "audio" , metaTags . get ( [ "og:audio" , "twitter:audio" ] ) ) ;
208
208
setMicroformatProp (
209
209
"published" ,
210
- metaTags . get ( [ "article:published_time" , "date" ] )
210
+ metaTags . get ( [ "article:published_time" , "date" ] ) ,
211
211
) ;
212
212
setMicroformatProp ( "updated" , metaTags . get ( [ "article:modified_time" ] ) ) ;
213
213
setMicroformatProp ( "author" , metaTags . get ( [ "article:author" , "author" ] ) ) ;
@@ -216,7 +216,7 @@ const combineRoot = (
216
216
// Publication properties useful for h-cite
217
217
setMicroformatProp (
218
218
"publication" ,
219
- metaTags . get ( [ "og:site_name" , "publisher" ] )
219
+ metaTags . get ( [ "og:site_name" , "publisher" ] ) ,
220
220
) ;
221
221
222
222
if ( impliedRootClass === "h-card" ) {
@@ -233,7 +233,7 @@ const combineRoot = (
233
233
234
234
export const parseMetaformats = (
235
235
doc : Document ,
236
- options : ParsingOptions
236
+ options : ParsingOptions ,
237
237
) : MicroformatRoot [ ] => {
238
238
// Per validation, html element will always be found
239
239
const html = doc . childNodes . find ( isTag ( "html" ) ) ;
0 commit comments