@rspress/plugin-rss 2.0.7 → 2.0.9

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { resolve } from "node:url";
2
2
  import { promises } from "node:fs";
3
- import node_path, { dirname } from "node:path";
3
+ import node_path from "node:path";
4
4
  import { getIconUrlPath } from "@rspress/core";
5
5
  import { Feed } from "feed";
6
+ import * as __rspack_external_node_path_c5b9b54f from "node:path";
6
7
  function notNullish(n) {
7
8
  return null != n;
8
9
  }
@@ -27,7 +28,7 @@ function sortByDate(l, r) {
27
28
  return (r ? r.getTime() : 0) - (l ? l.getTime() : 0);
28
29
  }
29
30
  async function writeFile(path, content) {
30
- const dir = dirname(path);
31
+ const dir = __rspack_external_node_path_c5b9b54f.dirname(path);
31
32
  await promises.mkdir(dir, {
32
33
  mode: 493,
33
34
  recursive: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-rss",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "A plugin for rss generation for rspress",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "feed": "^5.2.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@rslib/core": "0.20.0",
31
+ "@rslib/core": "0.21.0",
32
32
  "@types/node": "^22.8.1",
33
33
  "@types/react": "^19.2.14",
34
34
  "react": "^19.2.4",
@@ -36,7 +36,7 @@
36
36
  "typescript": "^5.8.2"
37
37
  },
38
38
  "peerDependencies": {
39
- "@rspress/core": "^2.0.7"
39
+ "@rspress/core": "^2.0.9"
40
40
  },
41
41
  "engines": {
42
42
  "node": "^20.19.0 || >=22.12.0"