@rspress/plugin-preview 2.0.7 → 2.0.8

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 +2 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -99,7 +99,7 @@ const pluginLogger = createLogger({
99
99
  const convert = function(test) {
100
100
  if (null == test) return ok;
101
101
  if ('function' == typeof test) return castFactory(test);
102
- if ('object' == typeof test) return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
102
+ if ('object' == typeof test) return Array.isArray(test) ? anyFactory(test) : propertiesFactory(test);
103
103
  if ('string' == typeof test) return typeFactory(test);
104
104
  throw new Error('Expected function, string, or object as test');
105
105
  };
@@ -114,7 +114,7 @@ function anyFactory(tests) {
114
114
  return false;
115
115
  }
116
116
  }
117
- function propsFactory(check) {
117
+ function propertiesFactory(check) {
118
118
  const checkAsRecord = check;
119
119
  return castFactory(all);
120
120
  function all(node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-preview",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "A plugin for rspress to preview the code block in markdown/mdx file.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -23,14 +23,14 @@
23
23
  "static"
24
24
  ],
25
25
  "dependencies": {
26
- "@rsbuild/core": "2.0.0-beta.10",
26
+ "@rsbuild/core": "2.0.0-beta.11",
27
27
  "@rsbuild/plugin-babel": "~1.1.2",
28
28
  "@rsbuild/plugin-react": "~1.4.6",
29
29
  "picocolors": "^1.1.1",
30
30
  "qrcode.react": "^4.2.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@rslib/core": "0.20.0",
33
+ "@rslib/core": "0.20.2",
34
34
  "@types/mdast": "^4.0.4",
35
35
  "@types/node": "^22.8.1",
36
36
  "@types/react": "^19.2.14",
@@ -39,14 +39,14 @@
39
39
  "mdast-util-mdxjs-esm": "^2.0.1",
40
40
  "react": "^19.2.4",
41
41
  "react-dom": "^19.2.4",
42
- "react-router-dom": "^7.13.1",
42
+ "react-router-dom": "^7.13.2",
43
43
  "rsbuild-plugin-publint": "^0.3.4",
44
44
  "typescript": "^5.8.2",
45
45
  "unified": "^11.0.5",
46
46
  "unist-util-visit": "^5.0.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@rspress/core": "^2.0.7",
49
+ "@rspress/core": "^2.0.8",
50
50
  "react": ">=18.0.0",
51
51
  "react-router-dom": "^6.8.1"
52
52
  },