UNPKG

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 • 3.79 kB
/* eslint-disable */ // @ts-nocheck /* * This file was automatically generated by "schema-utils". * DO NOT MODIFY BY HAND. */ "use strict";module.exports=n,module.exports.default=n;let t={type:"object",additionalProperties:!1,properties:{context:{type:"string"},source:{instanceof:"Function"},type:{type:"string"},version:{anyOf:[{type:"boolean",enum:[!0]},{type:"string"},{instanceof:"Function"}]}},required:["source"]};function e(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let n=null,s=0,o=s,a=!1,i=s;if("string"!=typeof r){let t={params:{type:"string"}};n===null?n=[t]:n.push(t),s++}var l=i===s;if(!(a=a||l)){let e=s;if(!(r instanceof Function)){let t={params:{}};n===null?n=[t]:n.push(t),s++}if(l=e===s,!(a=a||l)){let e=s;if(s==s)if(r&&"object"==typeof r&&!Array.isArray(r)){let e;if(r.source===void 0&&(e="source")){let t={params:{missingProperty:e}};n===null?n=[t]:n.push(t),s++}else{let e=s;for(let t in r)if("context"!==t&&"source"!==t&&"type"!==t&&"version"!==t){let e={params:{additionalProperty:t}};n===null?n=[e]:n.push(e),s++;break}if(e===s){if(r.context!==void 0){let t=s;if("string"!=typeof r.context){let t={params:{type:"string"}};n===null?n=[t]:n.push(t),s++}var p=t===s}else p=!0;if(p){if(r.source!==void 0){let t=s;if(!(r.source instanceof Function)){let t={params:{}};n===null?n=[t]:n.push(t),s++}p=t===s}else p=!0;if(p){if(r.type!==void 0){let t=s;if("string"!=typeof r.type){let t={params:{type:"string"}};n===null?n=[t]:n.push(t),s++}p=t===s}else p=!0;if(p)if(r.version!==void 0){let e=r.version,o=s,a=s,i=!1,l=s;if("boolean"!=typeof e){let t={params:{type:"boolean"}};n===null?n=[t]:n.push(t),s++}if(!0!==e){let e={params:{allowedValues:t.properties.version.anyOf[0].enum}};n===null?n=[e]:n.push(e),s++}var c=l===s;if(!(i=i||c)){let t=s;if("string"!=typeof e){let t={params:{type:"string"}};n===null?n=[t]:n.push(t),s++}if(c=t===s,!(i=i||c)){let t=s;if(!(e instanceof Function)){let t={params:{}};n===null?n=[t]:n.push(t),s++}c=t===s,i=i||c}}if(i)s=a,n!==null&&(a?n.length=a:n=null);else{let t={params:{}};n===null?n=[t]:n.push(t),s++}p=o===s}else p=!0}}}}}else{let t={params:{type:"object"}};n===null?n=[t]:n.push(t),s++}l=e===s,a=a||l}}if(!a){let t={params:{}};return n===null?n=[t]:n.push(t),s++,e.errors=n,!1}return s=o,n!==null&&(o?n.length=o:n=null),e.errors=n,s===0}function r(t,{instancePath:n="",parentData,parentDataProperty,rootData=t}={}){let s=null,o=0;if(o===0){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{let i;if(t.modules===void 0&&(i="modules"))return r.errors=[{params:{missingProperty:i}}],!1;{let i=o;for(let e in t)if("context"!==e&&"modules"!==e&&"scheme"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(i===o){if(t.context!==void 0){if("string"!=typeof t.context)return r.errors=[{params:{type:"string"}}],!1;var a=o===o}else a=!0;if(a){if(t.modules!==void 0){let i=t.modules,l=o;if(o===l){if(!i||"object"!=typeof i||Array.isArray(i))return r.errors=[{params:{type:"object"}}],!1;for(let t in i){let r=o;if(e(i[t],{instancePath:n+"/modules/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:i,parentDataProperty:t,rootData})||(o=(s=s===null?e.errors:s.concat(e.errors)).length),r!==o)break}}a=l===o}else a=!0;if(a)if(t.scheme!==void 0){if("string"!=typeof t.scheme)return r.errors=[{params:{type:"string"}}],!1;a=o===o}else a=!0}}}}}return r.errors=s,o===0}function n(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){let e=null,s=0,o=s,a=!1,i=null,l=s;if(r(t,{instancePath,parentData,parentDataProperty,rootData})||(s=(e=e===null?r.errors:e.concat(r.errors)).length),l===s&&(a=!0,i=0),!a){let t={params:{passingSchemas:i}};return e===null?e=[t]:e.push(t),s++,n.errors=e,!1}return s=o,e!==null&&(o?e.length=o:e=null),n.errors=e,s===0}