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 • 4.16 kB
/* eslint-disable */ // @ts-nocheck /* * This file was automatically generated by "schema-utils". * DO NOT MODIFY BY HAND. */ "use strict";module.exports=a,module.exports.default=a;let e={type:"object",additionalProperties:!1,properties:{esModule:{$ref:"#/definitions/CssGeneratorEsModule"},exportType:{$ref:"#/definitions/CssParserExportType"},exportsConvention:{$ref:"#/definitions/CssGeneratorExportsConvention"},exportsOnly:{$ref:"#/definitions/CssGeneratorExportsOnly"},localIdentHashDigest:{$ref:"#/definitions/HashDigest"},localIdentHashDigestLength:{$ref:"#/definitions/HashDigestLength"},localIdentHashFunction:{$ref:"#/definitions/HashFunction"},localIdentHashSalt:{$ref:"#/definitions/HashSalt"},localIdentName:{$ref:"#/definitions/CssGeneratorLocalIdentName"}}},t={enum:["link","text","css-style-sheet","style"]},n={anyOf:[{enum:["as-is","camel-case","camel-case-only","dashes","dashes-only"]},{instanceof:"Function"}]},s=Object.prototype.hasOwnProperty,r=function(e){let t=e.length,n,s=0,r=0;for(;r<t;)s++,(n=e.charCodeAt(r++))>=55296&&n<=56319&&r<t&&(64512&(n=e.charCodeAt(r)))==56320&&r++;return s};function o(a,{instancePath="",parentData,parentDataProperty,rootData=a}={}){let l=null,i=0;if(i===0){if(!a||"object"!=typeof a||Array.isArray(a))return o.errors=[{params:{type:"object"}}],!1;{let d=i;for(let t in a)if(!s.call(e.properties,t))return o.errors=[{params:{additionalProperty:t}}],!1;if(d===i){if(a.esModule!==void 0){if("boolean"!=typeof a.esModule)return o.errors=[{params:{type:"boolean"}}],!1;var p=i===i}else p=!0;if(p){if(a.exportType!==void 0){let e=a.exportType;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{allowedValues:t.enum}}],!1;p=i===i}else p=!0;if(p){if(a.exportsConvention!==void 0){let e=a.exportsConvention,t=i,s=i,r=!1,c=i;if("as-is"!==e&&"camel-case"!==e&&"camel-case-only"!==e&&"dashes"!==e&&"dashes-only"!==e){let e={params:{allowedValues:n.anyOf[0].enum}};l===null?l=[e]:l.push(e),i++}var f=c===i;if(!(r=r||f)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}f=t===i,r=r||f}if(!r){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=s,l!==null&&(s?l.length=s:l=null),p=t===i}else p=!0;if(p){if(a.exportsOnly!==void 0){if("boolean"!=typeof a.exportsOnly)return o.errors=[{params:{type:"boolean"}}],!1;p=i===i}else p=!0;if(p){if(a.localIdentHashDigest!==void 0){if("string"!=typeof a.localIdentHashDigest)return o.errors=[{params:{type:"string"}}],!1;p=i===i}else p=!0;if(p){if(a.localIdentHashDigestLength!==void 0){let e=a.localIdentHashDigestLength;if(i==i){if("number"!=typeof e)return o.errors=[{params:{type:"number"}}],!1;if(e<1||isNaN(e))return o.errors=[{params:{comparison:">=",limit:1}}],!1}p=i===i}else p=!0;if(p){if(a.localIdentHashFunction!==void 0){let e=a.localIdentHashFunction,t=i,n=i,s=!1,f=i;if(i===f)if("string"==typeof e){if(r(e)<1){let e={params:{limit:1}};l===null?l=[e]:l.push(e),i++}}else{let e={params:{type:"string"}};l===null?l=[e]:l.push(e),i++}var c=f===i;if(!(s=s||c)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}c=t===i,s=s||c}if(!s){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=n,l!==null&&(n?l.length=n:l=null),p=t===i}else p=!0;if(p){if(a.localIdentHashSalt!==void 0){let e=a.localIdentHashSalt;if(i==i){if("string"!=typeof e)return o.errors=[{params:{type:"string"}}],!1;if(r(e)<1)return o.errors=[{params:{limit:1}}],!1}p=i===i}else p=!0;if(p)if(a.localIdentName!==void 0){let e=a.localIdentName,t=i,n=i,s=!1,r=i;if("string"!=typeof e){let e={params:{type:"string"}};l===null?l=[e]:l.push(e),i++}var u=r===i;if(!(s=s||u)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}u=t===i,s=s||u}if(!s){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=n,l!==null&&(n?l.length=n:l=null),p=t===i}else p=!0}}}}}}}}}}return o.errors=l,i===0}function a(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;return o(e,{instancePath,parentData,parentDataProperty,rootData})||(n=(t=t===null?o.errors:t.concat(o.errors)).length),a.errors=t,n===0}