@docusaurus/plugin-client-redirects 0.0.0-5044 → 0.0.0-5049
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/index.d.ts +1 -1
- package/lib/options.d.ts +1 -1
- package/package.json +8 -8
- package/src/index.ts +1 -1
- package/src/options.ts +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { LoadContext, Plugin } from '@docusaurus/types';
|
|
8
8
|
import type { PluginOptions, Options } from './options';
|
|
9
|
-
export default function pluginClientRedirectsPages(context: LoadContext, options: PluginOptions): Plugin<
|
|
9
|
+
export default function pluginClientRedirectsPages(context: LoadContext, options: PluginOptions): Plugin<void>;
|
|
10
10
|
export { validateOptions } from './options';
|
|
11
11
|
export type { PluginOptions, Options };
|
package/lib/options.d.ts
CHANGED
|
@@ -28,4 +28,4 @@ export declare type PluginOptions = {
|
|
|
28
28
|
};
|
|
29
29
|
export declare type Options = Partial<PluginOptions>;
|
|
30
30
|
export declare const DEFAULT_OPTIONS: Partial<PluginOptions>;
|
|
31
|
-
export declare function validateOptions({ validate, options: userOptions, }: OptionValidationContext<Options, PluginOptions>): PluginOptions;
|
|
31
|
+
export declare function validateOptions({ validate, options: userOptions, }: OptionValidationContext<Options | undefined, PluginOptions>): PluginOptions;
|
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-5049",
|
|
4
4
|
"description": "Client redirects plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,18 +18,18 @@
|
|
|
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-5049",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-5049",
|
|
23
|
+
"@docusaurus/utils": "0.0.0-5049",
|
|
24
|
+
"@docusaurus/utils-common": "0.0.0-5049",
|
|
25
|
+
"@docusaurus/utils-validation": "0.0.0-5049",
|
|
26
26
|
"eta": "^1.12.3",
|
|
27
27
|
"fs-extra": "^10.1.0",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"tslib": "^2.4.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
+
"@docusaurus/types": "0.0.0-5049"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=14"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "527b2a01c46b67483327a1a6873fccf81bc19e2c"
|
|
42
42
|
}
|
package/src/index.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {PluginOptions, Options} from './options';
|
|
|
18
18
|
export default function pluginClientRedirectsPages(
|
|
19
19
|
context: LoadContext,
|
|
20
20
|
options: PluginOptions,
|
|
21
|
-
): Plugin<
|
|
21
|
+
): Plugin<void> {
|
|
22
22
|
const {trailingSlash} = context.siteConfig;
|
|
23
23
|
|
|
24
24
|
return {
|
package/src/options.ts
CHANGED
|
@@ -66,6 +66,6 @@ const UserOptionsSchema = Joi.object<PluginOptions>({
|
|
|
66
66
|
export function validateOptions({
|
|
67
67
|
validate,
|
|
68
68
|
options: userOptions,
|
|
69
|
-
}: OptionValidationContext<Options, PluginOptions>): PluginOptions {
|
|
69
|
+
}: OptionValidationContext<Options | undefined, PluginOptions>): PluginOptions {
|
|
70
70
|
return validate(UserOptionsSchema, userOptions);
|
|
71
71
|
}
|