feedsmith 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/common/parse.cjs +3 -3
- package/dist/common/parse.js +11 -11
- package/dist/common/types.d.cts +2 -1
- package/dist/common/types.d.ts +2 -1
- package/dist/common/utils.cjs +24 -12
- package/dist/common/utils.js +24 -12
- package/dist/feeds/atom/common/types.d.cts +0 -1
- package/dist/feeds/atom/common/types.d.ts +0 -1
- package/dist/feeds/atom/detect/index.cjs +2 -1
- package/dist/feeds/atom/detect/index.js +2 -1
- package/dist/feeds/atom/generate/index.cjs +1 -1
- package/dist/feeds/atom/generate/index.js +1 -1
- package/dist/feeds/atom/generate/utils.cjs +10 -10
- package/dist/feeds/atom/generate/utils.js +29 -29
- package/dist/feeds/atom/parse/index.cjs +1 -1
- package/dist/feeds/atom/parse/index.js +1 -1
- package/dist/feeds/atom/parse/utils.cjs +3 -11
- package/dist/feeds/atom/parse/utils.js +17 -25
- package/dist/feeds/json/parse/index.cjs +1 -1
- package/dist/feeds/json/parse/index.js +1 -1
- package/dist/feeds/rdf/detect/index.cjs +13 -2
- package/dist/feeds/rdf/detect/index.js +13 -2
- package/dist/feeds/rdf/parse/index.cjs +1 -1
- package/dist/feeds/rdf/parse/index.js +1 -1
- package/dist/feeds/rdf/parse/utils.cjs +2 -2
- package/dist/feeds/rdf/parse/utils.js +12 -12
- package/dist/feeds/rss/generate/index.cjs +1 -1
- package/dist/feeds/rss/generate/index.js +1 -1
- package/dist/feeds/rss/generate/utils.cjs +5 -5
- package/dist/feeds/rss/generate/utils.js +54 -54
- package/dist/feeds/rss/parse/index.cjs +1 -1
- package/dist/feeds/rss/parse/index.js +1 -1
- package/dist/feeds/rss/parse/utils.cjs +2 -2
- package/dist/feeds/rss/parse/utils.js +51 -51
- package/dist/namespaces/atom/common/types.d.cts +4 -3
- package/dist/namespaces/atom/common/types.d.ts +4 -3
- package/dist/namespaces/atom/generate/utils.cjs +4 -4
- package/dist/namespaces/atom/generate/utils.js +6 -6
- package/dist/namespaces/dc/common/types.d.cts +15 -30
- package/dist/namespaces/dc/common/types.d.ts +15 -30
- package/dist/namespaces/dcterms/common/types.d.cts +55 -110
- package/dist/namespaces/dcterms/common/types.d.ts +55 -110
- package/dist/namespaces/itunes/common/types.d.cts +7 -14
- package/dist/namespaces/itunes/common/types.d.ts +7 -14
- package/dist/namespaces/media/common/types.d.cts +1 -2
- package/dist/namespaces/media/common/types.d.ts +1 -2
- package/dist/namespaces/podcast/common/types.d.cts +9 -12
- package/dist/namespaces/podcast/common/types.d.ts +9 -12
- package/dist/namespaces/podcast/generate/utils.cjs +5 -2
- package/dist/namespaces/podcast/generate/utils.js +5 -2
- package/dist/namespaces/podcast/parse/utils.cjs +5 -2
- package/dist/namespaces/podcast/parse/utils.js +5 -2
- package/dist/namespaces/prism/common/types.d.cts +8 -16
- package/dist/namespaces/prism/common/types.d.ts +8 -16
- package/dist/opml/generate/index.cjs +1 -1
- package/dist/opml/generate/index.js +1 -1
- package/package.json +6 -8
|
@@ -36,116 +36,61 @@ declare namespace DcTermsNs {
|
|
|
36
36
|
subjects?: Array<string>;
|
|
37
37
|
temporals?: Array<string>;
|
|
38
38
|
titles?: Array<string>;
|
|
39
|
-
types?: Array<string>;
|
|
40
|
-
/** @deprecated
|
|
41
|
-
|
|
42
|
-
/** @deprecated
|
|
43
|
-
|
|
44
|
-
/** @deprecated Use `
|
|
45
|
-
|
|
46
|
-
/** @deprecated
|
|
47
|
-
|
|
48
|
-
/** @deprecated
|
|
49
|
-
|
|
50
|
-
/** @deprecated Use `
|
|
51
|
-
|
|
52
|
-
/** @deprecated Use `
|
|
53
|
-
|
|
54
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
55
|
-
|
|
56
|
-
/** @deprecated
|
|
57
|
-
|
|
58
|
-
/** @deprecated
|
|
59
|
-
|
|
60
|
-
/** @deprecated Use `
|
|
61
|
-
|
|
62
|
-
/** @deprecated Use `
|
|
63
|
-
|
|
64
|
-
/** @deprecated
|
|
65
|
-
|
|
66
|
-
/** @deprecated
|
|
67
|
-
|
|
68
|
-
/** @deprecated
|
|
69
|
-
|
|
70
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
71
|
-
|
|
72
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
73
|
-
|
|
74
|
-
/** @deprecated
|
|
75
|
-
|
|
76
|
-
/** @deprecated Use `
|
|
77
|
-
|
|
78
|
-
/** @deprecated Use `
|
|
79
|
-
|
|
80
|
-
/** @deprecated
|
|
81
|
-
|
|
82
|
-
/** @deprecated
|
|
83
|
-
|
|
84
|
-
/** @deprecated
|
|
85
|
-
|
|
86
|
-
/** @deprecated Use `
|
|
87
|
-
|
|
88
|
-
/** @deprecated Use `
|
|
89
|
-
|
|
90
|
-
/** @deprecated Use `
|
|
91
|
-
|
|
92
|
-
/** @deprecated Use `
|
|
93
|
-
|
|
94
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
95
|
-
isFormatOf?: string;
|
|
96
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
97
|
-
isPartOf?: string;
|
|
98
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
99
|
-
isReferencedBy?: string;
|
|
100
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
101
|
-
isReplacedBy?: string;
|
|
102
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
103
|
-
isRequiredBy?: string;
|
|
104
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
105
|
-
issued?: TDate;
|
|
106
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
107
|
-
isVersionOf?: string;
|
|
108
|
-
/** @deprecated Use `languages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
109
|
-
language?: string;
|
|
110
|
-
/** @deprecated Use `licenses` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
111
|
-
license?: string;
|
|
112
|
-
/** @deprecated Use `mediators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
113
|
-
mediator?: string;
|
|
114
|
-
/** @deprecated Use `mediums` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
115
|
-
medium?: string;
|
|
116
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
117
|
-
modified?: TDate;
|
|
118
|
-
/** @deprecated Use `provenances` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
119
|
-
provenance?: string;
|
|
120
|
-
/** @deprecated Use `publishers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
121
|
-
publisher?: string;
|
|
122
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
123
|
-
references?: string;
|
|
124
|
-
/** @deprecated Use `relations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
125
|
-
relation?: string;
|
|
126
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
127
|
-
replaces?: string;
|
|
128
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
129
|
-
requires?: string;
|
|
130
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
131
|
-
rights?: string;
|
|
132
|
-
/** @deprecated Use `rightsHolders` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
133
|
-
rightsHolder?: string;
|
|
134
|
-
/** @deprecated Use `sources` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
135
|
-
source?: string;
|
|
136
|
-
/** @deprecated Use `spatials` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
137
|
-
spatial?: string;
|
|
138
|
-
/** @deprecated Use `subjects` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
139
|
-
subject?: string;
|
|
140
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
141
|
-
tableOfContents?: string;
|
|
142
|
-
/** @deprecated Use `temporals` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
143
|
-
temporal?: string;
|
|
144
|
-
/** @deprecated Use `titles` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
145
|
-
title?: string;
|
|
146
|
-
/** @deprecated Use `types` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
147
|
-
type?: string;
|
|
148
|
-
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
39
|
+
types?: Array<string>; /** @deprecated Use `abstracts` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
40
|
+
abstract?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
41
|
+
accessRights?: string; /** @deprecated Use `accrualMethods` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
42
|
+
accrualMethod?: string; /** @deprecated Use `accrualPeriodicities` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
43
|
+
accrualPeriodicity?: string; /** @deprecated Use `accrualPolicies` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
44
|
+
accrualPolicy?: string; /** @deprecated Use `alternatives` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
45
|
+
alternative?: string; /** @deprecated Use `audiences` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
46
|
+
audience?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
47
|
+
available?: TDate; /** @deprecated Use `bibliographicCitations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
48
|
+
bibliographicCitation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
49
|
+
conformsTo?: string; /** @deprecated Use `contributors` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
50
|
+
contributor?: string; /** @deprecated Use `coverages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
51
|
+
coverage?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
52
|
+
created?: TDate; /** @deprecated Use `creators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
53
|
+
creator?: string; /** @deprecated Use `dates` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
54
|
+
date?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
55
|
+
dateAccepted?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
56
|
+
dateCopyrighted?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
57
|
+
dateSubmitted?: TDate; /** @deprecated Use `descriptions` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
58
|
+
description?: string; /** @deprecated Use `educationLevels` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
59
|
+
educationLevel?: string; /** @deprecated Use `extents` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
60
|
+
extent?: string; /** @deprecated Use `formats` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
61
|
+
format?: string; /** @deprecated Use `hasFormats` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
62
|
+
hasFormat?: string; /** @deprecated Use `hasParts` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
63
|
+
hasPart?: string; /** @deprecated Use `hasVersions` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
64
|
+
hasVersion?: string; /** @deprecated Use `identifiers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
65
|
+
identifier?: string; /** @deprecated Use `instructionalMethods` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
66
|
+
instructionalMethod?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
67
|
+
isFormatOf?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
68
|
+
isPartOf?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
69
|
+
isReferencedBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
70
|
+
isReplacedBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
71
|
+
isRequiredBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
72
|
+
issued?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
73
|
+
isVersionOf?: string; /** @deprecated Use `languages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
74
|
+
language?: string; /** @deprecated Use `licenses` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
75
|
+
license?: string; /** @deprecated Use `mediators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
76
|
+
mediator?: string; /** @deprecated Use `mediums` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
77
|
+
medium?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
78
|
+
modified?: TDate; /** @deprecated Use `provenances` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
79
|
+
provenance?: string; /** @deprecated Use `publishers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
80
|
+
publisher?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
81
|
+
references?: string; /** @deprecated Use `relations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
82
|
+
relation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
83
|
+
replaces?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
84
|
+
requires?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
85
|
+
rights?: string; /** @deprecated Use `rightsHolders` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
86
|
+
rightsHolder?: string; /** @deprecated Use `sources` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
87
|
+
source?: string; /** @deprecated Use `spatials` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
88
|
+
spatial?: string; /** @deprecated Use `subjects` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
89
|
+
subject?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
90
|
+
tableOfContents?: string; /** @deprecated Use `temporals` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
91
|
+
temporal?: string; /** @deprecated Use `titles` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
92
|
+
title?: string; /** @deprecated Use `types` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
93
|
+
type?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
149
94
|
valid?: TDate;
|
|
150
95
|
};
|
|
151
96
|
}
|
|
@@ -17,12 +17,9 @@ declare namespace ItunesNs {
|
|
|
17
17
|
episode?: number;
|
|
18
18
|
season?: number;
|
|
19
19
|
episodeType?: string;
|
|
20
|
-
block?: boolean;
|
|
21
|
-
/** @deprecated
|
|
22
|
-
|
|
23
|
-
/** @deprecated No longer used by Apple Podcasts. */
|
|
24
|
-
subtitle?: string;
|
|
25
|
-
/** @deprecated No longer used for search in Apple Podcasts. */
|
|
20
|
+
block?: boolean; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
|
|
21
|
+
summary?: string; /** @deprecated No longer used by Apple Podcasts. */
|
|
22
|
+
subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
|
|
26
23
|
keywords?: Array<string>;
|
|
27
24
|
};
|
|
28
25
|
type Feed = {
|
|
@@ -35,14 +32,10 @@ declare namespace ItunesNs {
|
|
|
35
32
|
newFeedUrl?: string;
|
|
36
33
|
block?: boolean;
|
|
37
34
|
complete?: boolean;
|
|
38
|
-
applePodcastsVerify?: string;
|
|
39
|
-
/** @deprecated
|
|
40
|
-
|
|
41
|
-
/** @deprecated No longer
|
|
42
|
-
subtitle?: string;
|
|
43
|
-
/** @deprecated No longer used for search in Apple Podcasts. */
|
|
44
|
-
keywords?: Array<string>;
|
|
45
|
-
/** @deprecated No longer supported by Apple Podcasts. */
|
|
35
|
+
applePodcastsVerify?: string; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
|
|
36
|
+
summary?: string; /** @deprecated No longer used by Apple Podcasts. */
|
|
37
|
+
subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
|
|
38
|
+
keywords?: Array<string>; /** @deprecated No longer supported by Apple Podcasts. */
|
|
46
39
|
owner?: Owner;
|
|
47
40
|
};
|
|
48
41
|
}
|
|
@@ -17,12 +17,9 @@ declare namespace ItunesNs {
|
|
|
17
17
|
episode?: number;
|
|
18
18
|
season?: number;
|
|
19
19
|
episodeType?: string;
|
|
20
|
-
block?: boolean;
|
|
21
|
-
/** @deprecated
|
|
22
|
-
|
|
23
|
-
/** @deprecated No longer used by Apple Podcasts. */
|
|
24
|
-
subtitle?: string;
|
|
25
|
-
/** @deprecated No longer used for search in Apple Podcasts. */
|
|
20
|
+
block?: boolean; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
|
|
21
|
+
summary?: string; /** @deprecated No longer used by Apple Podcasts. */
|
|
22
|
+
subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
|
|
26
23
|
keywords?: Array<string>;
|
|
27
24
|
};
|
|
28
25
|
type Feed = {
|
|
@@ -35,14 +32,10 @@ declare namespace ItunesNs {
|
|
|
35
32
|
newFeedUrl?: string;
|
|
36
33
|
block?: boolean;
|
|
37
34
|
complete?: boolean;
|
|
38
|
-
applePodcastsVerify?: string;
|
|
39
|
-
/** @deprecated
|
|
40
|
-
|
|
41
|
-
/** @deprecated No longer
|
|
42
|
-
subtitle?: string;
|
|
43
|
-
/** @deprecated No longer used for search in Apple Podcasts. */
|
|
44
|
-
keywords?: Array<string>;
|
|
45
|
-
/** @deprecated No longer supported by Apple Podcasts. */
|
|
35
|
+
applePodcastsVerify?: string; /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
|
|
36
|
+
summary?: string; /** @deprecated No longer used by Apple Podcasts. */
|
|
37
|
+
subtitle?: string; /** @deprecated No longer used for search in Apple Podcasts. */
|
|
38
|
+
keywords?: Array<string>; /** @deprecated No longer supported by Apple Podcasts. */
|
|
46
39
|
owner?: Owner;
|
|
47
40
|
};
|
|
48
41
|
}
|
|
@@ -171,8 +171,7 @@ declare namespace MediaNs {
|
|
|
171
171
|
} & CommonElements;
|
|
172
172
|
type ItemOrFeed = {
|
|
173
173
|
groups?: Array<Group>;
|
|
174
|
-
contents?: Array<Content>;
|
|
175
|
-
/** @deprecated Use `groups` (array) instead. Multiple media:group elements are allowed per specification. */
|
|
174
|
+
contents?: Array<Content>; /** @deprecated Use `groups` (array) instead. Multiple media:group elements are allowed per specification. */
|
|
176
175
|
group?: Group;
|
|
177
176
|
} & CommonElements;
|
|
178
177
|
}
|
|
@@ -171,8 +171,7 @@ declare namespace MediaNs {
|
|
|
171
171
|
} & CommonElements;
|
|
172
172
|
type ItemOrFeed = {
|
|
173
173
|
groups?: Array<Group>;
|
|
174
|
-
contents?: Array<Content>;
|
|
175
|
-
/** @deprecated Use `groups` (array) instead. Multiple media:group elements are allowed per specification. */
|
|
174
|
+
contents?: Array<Content>; /** @deprecated Use `groups` (array) instead. Multiple media:group elements are allowed per specification. */
|
|
176
175
|
group?: Group;
|
|
177
176
|
} & CommonElements;
|
|
178
177
|
}
|
|
@@ -17,12 +17,9 @@ declare namespace PodcastNs {
|
|
|
17
17
|
images?: Array<Image>;
|
|
18
18
|
socialInteracts?: Array<SocialInteract>;
|
|
19
19
|
txts?: Array<Txt>;
|
|
20
|
-
chat?: Chat;
|
|
21
|
-
/** @deprecated Use `
|
|
22
|
-
|
|
23
|
-
/** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
24
|
-
value?: Value;
|
|
25
|
-
/** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
20
|
+
chat?: Chat; /** @deprecated Use `locations` (array) instead. Multiple podcast:location elements are allowed per specification. */
|
|
21
|
+
location?: Location; /** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
22
|
+
value?: Value; /** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
26
23
|
chats?: Array<Chat>;
|
|
27
24
|
};
|
|
28
25
|
type Transcript = {
|
|
@@ -57,8 +54,10 @@ declare namespace PodcastNs {
|
|
|
57
54
|
};
|
|
58
55
|
type Location = {
|
|
59
56
|
display: string;
|
|
57
|
+
rel?: string;
|
|
60
58
|
geo?: string;
|
|
61
59
|
osm?: string;
|
|
60
|
+
country?: string;
|
|
62
61
|
};
|
|
63
62
|
type Season = {
|
|
64
63
|
number: number;
|
|
@@ -166,6 +165,7 @@ declare namespace PodcastNs {
|
|
|
166
165
|
feedUrl?: string;
|
|
167
166
|
itemGuid?: string;
|
|
168
167
|
medium?: string;
|
|
168
|
+
title?: string;
|
|
169
169
|
};
|
|
170
170
|
type Podroll = {
|
|
171
171
|
remoteItems?: Array<RemoteItem>;
|
|
@@ -210,12 +210,9 @@ declare namespace PodcastNs {
|
|
|
210
210
|
updateFrequency?: UpdateFrequency<TDate>;
|
|
211
211
|
podping?: Podping;
|
|
212
212
|
chat?: Chat;
|
|
213
|
-
publisher?: Publisher;
|
|
214
|
-
/** @deprecated Use `
|
|
215
|
-
|
|
216
|
-
/** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
217
|
-
value?: Value;
|
|
218
|
-
/** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
213
|
+
publisher?: Publisher; /** @deprecated Use `locations` (array) instead. Multiple podcast:location elements are allowed per specification. */
|
|
214
|
+
location?: Location; /** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
215
|
+
value?: Value; /** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
219
216
|
chats?: Array<Chat>;
|
|
220
217
|
};
|
|
221
218
|
}
|
|
@@ -17,12 +17,9 @@ declare namespace PodcastNs {
|
|
|
17
17
|
images?: Array<Image>;
|
|
18
18
|
socialInteracts?: Array<SocialInteract>;
|
|
19
19
|
txts?: Array<Txt>;
|
|
20
|
-
chat?: Chat;
|
|
21
|
-
/** @deprecated Use `
|
|
22
|
-
|
|
23
|
-
/** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
24
|
-
value?: Value;
|
|
25
|
-
/** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
20
|
+
chat?: Chat; /** @deprecated Use `locations` (array) instead. Multiple podcast:location elements are allowed per specification. */
|
|
21
|
+
location?: Location; /** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
22
|
+
value?: Value; /** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
26
23
|
chats?: Array<Chat>;
|
|
27
24
|
};
|
|
28
25
|
type Transcript = {
|
|
@@ -57,8 +54,10 @@ declare namespace PodcastNs {
|
|
|
57
54
|
};
|
|
58
55
|
type Location = {
|
|
59
56
|
display: string;
|
|
57
|
+
rel?: string;
|
|
60
58
|
geo?: string;
|
|
61
59
|
osm?: string;
|
|
60
|
+
country?: string;
|
|
62
61
|
};
|
|
63
62
|
type Season = {
|
|
64
63
|
number: number;
|
|
@@ -166,6 +165,7 @@ declare namespace PodcastNs {
|
|
|
166
165
|
feedUrl?: string;
|
|
167
166
|
itemGuid?: string;
|
|
168
167
|
medium?: string;
|
|
168
|
+
title?: string;
|
|
169
169
|
};
|
|
170
170
|
type Podroll = {
|
|
171
171
|
remoteItems?: Array<RemoteItem>;
|
|
@@ -210,12 +210,9 @@ declare namespace PodcastNs {
|
|
|
210
210
|
updateFrequency?: UpdateFrequency<TDate>;
|
|
211
211
|
podping?: Podping;
|
|
212
212
|
chat?: Chat;
|
|
213
|
-
publisher?: Publisher;
|
|
214
|
-
/** @deprecated Use `
|
|
215
|
-
|
|
216
|
-
/** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
217
|
-
value?: Value;
|
|
218
|
-
/** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
213
|
+
publisher?: Publisher; /** @deprecated Use `locations` (array) instead. Multiple podcast:location elements are allowed per specification. */
|
|
214
|
+
location?: Location; /** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
215
|
+
value?: Value; /** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
219
216
|
chats?: Array<Chat>;
|
|
220
217
|
};
|
|
221
218
|
}
|
|
@@ -72,8 +72,10 @@ const generateLocation = (location) => {
|
|
|
72
72
|
if (!require_utils.isObject(location)) return;
|
|
73
73
|
return require_utils.trimObject({
|
|
74
74
|
...require_utils.generateTextOrCdataString(location.display),
|
|
75
|
+
"@rel": require_utils.generatePlainString(location.rel),
|
|
75
76
|
"@geo": require_utils.generatePlainString(location.geo),
|
|
76
|
-
"@osm": require_utils.generatePlainString(location.osm)
|
|
77
|
+
"@osm": require_utils.generatePlainString(location.osm),
|
|
78
|
+
"@country": require_utils.generatePlainString(location.country)
|
|
77
79
|
});
|
|
78
80
|
};
|
|
79
81
|
const generateSeason = (season) => {
|
|
@@ -239,7 +241,8 @@ const generateRemoteItem = (remoteItem) => {
|
|
|
239
241
|
"@feedGuid": require_utils.generatePlainString(remoteItem.feedGuid),
|
|
240
242
|
"@feedUrl": require_utils.generatePlainString(remoteItem.feedUrl),
|
|
241
243
|
"@itemGuid": require_utils.generatePlainString(remoteItem.itemGuid),
|
|
242
|
-
"@medium": require_utils.generatePlainString(remoteItem.medium)
|
|
244
|
+
"@medium": require_utils.generatePlainString(remoteItem.medium),
|
|
245
|
+
"@title": require_utils.generatePlainString(remoteItem.title)
|
|
243
246
|
});
|
|
244
247
|
};
|
|
245
248
|
const generatePodroll = (podroll) => {
|
|
@@ -72,8 +72,10 @@ const generateLocation = (location) => {
|
|
|
72
72
|
if (!isObject(location)) return;
|
|
73
73
|
return trimObject({
|
|
74
74
|
...generateTextOrCdataString(location.display),
|
|
75
|
+
"@rel": generatePlainString(location.rel),
|
|
75
76
|
"@geo": generatePlainString(location.geo),
|
|
76
|
-
"@osm": generatePlainString(location.osm)
|
|
77
|
+
"@osm": generatePlainString(location.osm),
|
|
78
|
+
"@country": generatePlainString(location.country)
|
|
77
79
|
});
|
|
78
80
|
};
|
|
79
81
|
const generateSeason = (season) => {
|
|
@@ -239,7 +241,8 @@ const generateRemoteItem = (remoteItem) => {
|
|
|
239
241
|
"@feedGuid": generatePlainString(remoteItem.feedGuid),
|
|
240
242
|
"@feedUrl": generatePlainString(remoteItem.feedUrl),
|
|
241
243
|
"@itemGuid": generatePlainString(remoteItem.itemGuid),
|
|
242
|
-
"@medium": generatePlainString(remoteItem.medium)
|
|
244
|
+
"@medium": generatePlainString(remoteItem.medium),
|
|
245
|
+
"@title": generatePlainString(remoteItem.title)
|
|
243
246
|
});
|
|
244
247
|
};
|
|
245
248
|
const generatePodroll = (podroll) => {
|
|
@@ -50,8 +50,10 @@ const parsePerson = (value) => {
|
|
|
50
50
|
const parseLocation = (value) => {
|
|
51
51
|
return require_utils.trimObject({
|
|
52
52
|
display: require_utils.parseString(require_utils.retrieveText(value)),
|
|
53
|
+
rel: require_utils.parseString(value?.["@rel"]),
|
|
53
54
|
geo: require_utils.parseString(value?.["@geo"]),
|
|
54
|
-
osm: require_utils.parseString(value?.["@osm"])
|
|
55
|
+
osm: require_utils.parseString(value?.["@osm"]),
|
|
56
|
+
country: require_utils.parseString(value?.["@country"])
|
|
55
57
|
});
|
|
56
58
|
};
|
|
57
59
|
const parseSeason = (value) => {
|
|
@@ -219,7 +221,8 @@ const parseRemoteItem = (value) => {
|
|
|
219
221
|
feedGuid: require_utils.parseString(value["@feedguid"]),
|
|
220
222
|
feedUrl: require_utils.parseString(value["@feedurl"]),
|
|
221
223
|
itemGuid: require_utils.parseString(value["@itemguid"]),
|
|
222
|
-
medium: require_utils.parseString(value["@medium"])
|
|
224
|
+
medium: require_utils.parseString(value["@medium"]),
|
|
225
|
+
title: require_utils.parseString(value["@title"])
|
|
223
226
|
});
|
|
224
227
|
};
|
|
225
228
|
const parsePodroll = (value) => {
|
|
@@ -50,8 +50,10 @@ const parsePerson = (value) => {
|
|
|
50
50
|
const parseLocation = (value) => {
|
|
51
51
|
return trimObject({
|
|
52
52
|
display: parseString(retrieveText(value)),
|
|
53
|
+
rel: parseString(value?.["@rel"]),
|
|
53
54
|
geo: parseString(value?.["@geo"]),
|
|
54
|
-
osm: parseString(value?.["@osm"])
|
|
55
|
+
osm: parseString(value?.["@osm"]),
|
|
56
|
+
country: parseString(value?.["@country"])
|
|
55
57
|
});
|
|
56
58
|
};
|
|
57
59
|
const parseSeason = (value) => {
|
|
@@ -219,7 +221,8 @@ const parseRemoteItem = (value) => {
|
|
|
219
221
|
feedGuid: parseString(value["@feedguid"]),
|
|
220
222
|
feedUrl: parseString(value["@feedurl"]),
|
|
221
223
|
itemGuid: parseString(value["@itemguid"]),
|
|
222
|
-
medium: parseString(value["@medium"])
|
|
224
|
+
medium: parseString(value["@medium"]),
|
|
225
|
+
title: parseString(value["@title"])
|
|
223
226
|
});
|
|
224
227
|
};
|
|
225
228
|
const parsePodroll = (value) => {
|
|
@@ -75,14 +75,10 @@ declare namespace PrismNs {
|
|
|
75
75
|
locations?: Array<string>;
|
|
76
76
|
objects?: Array<string>;
|
|
77
77
|
profession?: string;
|
|
78
|
-
sport?: string;
|
|
79
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
80
|
-
|
|
81
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
82
|
-
copyright?: string;
|
|
83
|
-
/** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
84
|
-
expirationDate?: TDate;
|
|
85
|
-
/** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
78
|
+
sport?: string; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
|
|
79
|
+
embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
|
|
80
|
+
copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
81
|
+
expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
86
82
|
rightsAgent?: string;
|
|
87
83
|
};
|
|
88
84
|
type Item<TDate extends DateLike> = {
|
|
@@ -141,14 +137,10 @@ declare namespace PrismNs {
|
|
|
141
137
|
ratings?: Array<string>;
|
|
142
138
|
timePeriod?: string;
|
|
143
139
|
versionIdentifier?: string;
|
|
144
|
-
tickers?: Array<string>;
|
|
145
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
146
|
-
|
|
147
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
148
|
-
copyright?: string;
|
|
149
|
-
/** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
150
|
-
expirationDate?: TDate;
|
|
151
|
-
/** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
140
|
+
tickers?: Array<string>; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
|
|
141
|
+
embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
|
|
142
|
+
copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
143
|
+
expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
152
144
|
rightsAgent?: string;
|
|
153
145
|
};
|
|
154
146
|
}
|
|
@@ -75,14 +75,10 @@ declare namespace PrismNs {
|
|
|
75
75
|
locations?: Array<string>;
|
|
76
76
|
objects?: Array<string>;
|
|
77
77
|
profession?: string;
|
|
78
|
-
sport?: string;
|
|
79
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
80
|
-
|
|
81
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
82
|
-
copyright?: string;
|
|
83
|
-
/** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
84
|
-
expirationDate?: TDate;
|
|
85
|
-
/** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
78
|
+
sport?: string; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
|
|
79
|
+
embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
|
|
80
|
+
copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
81
|
+
expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
86
82
|
rightsAgent?: string;
|
|
87
83
|
};
|
|
88
84
|
type Item<TDate extends DateLike> = {
|
|
@@ -141,14 +137,10 @@ declare namespace PrismNs {
|
|
|
141
137
|
ratings?: Array<string>;
|
|
142
138
|
timePeriod?: string;
|
|
143
139
|
versionIdentifier?: string;
|
|
144
|
-
tickers?: Array<string>;
|
|
145
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
146
|
-
|
|
147
|
-
/** @deprecated Since PRISM 3.0. Use pur:
|
|
148
|
-
copyright?: string;
|
|
149
|
-
/** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
150
|
-
expirationDate?: TDate;
|
|
151
|
-
/** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
140
|
+
tickers?: Array<string>; /** @deprecated Since PRISM 3.0. Use pur:embargoDate instead. */
|
|
141
|
+
embargoDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:copyrightDate instead. */
|
|
142
|
+
copyright?: string; /** @deprecated Since PRISM 3.0. Use pur:expirationDate instead. */
|
|
143
|
+
expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
152
144
|
rightsAgent?: string;
|
|
153
145
|
};
|
|
154
146
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_utils = require('../../common/utils.cjs');
|
|
2
1
|
const require_config = require('../../common/config.cjs');
|
|
2
|
+
const require_utils = require('../../common/utils.cjs');
|
|
3
3
|
const require_config$1 = require('./config.cjs');
|
|
4
4
|
const require_utils$1 = require('./utils.cjs');
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -68,19 +68,17 @@
|
|
|
68
68
|
"prepare": "lefthook install",
|
|
69
69
|
"build": "tsdown src/index.ts src/types.ts --format cjs,esm --dts --clean --unbundle --no-fixed-extension",
|
|
70
70
|
"docs:dev": "vitepress dev docs",
|
|
71
|
-
"docs:build": "vitepress build docs"
|
|
72
|
-
"docs:preview": "vitepress preview docs"
|
|
71
|
+
"docs:build": "vitepress build docs"
|
|
73
72
|
},
|
|
74
73
|
"dependencies": {
|
|
75
74
|
"entities": "^7.0.0",
|
|
76
75
|
"fast-xml-parser": "^5.3.3"
|
|
77
76
|
},
|
|
78
77
|
"devDependencies": {
|
|
79
|
-
"@types/bun": "^1.3.
|
|
80
|
-
"kvalita": "^1.
|
|
81
|
-
"tsdown": "^0.
|
|
82
|
-
"vitepress": "^1.6.4"
|
|
83
|
-
"vitepress-plugin-llms": "^1.9.3"
|
|
78
|
+
"@types/bun": "^1.3.6",
|
|
79
|
+
"kvalita": "^1.9.0",
|
|
80
|
+
"tsdown": "^0.20.0-beta.4",
|
|
81
|
+
"vitepress": "^1.6.4"
|
|
84
82
|
},
|
|
85
|
-
"version": "2.
|
|
83
|
+
"version": "2.9.0"
|
|
86
84
|
}
|