@rspress/plugin-rss 1.43.13 → 1.45.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 +34 -21
- package/dist/index.mjs +4 -3
- 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,17 +35,18 @@ __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);
|
54
48
|
const external_node_url_namespaceObject = require("node:url");
|
49
|
+
const node_utils_namespaceObject = require("@rspress/shared/node-utils");
|
55
50
|
const external_feed_namespaceObject = require("feed");
|
56
51
|
function notNullish(n) {
|
57
52
|
return null != n;
|
@@ -105,7 +100,7 @@ function createFeed(options, config) {
|
|
105
100
|
const { output, item, id, title, ..._options } = options;
|
106
101
|
return {
|
107
102
|
id,
|
108
|
-
copyright: (null
|
103
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
109
104
|
description: config.description || '',
|
110
105
|
link: output.url,
|
111
106
|
..._options,
|
@@ -215,8 +210,8 @@ class FeedsSet {
|
|
215
210
|
return {
|
216
211
|
title: config.title || '',
|
217
212
|
description: config.description || '',
|
218
|
-
favicon: config.icon && (0, external_node_url_namespaceObject.resolve)(siteUrl, config.icon),
|
219
|
-
copyright: (null
|
213
|
+
favicon: config.icon && (0, external_node_url_namespaceObject.resolve)(siteUrl, (0, node_utils_namespaceObject.getIconUrlPath)(config.icon)),
|
214
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
220
215
|
link: siteUrl,
|
221
216
|
docs: '',
|
222
217
|
...options,
|
@@ -300,8 +295,26 @@ function pluginRss(pluginRssOptions) {
|
|
300
295
|
}
|
301
296
|
};
|
302
297
|
}
|
303
|
-
|
304
|
-
|
305
|
-
|
298
|
+
exports.PluginComponents = __webpack_exports__.PluginComponents;
|
299
|
+
exports.PluginName = __webpack_exports__.PluginName;
|
300
|
+
exports.createFeed = __webpack_exports__.createFeed;
|
301
|
+
exports.generateFeedItem = __webpack_exports__.generateFeedItem;
|
302
|
+
exports.getDefaultFeedOption = __webpack_exports__.getDefaultFeedOption;
|
303
|
+
exports.getFeedFileType = __webpack_exports__.getFeedFileType;
|
304
|
+
exports.getOutputInfo = __webpack_exports__.getOutputInfo;
|
305
|
+
exports.pluginRss = __webpack_exports__.pluginRss;
|
306
|
+
exports.testPage = __webpack_exports__.testPage;
|
307
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
308
|
+
"PluginComponents",
|
309
|
+
"PluginName",
|
310
|
+
"createFeed",
|
311
|
+
"generateFeedItem",
|
312
|
+
"getDefaultFeedOption",
|
313
|
+
"getFeedFileType",
|
314
|
+
"getOutputInfo",
|
315
|
+
"pluginRss",
|
316
|
+
"testPage"
|
317
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
318
|
+
Object.defineProperty(exports, '__esModule', {
|
306
319
|
value: true
|
307
320
|
});
|
package/dist/index.mjs
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__ from "@rspress/shared/node-utils";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_feed__ from "feed";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
|
5
6
|
function notNullish(n) {
|
@@ -53,7 +54,7 @@ function createFeed(options, config) {
|
|
53
54
|
const { output, item, id, title, ..._options } = options;
|
54
55
|
return {
|
55
56
|
id,
|
56
|
-
copyright: (null
|
57
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
57
58
|
description: config.description || '',
|
58
59
|
link: output.url,
|
59
60
|
..._options,
|
@@ -163,8 +164,8 @@ class FeedsSet {
|
|
163
164
|
return {
|
164
165
|
title: config.title || '',
|
165
166
|
description: config.description || '',
|
166
|
-
favicon: config.icon && (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.resolve)(siteUrl, config.icon),
|
167
|
-
copyright: (null
|
167
|
+
favicon: config.icon && (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.resolve)(siteUrl, (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__.getIconUrlPath)(config.icon)),
|
168
|
+
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
168
169
|
link: siteUrl,
|
169
170
|
docs: '',
|
170
171
|
...options,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-rss",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.45.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.45.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.45.0"
|
38
38
|
},
|
39
39
|
"peerDependencies": {
|
40
40
|
"react": ">=17.0.0",
|
41
|
-
"rspress": "^1.
|
41
|
+
"rspress": "^1.45.0"
|
42
42
|
},
|
43
43
|
"engines": {
|
44
44
|
"node": ">=14.17.6"
|