UNPKG

@signalwire/docusaurus-plugin-llms-txt

Version:

Generate Markdown versions of Docusaurus HTML pages and an llms.txt index file

17 lines (16 loc) 700 B
/** * Minimal security validation for things Joi can't handle * Joi handles type checking, required fields, etc. - we only need custom security checks */ import { VALIDATION_MESSAGES } from '../constants'; import { createValidationError } from '../errors'; /** * Validate user inputs for security-specific concerns that Joi can't handle * Joi already handles: type checking, required fields, array validation, etc. */ export function validateUserInputs(options) { if (typeof options !== 'object' || options === null) { throw createValidationError(VALIDATION_MESSAGES.OBJECT_REQUIRED); } // No path security validation needed since docsRoot and outputDir have been removed }