@docusaurus/plugin-sitemap 0.0.0-5043 → 0.0.0-5048
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/options.js +1 -0
- package/package.json +8 -8
- package/src/options.ts +2 -1
package/lib/options.js
CHANGED
|
@@ -15,6 +15,7 @@ exports.DEFAULT_OPTIONS = {
|
|
|
15
15
|
ignorePatterns: [],
|
|
16
16
|
};
|
|
17
17
|
const PluginOptionSchema = utils_validation_1.Joi.object({
|
|
18
|
+
// @ts-expect-error: forbidden
|
|
18
19
|
cacheTime: utils_validation_1.Joi.forbidden().messages({
|
|
19
20
|
'any.unknown': 'Option `cacheTime` in sitemap config is deprecated. Please remove it.',
|
|
20
21
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-sitemap",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5048",
|
|
4
4
|
"description": "Simple sitemap generation plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,17 +18,17 @@
|
|
|
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-5048",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-5048",
|
|
23
|
+
"@docusaurus/utils": "0.0.0-5048",
|
|
24
|
+
"@docusaurus/utils-common": "0.0.0-5048",
|
|
25
|
+
"@docusaurus/utils-validation": "0.0.0-5048",
|
|
26
26
|
"fs-extra": "^10.1.0",
|
|
27
27
|
"sitemap": "^7.1.1",
|
|
28
28
|
"tslib": "^2.4.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@docusaurus/types": "0.0.0-
|
|
31
|
+
"@docusaurus/types": "0.0.0-5048"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=14"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f5680d2f2633fbd6594972ae1f4c1ddb1467f9ac"
|
|
41
41
|
}
|
package/src/options.ts
CHANGED
|
@@ -29,7 +29,8 @@ export const DEFAULT_OPTIONS: PluginOptions = {
|
|
|
29
29
|
ignorePatterns: [],
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
const PluginOptionSchema = Joi.object({
|
|
32
|
+
const PluginOptionSchema = Joi.object<PluginOptions>({
|
|
33
|
+
// @ts-expect-error: forbidden
|
|
33
34
|
cacheTime: Joi.forbidden().messages({
|
|
34
35
|
'any.unknown':
|
|
35
36
|
'Option `cacheTime` in sitemap config is deprecated. Please remove it.',
|