@docusaurus/utils-validation
Advanced tools
Comparing version 2.0.0-alpha.61 to 2.0.0-alpha.62
@@ -1,2 +0,1 @@ | ||
/// <reference types="hapi__joi" /> | ||
/** | ||
@@ -8,6 +7,4 @@ * Copyright (c) Facebook, Inc. and its affiliates. | ||
*/ | ||
import * as Joi from '@hapi/joi'; | ||
export declare const RemarkPluginsSchema: Joi.ArraySchema; | ||
export declare const RehypePluginsSchema: Joi.ArraySchema; | ||
export declare const AdmonitionsSchema: Joi.ObjectSchema<any>; | ||
export * from './validationUtils'; | ||
export * from './validationSchemas'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
@@ -9,31 +15,7 @@ if (k2 === undefined) k2 = k; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AdmonitionsSchema = exports.RehypePluginsSchema = exports.RemarkPluginsSchema = void 0; | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
const Joi = __importStar(require("@hapi/joi")); | ||
const MarkdownPluginsSchema = Joi.array() | ||
.items(Joi.array() | ||
// TODO, this allows [config,fn] too? | ||
.items(Joi.function().required(), Joi.object().required()) | ||
.length(2), Joi.function()) | ||
.default([]); | ||
exports.RemarkPluginsSchema = MarkdownPluginsSchema; | ||
exports.RehypePluginsSchema = MarkdownPluginsSchema; | ||
exports.AdmonitionsSchema = Joi.object().default({}); | ||
__exportStar(require("./validationUtils"), exports); | ||
__exportStar(require("./validationSchemas"), exports); |
{ | ||
"name": "@docusaurus/utils-validation", | ||
"version": "2.0.0-alpha.61", | ||
"version": "2.0.0-alpha.62", | ||
"description": "Node validation utility functions for Docusaurus packages", | ||
@@ -19,3 +19,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@hapi/joi": "17.1.1" | ||
"@hapi/joi": "17.1.1", | ||
"chalk": "^3.0.0" | ||
}, | ||
@@ -25,3 +26,3 @@ "engines": { | ||
}, | ||
"gitHead": "0b5432e9dfed6fc46fd181a9be5f0b33251e17f4" | ||
"gitHead": "d66d1a238687aa47bf3951ecd50cfa0940f221b3" | ||
} |
@@ -7,17 +7,4 @@ /** | ||
*/ | ||
import * as Joi from '@hapi/joi'; | ||
const MarkdownPluginsSchema = Joi.array() | ||
.items( | ||
Joi.array() | ||
// TODO, this allows [config,fn] too? | ||
.items(Joi.function().required(), Joi.object().required()) | ||
.length(2), | ||
Joi.function(), | ||
) | ||
.default([]); | ||
export const RemarkPluginsSchema = MarkdownPluginsSchema; | ||
export const RehypePluginsSchema = MarkdownPluginsSchema; | ||
export const AdmonitionsSchema = Joi.object().default({}); | ||
export * from './validationUtils'; | ||
export * from './validationSchemas'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
468299
18
410
2
2
1
+ Addedchalk@^3.0.0
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)