feedsmith 2.9.0 → 2.9.2
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 +1 -1
- package/dist/common/config.cjs +101 -273
- package/dist/common/config.js +100 -272
- package/dist/common/parse.cjs +11 -13
- package/dist/common/parse.js +1 -3
- package/dist/common/utils.cjs +99 -24
- package/dist/common/utils.js +98 -24
- package/dist/feeds/atom/detect/index.cjs +7 -7
- package/dist/feeds/atom/detect/index.js +5 -5
- package/dist/feeds/atom/generate/config.cjs +3 -6
- package/dist/feeds/atom/generate/config.js +1 -3
- package/dist/feeds/atom/generate/index.cjs +5 -7
- package/dist/feeds/atom/generate/index.js +1 -3
- package/dist/feeds/atom/generate/utils.cjs +24 -26
- package/dist/feeds/atom/generate/utils.js +1 -3
- package/dist/feeds/atom/parse/config.cjs +13 -6
- package/dist/feeds/atom/parse/config.js +12 -6
- package/dist/feeds/atom/parse/index.cjs +6 -9
- package/dist/feeds/atom/parse/index.js +4 -7
- package/dist/feeds/atom/parse/utils.cjs +68 -70
- package/dist/feeds/atom/parse/utils.js +46 -48
- package/dist/feeds/json/detect/index.cjs +3 -5
- package/dist/feeds/json/detect/index.js +1 -3
- package/dist/feeds/json/generate/index.cjs +2 -4
- package/dist/feeds/json/generate/index.js +1 -3
- package/dist/feeds/json/generate/utils.cjs +2 -4
- package/dist/feeds/json/generate/utils.js +1 -3
- package/dist/feeds/json/parse/index.cjs +5 -7
- package/dist/feeds/json/parse/index.js +1 -3
- package/dist/feeds/json/parse/utils.cjs +2 -4
- package/dist/feeds/json/parse/utils.js +1 -3
- package/dist/feeds/rdf/detect/index.cjs +7 -7
- package/dist/feeds/rdf/detect/index.js +5 -5
- package/dist/feeds/rdf/parse/config.cjs +13 -5
- package/dist/feeds/rdf/parse/config.js +12 -5
- package/dist/feeds/rdf/parse/index.cjs +6 -9
- package/dist/feeds/rdf/parse/index.js +4 -7
- package/dist/feeds/rdf/parse/utils.cjs +27 -29
- package/dist/feeds/rdf/parse/utils.js +15 -17
- package/dist/feeds/rss/detect/index.cjs +8 -7
- package/dist/feeds/rss/detect/index.js +7 -6
- package/dist/feeds/rss/generate/config.cjs +3 -6
- package/dist/feeds/rss/generate/config.js +1 -3
- package/dist/feeds/rss/generate/index.cjs +5 -7
- package/dist/feeds/rss/generate/index.js +1 -3
- package/dist/feeds/rss/generate/utils.cjs +31 -33
- package/dist/feeds/rss/generate/utils.js +1 -3
- package/dist/feeds/rss/parse/config.cjs +37 -26
- package/dist/feeds/rss/parse/config.js +36 -26
- package/dist/feeds/rss/parse/index.cjs +6 -9
- package/dist/feeds/rss/parse/index.js +4 -7
- package/dist/feeds/rss/parse/utils.cjs +103 -95
- package/dist/feeds/rss/parse/utils.js +75 -67
- package/dist/index.cjs +16 -16
- package/dist/index.js +1 -2
- package/dist/namespaces/acast/common/config.cjs +18 -0
- package/dist/namespaces/acast/common/config.js +17 -0
- package/dist/namespaces/acast/generate/utils.cjs +2 -4
- package/dist/namespaces/acast/generate/utils.js +1 -3
- package/dist/namespaces/acast/parse/utils.cjs +10 -12
- package/dist/namespaces/acast/parse/utils.js +9 -11
- package/dist/namespaces/admin/common/config.cjs +11 -0
- package/dist/namespaces/admin/common/config.js +10 -0
- package/dist/namespaces/admin/generate/utils.cjs +2 -4
- package/dist/namespaces/admin/generate/utils.js +1 -3
- package/dist/namespaces/admin/parse/utils.cjs +4 -6
- package/dist/namespaces/admin/parse/utils.js +3 -5
- package/dist/namespaces/app/common/config.cjs +11 -0
- package/dist/namespaces/app/common/config.js +10 -0
- package/dist/namespaces/app/generate/utils.cjs +2 -4
- package/dist/namespaces/app/generate/utils.js +1 -3
- package/dist/namespaces/app/parse/utils.cjs +4 -6
- package/dist/namespaces/app/parse/utils.js +3 -5
- package/dist/namespaces/arxiv/common/config.cjs +16 -0
- package/dist/namespaces/arxiv/common/config.js +15 -0
- package/dist/namespaces/arxiv/generate/utils.cjs +2 -4
- package/dist/namespaces/arxiv/generate/utils.js +1 -3
- package/dist/namespaces/arxiv/parse/utils.cjs +6 -8
- package/dist/namespaces/arxiv/parse/utils.js +5 -7
- package/dist/namespaces/atom/common/config.cjs +11 -0
- package/dist/namespaces/atom/common/config.js +11 -0
- package/dist/namespaces/atom/generate/utils.cjs +2 -4
- package/dist/namespaces/atom/generate/utils.js +1 -3
- package/dist/namespaces/atom/parse/utils.cjs +2 -4
- package/dist/namespaces/atom/parse/utils.js +1 -3
- package/dist/namespaces/blogchannel/common/config.cjs +15 -0
- package/dist/namespaces/blogchannel/common/config.js +14 -0
- package/dist/namespaces/blogchannel/generate/utils.cjs +2 -4
- package/dist/namespaces/blogchannel/generate/utils.js +1 -3
- package/dist/namespaces/blogchannel/parse/utils.cjs +5 -7
- package/dist/namespaces/blogchannel/parse/utils.js +4 -6
- package/dist/namespaces/cc/common/config.cjs +25 -0
- package/dist/namespaces/cc/common/config.js +24 -0
- package/dist/namespaces/cc/generate/utils.cjs +2 -4
- package/dist/namespaces/cc/generate/utils.js +1 -3
- package/dist/namespaces/cc/parse/utils.cjs +13 -15
- package/dist/namespaces/cc/parse/utils.js +12 -14
- package/dist/namespaces/content/common/config.cjs +11 -0
- package/dist/namespaces/content/common/config.js +10 -0
- package/dist/namespaces/content/generate/utils.cjs +2 -4
- package/dist/namespaces/content/generate/utils.js +1 -3
- package/dist/namespaces/content/parse/utils.cjs +3 -5
- package/dist/namespaces/content/parse/utils.js +2 -4
- package/dist/namespaces/creativecommons/common/config.cjs +15 -0
- package/dist/namespaces/creativecommons/common/config.js +14 -0
- package/dist/namespaces/creativecommons/generate/utils.cjs +2 -4
- package/dist/namespaces/creativecommons/generate/utils.js +1 -3
- package/dist/namespaces/creativecommons/parse/utils.cjs +3 -5
- package/dist/namespaces/creativecommons/parse/utils.js +2 -4
- package/dist/namespaces/dc/common/config.cjs +35 -0
- package/dist/namespaces/dc/common/config.js +34 -0
- package/dist/namespaces/dc/generate/utils.cjs +2 -4
- package/dist/namespaces/dc/generate/utils.js +1 -3
- package/dist/namespaces/dc/parse/utils.cjs +30 -32
- package/dist/namespaces/dc/parse/utils.js +29 -31
- package/dist/namespaces/dcterms/common/config.cjs +75 -0
- package/dist/namespaces/dcterms/common/config.js +74 -0
- package/dist/namespaces/dcterms/generate/utils.cjs +2 -4
- package/dist/namespaces/dcterms/generate/utils.js +1 -3
- package/dist/namespaces/dcterms/parse/utils.cjs +91 -93
- package/dist/namespaces/dcterms/parse/utils.js +90 -92
- package/dist/namespaces/feedpress/common/config.cjs +25 -0
- package/dist/namespaces/feedpress/common/config.js +24 -0
- package/dist/namespaces/feedpress/generate/utils.cjs +2 -4
- package/dist/namespaces/feedpress/generate/utils.js +1 -3
- package/dist/namespaces/feedpress/parse/utils.cjs +7 -9
- package/dist/namespaces/feedpress/parse/utils.js +6 -8
- package/dist/namespaces/geo/common/config.cjs +10 -0
- package/dist/namespaces/geo/common/config.js +9 -0
- package/dist/namespaces/geo/generate/utils.cjs +2 -4
- package/dist/namespaces/geo/generate/utils.js +1 -3
- package/dist/namespaces/geo/parse/utils.cjs +5 -7
- package/dist/namespaces/geo/parse/utils.js +4 -6
- package/dist/namespaces/georss/common/config.cjs +22 -0
- package/dist/namespaces/georss/common/config.js +21 -0
- package/dist/namespaces/georss/generate/utils.cjs +2 -4
- package/dist/namespaces/georss/generate/utils.js +1 -3
- package/dist/namespaces/georss/parse/utils.cjs +10 -11
- package/dist/namespaces/georss/parse/utils.js +9 -10
- package/dist/namespaces/googleplay/common/config.cjs +22 -0
- package/dist/namespaces/googleplay/common/config.js +21 -0
- package/dist/namespaces/googleplay/generate/utils.cjs +2 -4
- package/dist/namespaces/googleplay/generate/utils.js +1 -3
- package/dist/namespaces/googleplay/parse/utils.cjs +10 -12
- package/dist/namespaces/googleplay/parse/utils.js +9 -11
- package/dist/namespaces/itunes/common/config.cjs +24 -0
- package/dist/namespaces/itunes/common/config.js +23 -0
- package/dist/namespaces/itunes/generate/utils.cjs +2 -4
- package/dist/namespaces/itunes/generate/utils.js +1 -3
- package/dist/namespaces/itunes/parse/utils.cjs +29 -30
- package/dist/namespaces/itunes/parse/utils.js +28 -29
- package/dist/namespaces/media/common/config.cjs +49 -0
- package/dist/namespaces/media/common/config.js +48 -0
- package/dist/namespaces/media/generate/utils.cjs +2 -4
- package/dist/namespaces/media/generate/utils.js +1 -3
- package/dist/namespaces/media/parse/utils.cjs +21 -23
- package/dist/namespaces/media/parse/utils.js +20 -22
- package/dist/namespaces/opensearch/common/config.cjs +17 -0
- package/dist/namespaces/opensearch/common/config.js +16 -0
- package/dist/namespaces/opensearch/generate/utils.cjs +2 -4
- package/dist/namespaces/opensearch/generate/utils.js +1 -3
- package/dist/namespaces/opensearch/parse/utils.cjs +5 -7
- package/dist/namespaces/opensearch/parse/utils.js +4 -6
- package/dist/namespaces/pingback/common/config.cjs +15 -0
- package/dist/namespaces/pingback/common/config.js +14 -0
- package/dist/namespaces/pingback/generate/utils.cjs +2 -4
- package/dist/namespaces/pingback/generate/utils.js +1 -3
- package/dist/namespaces/pingback/parse/utils.cjs +5 -7
- package/dist/namespaces/pingback/parse/utils.js +4 -6
- package/dist/namespaces/podcast/common/config.cjs +28 -0
- package/dist/namespaces/podcast/common/config.js +27 -0
- package/dist/namespaces/podcast/generate/utils.cjs +2 -4
- package/dist/namespaces/podcast/generate/utils.js +1 -3
- package/dist/namespaces/podcast/parse/utils.cjs +8 -8
- package/dist/namespaces/podcast/parse/utils.js +7 -7
- package/dist/namespaces/prism/common/config.cjs +138 -0
- package/dist/namespaces/prism/common/config.js +137 -0
- package/dist/namespaces/prism/generate/utils.cjs +2 -4
- package/dist/namespaces/prism/generate/utils.js +1 -3
- package/dist/namespaces/prism/parse/utils.cjs +139 -141
- package/dist/namespaces/prism/parse/utils.js +138 -140
- package/dist/namespaces/psc/common/config.cjs +9 -0
- package/dist/namespaces/psc/common/config.js +9 -0
- package/dist/namespaces/psc/generate/utils.cjs +2 -4
- package/dist/namespaces/psc/generate/utils.js +1 -3
- package/dist/namespaces/psc/parse/utils.cjs +2 -4
- package/dist/namespaces/psc/parse/utils.js +1 -3
- package/dist/namespaces/rawvoice/common/config.cjs +29 -0
- package/dist/namespaces/rawvoice/common/config.js +28 -0
- package/dist/namespaces/rawvoice/generate/utils.cjs +2 -4
- package/dist/namespaces/rawvoice/generate/utils.js +1 -3
- package/dist/namespaces/rawvoice/parse/utils.cjs +9 -11
- package/dist/namespaces/rawvoice/parse/utils.js +8 -10
- package/dist/namespaces/rdf/common/config.cjs +6 -0
- package/dist/namespaces/rdf/common/config.js +5 -0
- package/dist/namespaces/rdf/parse/utils.cjs +2 -4
- package/dist/namespaces/rdf/parse/utils.js +1 -3
- package/dist/namespaces/rss/common/config.cjs +9 -0
- package/dist/namespaces/rss/common/config.js +9 -0
- package/dist/namespaces/slash/common/config.cjs +16 -0
- package/dist/namespaces/slash/common/config.js +15 -0
- package/dist/namespaces/slash/generate/utils.cjs +2 -4
- package/dist/namespaces/slash/generate/utils.js +1 -3
- package/dist/namespaces/slash/parse/utils.cjs +6 -8
- package/dist/namespaces/slash/parse/utils.js +5 -7
- package/dist/namespaces/source/common/config.cjs +25 -0
- package/dist/namespaces/source/common/config.js +24 -0
- package/dist/namespaces/source/generate/utils.cjs +2 -4
- package/dist/namespaces/source/generate/utils.js +1 -3
- package/dist/namespaces/source/parse/utils.cjs +13 -15
- package/dist/namespaces/source/parse/utils.js +12 -14
- package/dist/namespaces/spotify/common/config.cjs +11 -0
- package/dist/namespaces/spotify/common/config.js +10 -0
- package/dist/namespaces/spotify/generate/utils.cjs +2 -4
- package/dist/namespaces/spotify/generate/utils.js +1 -3
- package/dist/namespaces/spotify/parse/utils.cjs +3 -5
- package/dist/namespaces/spotify/parse/utils.js +2 -4
- package/dist/namespaces/sy/common/config.cjs +15 -0
- package/dist/namespaces/sy/common/config.js +14 -0
- package/dist/namespaces/sy/generate/utils.cjs +2 -4
- package/dist/namespaces/sy/generate/utils.js +1 -3
- package/dist/namespaces/sy/parse/utils.cjs +5 -7
- package/dist/namespaces/sy/parse/utils.js +4 -6
- package/dist/namespaces/thr/common/config.cjs +15 -0
- package/dist/namespaces/thr/common/config.js +14 -0
- package/dist/namespaces/thr/generate/utils.cjs +2 -4
- package/dist/namespaces/thr/generate/utils.js +1 -3
- package/dist/namespaces/thr/parse/utils.cjs +3 -5
- package/dist/namespaces/thr/parse/utils.js +2 -4
- package/dist/namespaces/trackback/common/config.cjs +11 -0
- package/dist/namespaces/trackback/common/config.js +10 -0
- package/dist/namespaces/trackback/generate/utils.cjs +2 -4
- package/dist/namespaces/trackback/generate/utils.js +1 -3
- package/dist/namespaces/trackback/parse/utils.cjs +4 -6
- package/dist/namespaces/trackback/parse/utils.js +3 -5
- package/dist/namespaces/wfw/common/config.cjs +11 -0
- package/dist/namespaces/wfw/common/config.js +10 -0
- package/dist/namespaces/wfw/generate/utils.cjs +2 -4
- package/dist/namespaces/wfw/generate/utils.js +1 -3
- package/dist/namespaces/wfw/parse/utils.cjs +4 -6
- package/dist/namespaces/wfw/parse/utils.js +3 -5
- package/dist/namespaces/yt/common/config.cjs +15 -0
- package/dist/namespaces/yt/common/config.js +14 -0
- package/dist/namespaces/yt/generate/utils.cjs +2 -4
- package/dist/namespaces/yt/generate/utils.js +1 -3
- package/dist/namespaces/yt/parse/utils.cjs +6 -8
- package/dist/namespaces/yt/parse/utils.js +5 -7
- package/dist/node_modules/path-expression-matcher/src/Expression.cjs +153 -0
- package/dist/node_modules/path-expression-matcher/src/Expression.js +153 -0
- package/dist/opml/generate/config.cjs +3 -6
- package/dist/opml/generate/config.js +1 -3
- package/dist/opml/generate/index.cjs +5 -7
- package/dist/opml/generate/index.js +1 -3
- package/dist/opml/generate/utils.cjs +2 -4
- package/dist/opml/generate/utils.js +1 -3
- package/dist/opml/parse/config.cjs +15 -17
- package/dist/opml/parse/config.js +14 -16
- package/dist/opml/parse/index.cjs +4 -6
- package/dist/opml/parse/index.js +1 -3
- package/dist/opml/parse/utils.cjs +17 -19
- package/dist/opml/parse/utils.js +16 -18
- package/dist/types.js +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/namespaces/pingback/common/config.ts
|
|
2
|
+
const uris = [
|
|
3
|
+
"http://madskills.com/public/xml/rss/module/pingback/",
|
|
4
|
+
"https://madskills.com/public/xml/rss/module/pingback/",
|
|
5
|
+
"http://madskills.com/public/xml/rss/module/pingback",
|
|
6
|
+
"https://madskills.com/public/xml/rss/module/pingback"
|
|
7
|
+
];
|
|
8
|
+
const stopNodes = [
|
|
9
|
+
"*.pingback:server",
|
|
10
|
+
"*.pingback:target",
|
|
11
|
+
"*.pingback:to"
|
|
12
|
+
];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { stopNodes, uris };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("../../../common/utils.cjs");
|
|
3
2
|
//#region src/namespaces/pingback/generate/utils.ts
|
|
4
3
|
const generateItem = (item) => {
|
|
5
4
|
if (!require_utils.isObject(item)) return;
|
|
@@ -12,7 +11,6 @@ const generateFeed = (feed) => {
|
|
|
12
11
|
if (!require_utils.isObject(feed)) return;
|
|
13
12
|
return require_utils.trimObject({ "pingback:to": require_utils.generateCdataString(feed.to) });
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
exports.generateFeed = generateFeed;
|
|
18
|
-
exports.generateItem = generateItem;
|
|
16
|
+
exports.generateItem = generateItem;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { generateCdataString, isObject, trimObject } from "../../../common/utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/namespaces/pingback/generate/utils.ts
|
|
4
3
|
const generateItem = (item) => {
|
|
5
4
|
if (!isObject(item)) return;
|
|
@@ -12,6 +11,5 @@ const generateFeed = (feed) => {
|
|
|
12
11
|
if (!isObject(feed)) return;
|
|
13
12
|
return trimObject({ "pingback:to": generateCdataString(feed.to) });
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
|
-
export { generateFeed, generateItem };
|
|
15
|
+
export { generateFeed, generateItem };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("../../../common/utils.cjs");
|
|
3
2
|
//#region src/namespaces/pingback/parse/utils.ts
|
|
4
3
|
const retrieveItem = (value) => {
|
|
5
4
|
if (!require_utils.isObject(value)) return;
|
|
6
5
|
return require_utils.trimObject({
|
|
7
|
-
server: require_utils.parseSingularOf(value["pingback:server"], (value
|
|
8
|
-
target: require_utils.parseSingularOf(value["pingback:target"], (value
|
|
6
|
+
server: require_utils.parseSingularOf(value["pingback:server"], (value) => require_utils.retrieveRdfResourceOrText(value, require_utils.parseString)),
|
|
7
|
+
target: require_utils.parseSingularOf(value["pingback:target"], (value) => require_utils.retrieveRdfResourceOrText(value, require_utils.parseString))
|
|
9
8
|
});
|
|
10
9
|
};
|
|
11
10
|
const retrieveFeed = (value) => {
|
|
12
11
|
if (!require_utils.isObject(value)) return;
|
|
13
|
-
return require_utils.trimObject({ to: require_utils.parseSingularOf(value["pingback:to"], (value
|
|
12
|
+
return require_utils.trimObject({ to: require_utils.parseSingularOf(value["pingback:to"], (value) => require_utils.retrieveRdfResourceOrText(value, require_utils.parseString)) });
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
exports.retrieveFeed = retrieveFeed;
|
|
18
|
-
exports.retrieveItem = retrieveItem;
|
|
16
|
+
exports.retrieveItem = retrieveItem;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { isObject, parseSingularOf, parseString, retrieveRdfResourceOrText, trimObject } from "../../../common/utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/namespaces/pingback/parse/utils.ts
|
|
4
3
|
const retrieveItem = (value) => {
|
|
5
4
|
if (!isObject(value)) return;
|
|
6
5
|
return trimObject({
|
|
7
|
-
server: parseSingularOf(value["pingback:server"], (value
|
|
8
|
-
target: parseSingularOf(value["pingback:target"], (value
|
|
6
|
+
server: parseSingularOf(value["pingback:server"], (value) => retrieveRdfResourceOrText(value, parseString)),
|
|
7
|
+
target: parseSingularOf(value["pingback:target"], (value) => retrieveRdfResourceOrText(value, parseString))
|
|
9
8
|
});
|
|
10
9
|
};
|
|
11
10
|
const retrieveFeed = (value) => {
|
|
12
11
|
if (!isObject(value)) return;
|
|
13
|
-
return trimObject({ to: parseSingularOf(value["pingback:to"], (value
|
|
12
|
+
return trimObject({ to: parseSingularOf(value["pingback:to"], (value) => retrieveRdfResourceOrText(value, parseString)) });
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
|
-
export { retrieveFeed, retrieveItem };
|
|
15
|
+
export { retrieveFeed, retrieveItem };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region src/namespaces/podcast/common/config.ts
|
|
2
|
+
const uris = [
|
|
3
|
+
"https://podcastindex.org/namespace/1.0",
|
|
4
|
+
"http://podcastindex.org/namespace/1.0",
|
|
5
|
+
"https://podcastindex.org/namespace/1.0/",
|
|
6
|
+
"http://podcastindex.org/namespace/1.0/",
|
|
7
|
+
"https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md"
|
|
8
|
+
];
|
|
9
|
+
const stopNodes = [
|
|
10
|
+
"*.podcast:locked",
|
|
11
|
+
"*.podcast:funding",
|
|
12
|
+
"*.podcast:soundbite",
|
|
13
|
+
"*.podcast:person",
|
|
14
|
+
"*.podcast:location",
|
|
15
|
+
"*.podcast:season",
|
|
16
|
+
"*.podcast:episode",
|
|
17
|
+
"*.podcast:trailer",
|
|
18
|
+
"*.podcast:license",
|
|
19
|
+
"*.podcast:guid",
|
|
20
|
+
"*.podcast:medium",
|
|
21
|
+
"*.podcast:contentlink",
|
|
22
|
+
"*.podcast:block",
|
|
23
|
+
"*.podcast:txt",
|
|
24
|
+
"*.podcast:updatefrequency"
|
|
25
|
+
];
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.stopNodes = stopNodes;
|
|
28
|
+
exports.uris = uris;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/namespaces/podcast/common/config.ts
|
|
2
|
+
const uris = [
|
|
3
|
+
"https://podcastindex.org/namespace/1.0",
|
|
4
|
+
"http://podcastindex.org/namespace/1.0",
|
|
5
|
+
"https://podcastindex.org/namespace/1.0/",
|
|
6
|
+
"http://podcastindex.org/namespace/1.0/",
|
|
7
|
+
"https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md"
|
|
8
|
+
];
|
|
9
|
+
const stopNodes = [
|
|
10
|
+
"*.podcast:locked",
|
|
11
|
+
"*.podcast:funding",
|
|
12
|
+
"*.podcast:soundbite",
|
|
13
|
+
"*.podcast:person",
|
|
14
|
+
"*.podcast:location",
|
|
15
|
+
"*.podcast:season",
|
|
16
|
+
"*.podcast:episode",
|
|
17
|
+
"*.podcast:trailer",
|
|
18
|
+
"*.podcast:license",
|
|
19
|
+
"*.podcast:guid",
|
|
20
|
+
"*.podcast:medium",
|
|
21
|
+
"*.podcast:contentlink",
|
|
22
|
+
"*.podcast:block",
|
|
23
|
+
"*.podcast:txt",
|
|
24
|
+
"*.podcast:updatefrequency"
|
|
25
|
+
];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { stopNodes, uris };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("../../../common/utils.cjs");
|
|
3
2
|
//#region src/namespaces/podcast/generate/utils.ts
|
|
4
3
|
const generateBaseItem = (baseItem) => {
|
|
5
4
|
if (!require_utils.isObject(baseItem)) return;
|
|
@@ -294,7 +293,6 @@ const generateFeed = (feed) => {
|
|
|
294
293
|
"podcast:publisher": generatePublisher(feed.publisher)
|
|
295
294
|
});
|
|
296
295
|
};
|
|
297
|
-
|
|
298
296
|
//#endregion
|
|
299
297
|
exports.generateFeed = generateFeed;
|
|
300
|
-
exports.generateItem = generateItem;
|
|
298
|
+
exports.generateItem = generateItem;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { generateArrayOrSingular, generateBoolean, generateCdataString, generateNumber, generatePlainString, generateRfc3339Date, generateRfc822Date, generateSingularOrArray, generateTextOrCdataString, generateYesNoBoolean, isObject, trimArray, trimObject } from "../../../common/utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/namespaces/podcast/generate/utils.ts
|
|
4
3
|
const generateBaseItem = (baseItem) => {
|
|
5
4
|
if (!isObject(baseItem)) return;
|
|
@@ -294,6 +293,5 @@ const generateFeed = (feed) => {
|
|
|
294
293
|
"podcast:publisher": generatePublisher(feed.publisher)
|
|
295
294
|
});
|
|
296
295
|
};
|
|
297
|
-
|
|
298
296
|
//#endregion
|
|
299
|
-
export { generateFeed, generateItem };
|
|
297
|
+
export { generateFeed, generateItem };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("../../../common/utils.cjs");
|
|
3
2
|
//#region src/namespaces/podcast/parse/utils.ts
|
|
3
|
+
const whitespaceRegex = /\s+/;
|
|
4
|
+
const trailingWRegex = /w$/;
|
|
4
5
|
const parseTranscript = (value) => {
|
|
5
6
|
if (!require_utils.isObject(value)) return;
|
|
6
7
|
return require_utils.trimObject({
|
|
@@ -155,10 +156,10 @@ const parseImages = (value) => {
|
|
|
155
156
|
const images = [];
|
|
156
157
|
const segments = srcset.split(",");
|
|
157
158
|
for (const segment of segments) {
|
|
158
|
-
const [href, width] = segment.trim().split(
|
|
159
|
+
const [href, width] = segment.trim().split(whitespaceRegex);
|
|
159
160
|
const image = {
|
|
160
161
|
href: require_utils.parseString(href),
|
|
161
|
-
width: require_utils.parseNumber(width?.replace(
|
|
162
|
+
width: require_utils.parseNumber(width?.replace(trailingWRegex, ""))
|
|
162
163
|
};
|
|
163
164
|
images.push(image);
|
|
164
165
|
}
|
|
@@ -287,9 +288,9 @@ const retrieveFeed = (value) => {
|
|
|
287
288
|
locations: require_utils.parseArrayOf(value["podcast:location"], parseLocation),
|
|
288
289
|
trailers: require_utils.parseArrayOf(value["podcast:trailer"], parseTrailer),
|
|
289
290
|
license: require_utils.parseSingularOf(value["podcast:license"], parseLicense),
|
|
290
|
-
guid: require_utils.parseSingularOf(value["podcast:guid"], (value
|
|
291
|
+
guid: require_utils.parseSingularOf(value["podcast:guid"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
291
292
|
values: require_utils.parseArrayOf(value["podcast:value"], parseValue),
|
|
292
|
-
medium: require_utils.parseSingularOf(value["podcast:medium"], (value
|
|
293
|
+
medium: require_utils.parseSingularOf(value["podcast:medium"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
293
294
|
images: retrieveImages(value),
|
|
294
295
|
liveItems: require_utils.parseArrayOf(value["podcast:liveitem"], parseLiveItem),
|
|
295
296
|
blocks: require_utils.parseArrayOf(value["podcast:block"], parseBlock),
|
|
@@ -305,7 +306,6 @@ const retrieveFeed = (value) => {
|
|
|
305
306
|
chats: require_utils.parseArrayOf(value["podcast:chat"], parseChat)
|
|
306
307
|
});
|
|
307
308
|
};
|
|
308
|
-
|
|
309
309
|
//#endregion
|
|
310
310
|
exports.retrieveFeed = retrieveFeed;
|
|
311
|
-
exports.retrieveItem = retrieveItem;
|
|
311
|
+
exports.retrieveItem = retrieveItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isObject, parseArrayOf, parseBoolean, parseDate, parseNumber, parseSingularOf, parseString, parseYesNoBoolean, retrieveText, trimArray, trimObject } from "../../../common/utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/namespaces/podcast/parse/utils.ts
|
|
3
|
+
const whitespaceRegex = /\s+/;
|
|
4
|
+
const trailingWRegex = /w$/;
|
|
4
5
|
const parseTranscript = (value) => {
|
|
5
6
|
if (!isObject(value)) return;
|
|
6
7
|
return trimObject({
|
|
@@ -155,10 +156,10 @@ const parseImages = (value) => {
|
|
|
155
156
|
const images = [];
|
|
156
157
|
const segments = srcset.split(",");
|
|
157
158
|
for (const segment of segments) {
|
|
158
|
-
const [href, width] = segment.trim().split(
|
|
159
|
+
const [href, width] = segment.trim().split(whitespaceRegex);
|
|
159
160
|
const image = {
|
|
160
161
|
href: parseString(href),
|
|
161
|
-
width: parseNumber(width?.replace(
|
|
162
|
+
width: parseNumber(width?.replace(trailingWRegex, ""))
|
|
162
163
|
};
|
|
163
164
|
images.push(image);
|
|
164
165
|
}
|
|
@@ -287,9 +288,9 @@ const retrieveFeed = (value) => {
|
|
|
287
288
|
locations: parseArrayOf(value["podcast:location"], parseLocation),
|
|
288
289
|
trailers: parseArrayOf(value["podcast:trailer"], parseTrailer),
|
|
289
290
|
license: parseSingularOf(value["podcast:license"], parseLicense),
|
|
290
|
-
guid: parseSingularOf(value["podcast:guid"], (value
|
|
291
|
+
guid: parseSingularOf(value["podcast:guid"], (value) => parseString(retrieveText(value))),
|
|
291
292
|
values: parseArrayOf(value["podcast:value"], parseValue),
|
|
292
|
-
medium: parseSingularOf(value["podcast:medium"], (value
|
|
293
|
+
medium: parseSingularOf(value["podcast:medium"], (value) => parseString(retrieveText(value))),
|
|
293
294
|
images: retrieveImages(value),
|
|
294
295
|
liveItems: parseArrayOf(value["podcast:liveitem"], parseLiveItem),
|
|
295
296
|
blocks: parseArrayOf(value["podcast:block"], parseBlock),
|
|
@@ -305,6 +306,5 @@ const retrieveFeed = (value) => {
|
|
|
305
306
|
chats: parseArrayOf(value["podcast:chat"], parseChat)
|
|
306
307
|
});
|
|
307
308
|
};
|
|
308
|
-
|
|
309
309
|
//#endregion
|
|
310
|
-
export { retrieveFeed, retrieveItem };
|
|
310
|
+
export { retrieveFeed, retrieveItem };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
//#region src/namespaces/prism/common/config.ts
|
|
2
|
+
const uris = [
|
|
3
|
+
"http://prismstandard.org/namespaces/basic/3.0/",
|
|
4
|
+
"https://prismstandard.org/namespaces/basic/3.0/",
|
|
5
|
+
"http://prismstandard.org/namespaces/basic/3.0",
|
|
6
|
+
"https://prismstandard.org/namespaces/basic/3.0",
|
|
7
|
+
"http://prismstandard.org/namespaces/basic/2.2/",
|
|
8
|
+
"https://prismstandard.org/namespaces/basic/2.2/",
|
|
9
|
+
"http://prismstandard.org/namespaces/basic/2.2",
|
|
10
|
+
"https://prismstandard.org/namespaces/basic/2.2",
|
|
11
|
+
"http://prismstandard.org/namespaces/basic/2.1/",
|
|
12
|
+
"https://prismstandard.org/namespaces/basic/2.1/",
|
|
13
|
+
"http://prismstandard.org/namespaces/basic/2.1",
|
|
14
|
+
"https://prismstandard.org/namespaces/basic/2.1",
|
|
15
|
+
"http://prismstandard.org/namespaces/basic/2.0/",
|
|
16
|
+
"https://prismstandard.org/namespaces/basic/2.0/",
|
|
17
|
+
"http://prismstandard.org/namespaces/basic/2.0",
|
|
18
|
+
"https://prismstandard.org/namespaces/basic/2.0",
|
|
19
|
+
"http://prismstandard.org/namespaces/2.0/basic/",
|
|
20
|
+
"https://prismstandard.org/namespaces/2.0/basic/",
|
|
21
|
+
"http://prismstandard.org/namespaces/2.0/basic",
|
|
22
|
+
"https://prismstandard.org/namespaces/2.0/basic",
|
|
23
|
+
"http://prismstandard.org/namespaces/1.2/basic/",
|
|
24
|
+
"https://prismstandard.org/namespaces/1.2/basic/",
|
|
25
|
+
"http://prismstandard.org/namespaces/1.2/basic",
|
|
26
|
+
"https://prismstandard.org/namespaces/1.2/basic",
|
|
27
|
+
"http://prismstandard.org/namespaces/1.1/basic/",
|
|
28
|
+
"https://prismstandard.org/namespaces/1.1/basic/",
|
|
29
|
+
"http://prismstandard.org/namespaces/1.1/basic",
|
|
30
|
+
"https://prismstandard.org/namespaces/1.1/basic",
|
|
31
|
+
"http://prismstandard.org/namespaces/1.0/basic/",
|
|
32
|
+
"https://prismstandard.org/namespaces/1.0/basic/",
|
|
33
|
+
"http://prismstandard.org/namespaces/1.0/basic",
|
|
34
|
+
"https://prismstandard.org/namespaces/1.0/basic",
|
|
35
|
+
"http://purl.org/rss/1.0/modules/prism/",
|
|
36
|
+
"https://purl.org/rss/1.0/modules/prism/",
|
|
37
|
+
"http://purl.org/rss/1.0/modules/prism",
|
|
38
|
+
"https://purl.org/rss/1.0/modules/prism"
|
|
39
|
+
];
|
|
40
|
+
const stopNodes = [
|
|
41
|
+
"*.prism:publicationname",
|
|
42
|
+
"*.prism:issn",
|
|
43
|
+
"*.prism:eissn",
|
|
44
|
+
"*.prism:isbn",
|
|
45
|
+
"*.prism:issueidentifier",
|
|
46
|
+
"*.prism:issuename",
|
|
47
|
+
"*.prism:issueteaser",
|
|
48
|
+
"*.prism:issuetype",
|
|
49
|
+
"*.prism:volume",
|
|
50
|
+
"*.prism:number",
|
|
51
|
+
"*.prism:edition",
|
|
52
|
+
"*.prism:aggregateissuenumber",
|
|
53
|
+
"*.prism:aggregationtype",
|
|
54
|
+
"*.prism:coverdate",
|
|
55
|
+
"*.prism:coverdisplaydate",
|
|
56
|
+
"*.prism:publicationdate",
|
|
57
|
+
"*.prism:publicationdisplaydate",
|
|
58
|
+
"*.prism:creationdate",
|
|
59
|
+
"*.prism:modificationdate",
|
|
60
|
+
"*.prism:datereceived",
|
|
61
|
+
"*.prism:onsaledate",
|
|
62
|
+
"*.prism:onsaleday",
|
|
63
|
+
"*.prism:offsaledate",
|
|
64
|
+
"*.prism:killdate",
|
|
65
|
+
"*.prism:copyrightyear",
|
|
66
|
+
"*.prism:contenttype",
|
|
67
|
+
"*.prism:alternatetitle",
|
|
68
|
+
"*.prism:subtitle",
|
|
69
|
+
"*.prism:teaser",
|
|
70
|
+
"*.prism:keyword",
|
|
71
|
+
"*.prism:seriestitle",
|
|
72
|
+
"*.prism:seriesnumber",
|
|
73
|
+
"*.prism:bookedition",
|
|
74
|
+
"*.prism:nationalcatalognumber",
|
|
75
|
+
"*.prism:productcode",
|
|
76
|
+
"*.prism:uspsnumber",
|
|
77
|
+
"*.prism:publishingfrequency",
|
|
78
|
+
"*.prism:channel",
|
|
79
|
+
"*.prism:subchannel1",
|
|
80
|
+
"*.prism:subchannel2",
|
|
81
|
+
"*.prism:subchannel3",
|
|
82
|
+
"*.prism:subchannel4",
|
|
83
|
+
"*.prism:section",
|
|
84
|
+
"*.prism:subsection1",
|
|
85
|
+
"*.prism:subsection2",
|
|
86
|
+
"*.prism:subsection3",
|
|
87
|
+
"*.prism:subsection4",
|
|
88
|
+
"*.prism:corporateentity",
|
|
89
|
+
"*.prism:distributor",
|
|
90
|
+
"*.prism:sellingagency",
|
|
91
|
+
"*.prism:organization",
|
|
92
|
+
"*.prism:person",
|
|
93
|
+
"*.prism:platform",
|
|
94
|
+
"*.prism:originplatform",
|
|
95
|
+
"*.prism:device",
|
|
96
|
+
"*.prism:complianceprofile",
|
|
97
|
+
"*.prism:blogtitle",
|
|
98
|
+
"*.prism:blogurl",
|
|
99
|
+
"*.prism:link",
|
|
100
|
+
"*.prism:url",
|
|
101
|
+
"*.prism:bytecount",
|
|
102
|
+
"*.prism:wordcount",
|
|
103
|
+
"*.prism:pagecount",
|
|
104
|
+
"*.prism:rating",
|
|
105
|
+
"*.prism:timeperiod",
|
|
106
|
+
"*.prism:versionidentifier",
|
|
107
|
+
"*.prism:ticker",
|
|
108
|
+
"*.prism:academicfield",
|
|
109
|
+
"*.prism:event",
|
|
110
|
+
"*.prism:genre",
|
|
111
|
+
"*.prism:industry",
|
|
112
|
+
"*.prism:location",
|
|
113
|
+
"*.prism:object",
|
|
114
|
+
"*.prism:profession",
|
|
115
|
+
"*.prism:sport",
|
|
116
|
+
"*.prism:embargodate",
|
|
117
|
+
"*.prism:copyright",
|
|
118
|
+
"*.prism:expirationdate",
|
|
119
|
+
"*.prism:rightsagent",
|
|
120
|
+
"*.prism:doi",
|
|
121
|
+
"*.prism:startingpage",
|
|
122
|
+
"*.prism:endingpage",
|
|
123
|
+
"*.prism:pagerange",
|
|
124
|
+
"*.prism:pageprogressiondirection",
|
|
125
|
+
"*.prism:samplepagerange",
|
|
126
|
+
"*.prism:hasalternative",
|
|
127
|
+
"*.prism:hascorrection",
|
|
128
|
+
"*.prism:hastranslation",
|
|
129
|
+
"*.prism:isalternativeof",
|
|
130
|
+
"*.prism:iscorrectionof",
|
|
131
|
+
"*.prism:istranslationof",
|
|
132
|
+
"*.prism:supplementtitle",
|
|
133
|
+
"*.prism:supplementdisplayid",
|
|
134
|
+
"*.prism:supplementstartingpage"
|
|
135
|
+
];
|
|
136
|
+
//#endregion
|
|
137
|
+
exports.stopNodes = stopNodes;
|
|
138
|
+
exports.uris = uris;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
//#region src/namespaces/prism/common/config.ts
|
|
2
|
+
const uris = [
|
|
3
|
+
"http://prismstandard.org/namespaces/basic/3.0/",
|
|
4
|
+
"https://prismstandard.org/namespaces/basic/3.0/",
|
|
5
|
+
"http://prismstandard.org/namespaces/basic/3.0",
|
|
6
|
+
"https://prismstandard.org/namespaces/basic/3.0",
|
|
7
|
+
"http://prismstandard.org/namespaces/basic/2.2/",
|
|
8
|
+
"https://prismstandard.org/namespaces/basic/2.2/",
|
|
9
|
+
"http://prismstandard.org/namespaces/basic/2.2",
|
|
10
|
+
"https://prismstandard.org/namespaces/basic/2.2",
|
|
11
|
+
"http://prismstandard.org/namespaces/basic/2.1/",
|
|
12
|
+
"https://prismstandard.org/namespaces/basic/2.1/",
|
|
13
|
+
"http://prismstandard.org/namespaces/basic/2.1",
|
|
14
|
+
"https://prismstandard.org/namespaces/basic/2.1",
|
|
15
|
+
"http://prismstandard.org/namespaces/basic/2.0/",
|
|
16
|
+
"https://prismstandard.org/namespaces/basic/2.0/",
|
|
17
|
+
"http://prismstandard.org/namespaces/basic/2.0",
|
|
18
|
+
"https://prismstandard.org/namespaces/basic/2.0",
|
|
19
|
+
"http://prismstandard.org/namespaces/2.0/basic/",
|
|
20
|
+
"https://prismstandard.org/namespaces/2.0/basic/",
|
|
21
|
+
"http://prismstandard.org/namespaces/2.0/basic",
|
|
22
|
+
"https://prismstandard.org/namespaces/2.0/basic",
|
|
23
|
+
"http://prismstandard.org/namespaces/1.2/basic/",
|
|
24
|
+
"https://prismstandard.org/namespaces/1.2/basic/",
|
|
25
|
+
"http://prismstandard.org/namespaces/1.2/basic",
|
|
26
|
+
"https://prismstandard.org/namespaces/1.2/basic",
|
|
27
|
+
"http://prismstandard.org/namespaces/1.1/basic/",
|
|
28
|
+
"https://prismstandard.org/namespaces/1.1/basic/",
|
|
29
|
+
"http://prismstandard.org/namespaces/1.1/basic",
|
|
30
|
+
"https://prismstandard.org/namespaces/1.1/basic",
|
|
31
|
+
"http://prismstandard.org/namespaces/1.0/basic/",
|
|
32
|
+
"https://prismstandard.org/namespaces/1.0/basic/",
|
|
33
|
+
"http://prismstandard.org/namespaces/1.0/basic",
|
|
34
|
+
"https://prismstandard.org/namespaces/1.0/basic",
|
|
35
|
+
"http://purl.org/rss/1.0/modules/prism/",
|
|
36
|
+
"https://purl.org/rss/1.0/modules/prism/",
|
|
37
|
+
"http://purl.org/rss/1.0/modules/prism",
|
|
38
|
+
"https://purl.org/rss/1.0/modules/prism"
|
|
39
|
+
];
|
|
40
|
+
const stopNodes = [
|
|
41
|
+
"*.prism:publicationname",
|
|
42
|
+
"*.prism:issn",
|
|
43
|
+
"*.prism:eissn",
|
|
44
|
+
"*.prism:isbn",
|
|
45
|
+
"*.prism:issueidentifier",
|
|
46
|
+
"*.prism:issuename",
|
|
47
|
+
"*.prism:issueteaser",
|
|
48
|
+
"*.prism:issuetype",
|
|
49
|
+
"*.prism:volume",
|
|
50
|
+
"*.prism:number",
|
|
51
|
+
"*.prism:edition",
|
|
52
|
+
"*.prism:aggregateissuenumber",
|
|
53
|
+
"*.prism:aggregationtype",
|
|
54
|
+
"*.prism:coverdate",
|
|
55
|
+
"*.prism:coverdisplaydate",
|
|
56
|
+
"*.prism:publicationdate",
|
|
57
|
+
"*.prism:publicationdisplaydate",
|
|
58
|
+
"*.prism:creationdate",
|
|
59
|
+
"*.prism:modificationdate",
|
|
60
|
+
"*.prism:datereceived",
|
|
61
|
+
"*.prism:onsaledate",
|
|
62
|
+
"*.prism:onsaleday",
|
|
63
|
+
"*.prism:offsaledate",
|
|
64
|
+
"*.prism:killdate",
|
|
65
|
+
"*.prism:copyrightyear",
|
|
66
|
+
"*.prism:contenttype",
|
|
67
|
+
"*.prism:alternatetitle",
|
|
68
|
+
"*.prism:subtitle",
|
|
69
|
+
"*.prism:teaser",
|
|
70
|
+
"*.prism:keyword",
|
|
71
|
+
"*.prism:seriestitle",
|
|
72
|
+
"*.prism:seriesnumber",
|
|
73
|
+
"*.prism:bookedition",
|
|
74
|
+
"*.prism:nationalcatalognumber",
|
|
75
|
+
"*.prism:productcode",
|
|
76
|
+
"*.prism:uspsnumber",
|
|
77
|
+
"*.prism:publishingfrequency",
|
|
78
|
+
"*.prism:channel",
|
|
79
|
+
"*.prism:subchannel1",
|
|
80
|
+
"*.prism:subchannel2",
|
|
81
|
+
"*.prism:subchannel3",
|
|
82
|
+
"*.prism:subchannel4",
|
|
83
|
+
"*.prism:section",
|
|
84
|
+
"*.prism:subsection1",
|
|
85
|
+
"*.prism:subsection2",
|
|
86
|
+
"*.prism:subsection3",
|
|
87
|
+
"*.prism:subsection4",
|
|
88
|
+
"*.prism:corporateentity",
|
|
89
|
+
"*.prism:distributor",
|
|
90
|
+
"*.prism:sellingagency",
|
|
91
|
+
"*.prism:organization",
|
|
92
|
+
"*.prism:person",
|
|
93
|
+
"*.prism:platform",
|
|
94
|
+
"*.prism:originplatform",
|
|
95
|
+
"*.prism:device",
|
|
96
|
+
"*.prism:complianceprofile",
|
|
97
|
+
"*.prism:blogtitle",
|
|
98
|
+
"*.prism:blogurl",
|
|
99
|
+
"*.prism:link",
|
|
100
|
+
"*.prism:url",
|
|
101
|
+
"*.prism:bytecount",
|
|
102
|
+
"*.prism:wordcount",
|
|
103
|
+
"*.prism:pagecount",
|
|
104
|
+
"*.prism:rating",
|
|
105
|
+
"*.prism:timeperiod",
|
|
106
|
+
"*.prism:versionidentifier",
|
|
107
|
+
"*.prism:ticker",
|
|
108
|
+
"*.prism:academicfield",
|
|
109
|
+
"*.prism:event",
|
|
110
|
+
"*.prism:genre",
|
|
111
|
+
"*.prism:industry",
|
|
112
|
+
"*.prism:location",
|
|
113
|
+
"*.prism:object",
|
|
114
|
+
"*.prism:profession",
|
|
115
|
+
"*.prism:sport",
|
|
116
|
+
"*.prism:embargodate",
|
|
117
|
+
"*.prism:copyright",
|
|
118
|
+
"*.prism:expirationdate",
|
|
119
|
+
"*.prism:rightsagent",
|
|
120
|
+
"*.prism:doi",
|
|
121
|
+
"*.prism:startingpage",
|
|
122
|
+
"*.prism:endingpage",
|
|
123
|
+
"*.prism:pagerange",
|
|
124
|
+
"*.prism:pageprogressiondirection",
|
|
125
|
+
"*.prism:samplepagerange",
|
|
126
|
+
"*.prism:hasalternative",
|
|
127
|
+
"*.prism:hascorrection",
|
|
128
|
+
"*.prism:hastranslation",
|
|
129
|
+
"*.prism:isalternativeof",
|
|
130
|
+
"*.prism:iscorrectionof",
|
|
131
|
+
"*.prism:istranslationof",
|
|
132
|
+
"*.prism:supplementtitle",
|
|
133
|
+
"*.prism:supplementdisplayid",
|
|
134
|
+
"*.prism:supplementstartingpage"
|
|
135
|
+
];
|
|
136
|
+
//#endregion
|
|
137
|
+
export { stopNodes, uris };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("../../../common/utils.cjs");
|
|
3
2
|
//#region src/namespaces/prism/generate/utils.ts
|
|
4
3
|
const generateFeed = (feed) => {
|
|
5
4
|
if (!require_utils.isObject(feed)) return;
|
|
@@ -148,7 +147,6 @@ const generateItem = (item) => {
|
|
|
148
147
|
"prism:rightsAgent": require_utils.generateCdataString(item.rightsAgent)
|
|
149
148
|
});
|
|
150
149
|
};
|
|
151
|
-
|
|
152
150
|
//#endregion
|
|
153
151
|
exports.generateFeed = generateFeed;
|
|
154
|
-
exports.generateItem = generateItem;
|
|
152
|
+
exports.generateItem = generateItem;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { generateCdataString, generateNumber, generateRfc3339Date, isObject, trimArray, trimObject } from "../../../common/utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/namespaces/prism/generate/utils.ts
|
|
4
3
|
const generateFeed = (feed) => {
|
|
5
4
|
if (!isObject(feed)) return;
|
|
@@ -148,6 +147,5 @@ const generateItem = (item) => {
|
|
|
148
147
|
"prism:rightsAgent": generateCdataString(item.rightsAgent)
|
|
149
148
|
});
|
|
150
149
|
};
|
|
151
|
-
|
|
152
150
|
//#endregion
|
|
153
|
-
export { generateFeed, generateItem };
|
|
151
|
+
export { generateFeed, generateItem };
|