File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
import { URL } from 'url'
11
11
import { u } from 'unist-builder'
12
12
import { x } from 'xastscript'
13
- import bcp47 from 'bcp-47-normalize'
13
+ import { bcp47Normalize as normalize } from 'bcp-47-normalize'
14
14
import { toAuthor , toDate } from './util.js'
15
15
16
16
/**
@@ -183,7 +183,7 @@ export function atom(channel, data) {
183
183
'feed' ,
184
184
{
185
185
xmlns : 'http://www.w3.org/2005/Atom' ,
186
- 'xml:lang' : meta . lang ? bcp47 ( meta . lang ) : undefined
186
+ 'xml:lang' : meta . lang ? normalize ( meta . lang ) : undefined
187
187
} ,
188
188
items
189
189
)
Original file line number Diff line number Diff line change 10
10
import { URL } from 'url'
11
11
import { u } from 'unist-builder'
12
12
import { x } from 'xastscript'
13
- import bcp47 from 'bcp-47-normalize'
13
+ import { bcp47Normalize as normalize } from 'bcp-47-normalize'
14
14
import { toAuthor , toDate } from './util.js'
15
15
16
16
/**
@@ -71,7 +71,7 @@ export function rss(channel, data) {
71
71
}
72
72
73
73
if ( meta . lang ) {
74
- lang = bcp47 ( meta . lang )
74
+ lang = normalize ( meta . lang )
75
75
items . push ( x ( 'language' , lang ) , x ( 'dc:language' , lang ) )
76
76
}
77
77
Original file line number Diff line number Diff line change 36
36
],
37
37
"dependencies" : {
38
38
"@types/xast" : " ^1.0.0" ,
39
- "bcp-47-normalize" : " ^1 .0.0" ,
39
+ "bcp-47-normalize" : " ^2 .0.0" ,
40
40
"unist-builder" : " ^3.0.0" ,
41
41
"xastscript" : " ^3.0.0"
42
42
},
You can’t perform that action at this time.
0 commit comments