@rspress/plugin-rss 1.43.13 → 1.44.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/dist/index.cjs +32 -20
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __webpack_require__ = {};
|
3
3
|
(()=>{
|
4
|
-
__webpack_require__.n =
|
5
|
-
var getter = module && module.__esModule ?
|
6
|
-
return module['default'];
|
7
|
-
} : function() {
|
8
|
-
return module;
|
9
|
-
};
|
4
|
+
__webpack_require__.n = (module)=>{
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
10
6
|
__webpack_require__.d(getter, {
|
11
7
|
a: getter
|
12
8
|
});
|
@@ -14,7 +10,7 @@ var __webpack_require__ = {};
|
|
14
10
|
};
|
15
11
|
})();
|
16
12
|
(()=>{
|
17
|
-
__webpack_require__.d =
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
18
14
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
19
15
|
enumerable: true,
|
20
16
|
get: definition[key]
|
@@ -22,12 +18,10 @@ var __webpack_require__ = {};
|
|
22
18
|
};
|
23
19
|
})();
|
24
20
|
(()=>{
|
25
|
-
__webpack_require__.o =
|
26
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
27
|
-
};
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
28
22
|
})();
|
29
23
|
(()=>{
|
30
|
-
__webpack_require__.r =
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
31
25
|
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
32
26
|
value: 'Module'
|
33
27
|
});
|
@@ -41,13 +35,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
41
35
|
__webpack_require__.d(__webpack_exports__, {
|
42
36
|
getDefaultFeedOption: ()=>getDefaultFeedOption,
|
43
37
|
PluginComponents: ()=>PluginComponents,
|
44
|
-
|
38
|
+
createFeed: ()=>createFeed,
|
45
39
|
getFeedFileType: ()=>getFeedFileType,
|
46
|
-
|
40
|
+
PluginName: ()=>PluginName,
|
41
|
+
generateFeedItem: ()=>generateFeedItem,
|
47
42
|
getOutputInfo: ()=>getOutputInfo,
|
48
|
-
createFeed: ()=>createFeed,
|
49
43
|
testPage: ()=>testPage,
|
50
|
-
|
44
|
+
pluginRss: ()=>pluginRss
|
51
45
|
});
|
52
46
|
const external_node_path_namespaceObject = require("node:path");
|
53
47
|
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
@@ -105,7 +99,7 @@ function createFeed(options, config) {
|
|
105
99
|
const { output, item, id, title, ..._options } = options;
|
106
100
|
return {
|
107
101
|
id,
|
108
|
-
copyright: (null
|
102
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
109
103
|
description: config.description || '',
|
110
104
|
link: output.url,
|
111
105
|
..._options,
|
@@ -216,7 +210,7 @@ class FeedsSet {
|
|
216
210
|
title: config.title || '',
|
217
211
|
description: config.description || '',
|
218
212
|
favicon: config.icon && (0, external_node_url_namespaceObject.resolve)(siteUrl, config.icon),
|
219
|
-
copyright: (null
|
213
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
220
214
|
link: siteUrl,
|
221
215
|
docs: '',
|
222
216
|
...options,
|
@@ -300,8 +294,26 @@ function pluginRss(pluginRssOptions) {
|
|
300
294
|
}
|
301
295
|
};
|
302
296
|
}
|
303
|
-
|
304
|
-
|
305
|
-
|
297
|
+
exports.PluginComponents = __webpack_exports__.PluginComponents;
|
298
|
+
exports.PluginName = __webpack_exports__.PluginName;
|
299
|
+
exports.createFeed = __webpack_exports__.createFeed;
|
300
|
+
exports.generateFeedItem = __webpack_exports__.generateFeedItem;
|
301
|
+
exports.getDefaultFeedOption = __webpack_exports__.getDefaultFeedOption;
|
302
|
+
exports.getFeedFileType = __webpack_exports__.getFeedFileType;
|
303
|
+
exports.getOutputInfo = __webpack_exports__.getOutputInfo;
|
304
|
+
exports.pluginRss = __webpack_exports__.pluginRss;
|
305
|
+
exports.testPage = __webpack_exports__.testPage;
|
306
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
307
|
+
"PluginComponents",
|
308
|
+
"PluginName",
|
309
|
+
"createFeed",
|
310
|
+
"generateFeedItem",
|
311
|
+
"getDefaultFeedOption",
|
312
|
+
"getFeedFileType",
|
313
|
+
"getOutputInfo",
|
314
|
+
"pluginRss",
|
315
|
+
"testPage"
|
316
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
317
|
+
Object.defineProperty(exports, '__esModule', {
|
306
318
|
value: true
|
307
319
|
});
|
package/dist/index.mjs
CHANGED
@@ -53,7 +53,7 @@ function createFeed(options, config) {
|
|
53
53
|
const { output, item, id, title, ..._options } = options;
|
54
54
|
return {
|
55
55
|
id,
|
56
|
-
copyright: (null
|
56
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
57
57
|
description: config.description || '',
|
58
58
|
link: output.url,
|
59
59
|
..._options,
|
@@ -164,7 +164,7 @@ class FeedsSet {
|
|
164
164
|
title: config.title || '',
|
165
165
|
description: config.description || '',
|
166
166
|
favicon: config.icon && (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.resolve)(siteUrl, config.icon),
|
167
|
-
copyright: (null
|
167
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
168
168
|
link: siteUrl,
|
169
169
|
docs: '',
|
170
170
|
...options,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-rss",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.44.0",
|
4
4
|
"description": "A plugin for rss generation for rspress",
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
6
6
|
"repository": {
|
@@ -26,19 +26,19 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"feed": "^4.2.2",
|
29
|
-
"@rspress/shared": "1.
|
29
|
+
"@rspress/shared": "1.44.0"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"@rslib/core": "0.
|
32
|
+
"@rslib/core": "~0.6.9",
|
33
33
|
"@types/node": "^18.11.17",
|
34
34
|
"@types/react": "^18.3.18",
|
35
35
|
"react": "^18.3.1",
|
36
36
|
"typescript": "^5.5.3",
|
37
|
-
"@rspress/runtime": "1.
|
37
|
+
"@rspress/runtime": "1.44.0"
|
38
38
|
},
|
39
39
|
"peerDependencies": {
|
40
40
|
"react": ">=17.0.0",
|
41
|
-
"rspress": "^1.
|
41
|
+
"rspress": "^1.44.0"
|
42
42
|
},
|
43
43
|
"engines": {
|
44
44
|
"node": ">=14.17.6"
|