UNPKG

1.33 kBJavaScriptView Raw
1'use strict'
2
3// mappings - map elements to property names
4
5module.exports = {
6 channel: new Map([
7 ['atom:link', 'link'],
8 ['copyright', 'copyright'],
9 ['description', 'summary'],
10 ['image', 'image'],
11 ['itunes:author', 'author'],
12 ['itunes:image', 'image'],
13 ['itunes:subtitle', 'subtitle'],
14 ['itunes:summary', 'summary'],
15 ['language', 'language'],
16 ['link', 'link'],
17 ['pubDate', 'updated'],
18 ['lastBuildDate', 'updated'],
19 ['title', 'title'],
20 ['ttl', 'ttl']
21 ]),
22 item: new Map([
23 ['author', 'author'],
24 ['content:encoded', 'summary'],
25 ['enclosure', 'enclosure'],
26 ['guid', 'id'],
27 ['itunes:author', 'author'],
28 ['itunes:duration', 'duration'],
29 ['itunes:image', 'image'],
30 ['itunes:subtitle', 'subtitle'],
31 ['itunes:summary', 'summary'],
32 ['description', 'summary'],
33 ['link', 'link'],
34 ['media:thumbnail', 'image'],
35 ['pubDate', 'updated'],
36 ['title', 'title']
37 ]),
38 feed: new Map([
39 ['id', 'id'],
40 ['link', 'link'],
41 ['name', 'author'],
42 ['subtitle', 'subtitle'],
43 ['title', 'title'],
44 ['updated', 'updated']
45 ]),
46 entry: new Map([
47 ['content', 'summary'],
48 ['email', 'author'],
49 ['id', 'id'],
50 ['link', 'link'],
51 ['summary', 'summary'],
52 ['title', 'title'],
53 ['updated', 'updated']
54 ])
55}