mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 12:07:58 +02:00
chore(v2): migrate hapi/joi to joi (#3638)
This commit is contained in:
parent
a64a34f077
commit
69bf68ae57
28 changed files with 58 additions and 79 deletions
|
@ -2,4 +2,4 @@
|
|||
|
||||
exports[`should throw Error in case of invalid feedtype 1`] = `[ValidationError: "feedOptions.type" does not match any of the allowed types]`;
|
||||
|
||||
exports[`should throw Error in case of invalid options 1`] = `[ValidationError: "postsPerPage" must be larger than or equal to 1]`;
|
||||
exports[`should throw Error in case of invalid options 1`] = `[ValidationError: "postsPerPage" must be greater than or equal to 1]`;
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
STATIC_DIR_NAME,
|
||||
DEFAULT_PLUGIN_ID,
|
||||
} from '@docusaurus/core/lib/constants';
|
||||
import {ValidationError} from '@hapi/joi';
|
||||
import {ValidationError} from 'joi';
|
||||
import {take, kebabCase} from 'lodash';
|
||||
|
||||
import {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import * as Joi from '@hapi/joi';
|
||||
import * as Joi from 'joi';
|
||||
import {
|
||||
RemarkPluginsSchema,
|
||||
RehypePluginsSchema,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue