@rspress/runtime 2.0.0-beta.17 → 2.0.0-beta.18
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/utils.js +4 -3
- package/package.json +3 -3
package/dist/utils.js
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
import { addLeadingSlash, isDataUrl, isExternalUrl, isProduction, normalizeHref, normalizeSlash, removeBase, removeHash, removeTrailingSlash, withBase } from "@rspress/shared";
|
2
|
+
import { base } from "virtual-runtime-config";
|
2
3
|
import virtual_site_data from "virtual-site-data";
|
3
4
|
function utils_withBase(url = '/') {
|
4
|
-
return withBase(url,
|
5
|
+
return withBase(url, base);
|
5
6
|
}
|
6
7
|
function utils_removeBase(url) {
|
7
|
-
return removeBase(url,
|
8
|
+
return removeBase(url, base);
|
8
9
|
}
|
9
10
|
function isEqualPath(a, b) {
|
10
|
-
return
|
11
|
+
return utils_removeBase(normalizeHrefInRuntime(removeHash(a))) === utils_removeBase(normalizeHrefInRuntime(removeHash(b)));
|
11
12
|
}
|
12
13
|
function normalizeHrefInRuntime(a) {
|
13
14
|
const cleanUrls = Boolean(virtual_site_data?.route?.cleanUrls);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/runtime",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.18",
|
4
4
|
"description": "The Runtime of Rspress Documentation Framework",
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
6
6
|
"repository": {
|
@@ -37,11 +37,11 @@
|
|
37
37
|
"react": "^19.1.0",
|
38
38
|
"react-dom": "^19.1.0",
|
39
39
|
"react-router-dom": "^6.29.0",
|
40
|
-
"@rspress/shared": "2.0.0-beta.
|
40
|
+
"@rspress/shared": "2.0.0-beta.18"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
43
|
"@rsbuild/plugin-react": "~1.3.2",
|
44
|
-
"@rslib/core": "0.10.
|
44
|
+
"@rslib/core": "0.10.3",
|
45
45
|
"@types/jest": "~29.5.14",
|
46
46
|
"@types/react": "^19.1.8",
|
47
47
|
"@types/react-dom": "^19.1.6",
|