webpack
Version:
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
7 lines • 4.47 kB
JavaScript
/* eslint-disable */
// @ts-nocheck
/*
* This file was automatically generated by "schema-utils".
* DO NOT MODIFY BY HAND.
*/
;module.exports=t,module.exports.default=t;let e={type:"object",additionalProperties:!1,properties:{activeModules:{type:"boolean"},dependencies:{type:"boolean"},dependenciesCount:{type:"number"},entries:{type:"boolean"},estimatedTime:{type:"boolean"},handler:{$ref:"#/definitions/HandlerFunction"},modules:{type:"boolean"},modulesCount:{type:"number"},percentBy:{enum:["entries","modules","dependencies",null]},phaseTimings:{type:"boolean"},profile:{enum:[!0,!1,null]},progressBar:{anyOf:[{enum:["auto"]},{type:"boolean"},{type:"object",additionalProperties:!1,properties:{color:{type:"string"},name:{type:"string"},width:{type:"number",minimum:1}}}]}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){let n=null,s=0;if(s===0){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{let p=s;for(let n in t)if(!r.call(e.properties,n))return o.errors=[{params:{additionalProperty:n}}],!1;if(p===s){if(t.activeModules!==void 0){if("boolean"!=typeof t.activeModules)return o.errors=[{params:{type:"boolean"}}],!1;var i=s===s}else i=!0;if(i){if(t.dependencies!==void 0){if("boolean"!=typeof t.dependencies)return o.errors=[{params:{type:"boolean"}}],!1;i=s===s}else i=!0;if(i){if(t.dependenciesCount!==void 0){if("number"!=typeof t.dependenciesCount)return o.errors=[{params:{type:"number"}}],!1;i=s===s}else i=!0;if(i){if(t.entries!==void 0){if("boolean"!=typeof t.entries)return o.errors=[{params:{type:"boolean"}}],!1;i=s===s}else i=!0;if(i){if(t.estimatedTime!==void 0){if("boolean"!=typeof t.estimatedTime)return o.errors=[{params:{type:"boolean"}}],!1;i=s===s}else i=!0;if(i){if(t.handler!==void 0){if(!(t.handler instanceof Function))return o.errors=[{params:{}}],!1;i=s===s}else i=!0;if(i){if(t.modules!==void 0){if("boolean"!=typeof t.modules)return o.errors=[{params:{type:"boolean"}}],!1;i=s===s}else i=!0;if(i){if(t.modulesCount!==void 0){if("number"!=typeof t.modulesCount)return o.errors=[{params:{type:"number"}}],!1;i=s===s}else i=!0;if(i){if(t.percentBy!==void 0){let r=t.percentBy;if("entries"!==r&&"modules"!==r&&"dependencies"!==r&&r!==null)return o.errors=[{params:{allowedValues:e.properties.percentBy.enum}}],!1;i=s===s}else i=!0;if(i){if(t.phaseTimings!==void 0){if("boolean"!=typeof t.phaseTimings)return o.errors=[{params:{type:"boolean"}}],!1;i=s===s}else i=!0;if(i){if(t.profile!==void 0){let r=t.profile;if(!0!==r&&!1!==r&&r!==null)return o.errors=[{params:{allowedValues:e.properties.profile.enum}}],!1;i=s===s}else i=!0;if(i)if(t.progressBar!==void 0){let r=t.progressBar,p=s,u=s,f=!1,d=s;if("auto"!==r){let r={params:{allowedValues:e.properties.progressBar.anyOf[0].enum}};n===null?n=[r]:n.push(r),s++}var a=d===s;if(!(f=f||a)){let e=s;if("boolean"!=typeof r){let e={params:{type:"boolean"}};n===null?n=[e]:n.push(e),s++}if(a=e===s,!(f=f||a)){let e=s;if(s===e)if(r&&"object"==typeof r&&!Array.isArray(r)){let e=s;for(let e in r)if("color"!==e&&"name"!==e&&"width"!==e){let r={params:{additionalProperty:e}};n===null?n=[r]:n.push(r),s++;break}if(e===s){if(r.color!==void 0){let e=s;if("string"!=typeof r.color){let e={params:{type:"string"}};n===null?n=[e]:n.push(e),s++}var l=e===s}else l=!0;if(l){if(r.name!==void 0){let e=s;if("string"!=typeof r.name){let e={params:{type:"string"}};n===null?n=[e]:n.push(e),s++}l=e===s}else l=!0;if(l)if(r.width!==void 0){let e=r.width,o=s;if(s===o)if("number"==typeof e){if(e<1||isNaN(e)){let e={params:{comparison:">=",limit:1}};n===null?n=[e]:n.push(e),s++}}else{let e={params:{type:"number"}};n===null?n=[e]:n.push(e),s++}l=o===s}else l=!0}}}else{let e={params:{type:"object"}};n===null?n=[e]:n.push(e),s++}a=e===s,f=f||a}}if(!f){let e={params:{}};return n===null?n=[e]:n.push(e),s++,o.errors=n,!1}s=u,n!==null&&(u?n.length=u:n=null),i=p===s}else i=!0}}}}}}}}}}}}}return o.errors=n,s===0}function t(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let r=null,n=0,s=n,i=!1,a=n;o(e,{instancePath,parentData,parentDataProperty,rootData})||(n=(r=r===null?o.errors:r.concat(o.errors)).length);var l=a===n;if(!(i=i||l)){let o=n;if(!(e instanceof Function)){let e={params:{}};r===null?r=[e]:r.push(e),n++}l=o===n,i=i||l}if(!i){let e={params:{}};return r===null?r=[e]:r.push(e),n++,t.errors=r,!1}return n=s,r!==null&&(s?r.length=s:r=null),t.errors=r,n===0}