Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@docusaurus/utils-validation

Package Overview
Dependencies
Maintainers
4
Versions
1780
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/utils-validation - npm Package Compare versions

Comparing version 2.0.0-alpha.61 to 2.0.0-alpha.62

lib/validationSchemas.d.ts

7

lib/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc