@rspress/plugin-rss 1.44.0 → 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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
@@ -46,6 +46,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
46
46
|
const external_node_path_namespaceObject = require("node:path");
|
47
47
|
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
48
48
|
const external_node_url_namespaceObject = require("node:url");
|
49
|
+
const node_utils_namespaceObject = require("@rspress/shared/node-utils");
|
49
50
|
const external_feed_namespaceObject = require("feed");
|
50
51
|
function notNullish(n) {
|
51
52
|
return null != n;
|
@@ -209,7 +210,7 @@ class FeedsSet {
|
|
209
210
|
return {
|
210
211
|
title: config.title || '',
|
211
212
|
description: config.description || '',
|
212
|
-
favicon: config.icon && (0, external_node_url_namespaceObject.resolve)(siteUrl, config.icon),
|
213
|
+
favicon: config.icon && (0, external_node_url_namespaceObject.resolve)(siteUrl, (0, node_utils_namespaceObject.getIconUrlPath)(config.icon)),
|
213
214
|
copyright: (null == (_config_themeConfig = config.themeConfig) ? void 0 : null == (_config_themeConfig_footer = _config_themeConfig.footer) ? void 0 : _config_themeConfig_footer.message) || '',
|
214
215
|
link: siteUrl,
|
215
216
|
docs: '',
|
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) {
|
@@ -163,7 +164,7 @@ 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
|
+
favicon: config.icon && (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.resolve)(siteUrl, (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__.getIconUrlPath)(config.icon)),
|
167
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: '',
|
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,7 +26,7 @@
|
|
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
32
|
"@rslib/core": "~0.6.9",
|
@@ -34,11 +34,11 @@
|
|
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"
|