@docusaurus/plugin-client-redirects 0.0.0-4388 → 0.0.0-4395
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/lib/collectRedirects.js
CHANGED
|
@@ -88,7 +88,7 @@ function doCollectRedirects(pluginContext) {
|
|
|
88
88
|
];
|
|
89
89
|
}
|
|
90
90
|
function createRedirectsOptionRedirects(redirectsOption) {
|
|
91
|
-
// For
|
|
91
|
+
// For convenience, user can use a string or a string[]
|
|
92
92
|
function optionToRedirects(option) {
|
|
93
93
|
if (typeof option.from === 'string') {
|
|
94
94
|
return [{ from: option.from, to: option.to }];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-client-redirects",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4395",
|
|
4
4
|
"description": "Client redirects plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-client-redirects.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/logger": "0.0.0-
|
|
23
|
-
"@docusaurus/utils": "0.0.0-
|
|
24
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
25
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-4395",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-4395",
|
|
23
|
+
"@docusaurus/utils": "0.0.0-4395",
|
|
24
|
+
"@docusaurus/utils-common": "0.0.0-4395",
|
|
25
|
+
"@docusaurus/utils-validation": "0.0.0-4395",
|
|
26
26
|
"chalk": "^4.1.2",
|
|
27
27
|
"eta": "^1.12.3",
|
|
28
28
|
"fs-extra": "^10.0.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tslib": "^2.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@docusaurus/types": "0.0.0-
|
|
33
|
+
"@docusaurus/types": "0.0.0-4395"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=14"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "860ece1feda34ed569ebbafb64a5fc6dcb2de10b"
|
|
43
43
|
}
|
package/src/collectRedirects.ts
CHANGED
|
@@ -143,7 +143,7 @@ function doCollectRedirects(pluginContext: PluginContext): RedirectMetadata[] {
|
|
|
143
143
|
function createRedirectsOptionRedirects(
|
|
144
144
|
redirectsOption: PluginOptions['redirects'],
|
|
145
145
|
): RedirectMetadata[] {
|
|
146
|
-
// For
|
|
146
|
+
// For convenience, user can use a string or a string[]
|
|
147
147
|
function optionToRedirects(option: RedirectOption): RedirectMetadata[] {
|
|
148
148
|
if (typeof option.from === 'string') {
|
|
149
149
|
return [{from: option.from, to: option.to}];
|