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 • 9.03 kB
JavaScript
/* eslint-disable */
// @ts-nocheck
/*
* This file was automatically generated by "schema-utils".
* DO NOT MODIFY BY HAND.
*/
"use strict";module.exports=d,module.exports.default=d;let r={type:"object",additionalProperties:!1,properties:{as:{$ref:"#/definitions/CssParserAs"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},t={enum:["stylesheet","block-contents"]},e={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,c=a;if(n.validate(r[i],{instancePath:t+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(e=e===null?n.validate.errors:e.concat(n.validate.errors)).length),c===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,s.errors=e,!1}if(a=l,e!==null&&(l?e.length=l:e=null),o!==a)break}}}return s.errors=e,a===0}let i=function(r){let t=r.length,e,a=0,o=0;for(;o<t;)a++,(e=r.charCodeAt(o++))>=55296&&e<=56319&&o<t&&(64512&(e=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let t=r.length;for(let e=0;e<t;e++){let t=r[e];if("string"!=typeof t)return l.errors=[{params:{type:"string"}}],!1;if(i(t)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let c=a;for(let t in r)if("and"!==t&&"glob"!==t&&"not"!==t&&"or"!==t)return p.errors=[{params:{additionalProperty:t}}],!1;if(c===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,c=a;if(s(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(e=e===null?s.errors:e.concat(s.errors)).length),c===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=i,e!==null&&(i?e.length=i:e=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,c=a,u=!1,y=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),a++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),a++}var f=y===a;if(!(u=u||f)){let o=a;l(n,{instancePath:t+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(e=e===null?l.errors:e.concat(l.errors)).length),f=o===a,u=u||f}if(!u){let r={params:{}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=c,e!==null&&(c?e.length=c:e=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,c=a;if(n.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(e=e===null?n.validate.errors:e.concat(n.validate.errors)).length),c===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=i,e!==null&&(i?e.length=i:e=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,c=a;if(s(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(e=e===null?s.errors:e.concat(s.errors)).length),c===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=i,e!==null&&(i?e.length=i:e=null),o=n===a}else o=!0}}}}}return p.errors=e,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let t=null,e=0,a=e,o=!1,n=e;if(!(r instanceof RegExp)){let r={params:{}};t===null?t=[r]:t.push(r),e++}var i=n===e;if(!(o=o||i)){let a=e;if("string"!=typeof r){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}if(i=a===e,!(o=o||i)){let a=e;if(!(r instanceof Function)){let r={params:{}};t===null?t=[r]:t.push(r),e++}if(i=a===e,!(o=o||i)){let a=e;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(e=(t=t===null?p.errors:t.concat(p.errors)).length),i=a===e,!(o=o||i)){let a=e;s(r,{instancePath,parentData,parentDataProperty,rootData})||(e=(t=t===null?s.errors:t.concat(s.errors)).length),i=a===e,o=o||i}}}}if(!o){let r={params:{}};return t===null?t=[r]:t.push(r),e++,f.errors=t,!1}return e=a,t!==null&&(a?t.length=a:t=null),f.errors=t,e===0}function c(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return c.errors=[{params:{type:"object"}}],!1;{let i=n;for(let t in r)if(!a.call(o.properties,t))return c.errors=[{params:{additionalProperty:t}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return c.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:t+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(e=e===null?f.errors:e.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let t=r.fetchPriority;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return c.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:t+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(e=e===null?f.errors:e.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return c.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return c.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return c.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:t+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(e=e===null?f.errors:e.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return c.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return c.errors=e,n===0}function u(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,a=0;if(a===0){if(!Array.isArray(r))return u.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(c(r[n],{instancePath:t+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(e=e===null?c.errors:e.concat(c.errors)).length),o!==a)break}}}return u.errors=e,a===0}function y(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return y.errors=[{params:{type:"object"}}],!1;{let p=i;for(let t in o)if(!a.call(r.properties,t))return y.errors=[{params:{additionalProperty:t}}],!1;if(p===i){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return y.errors=[{params:{allowedValues:t.enum}}],!1;var l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return y.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;u(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?u.errors:s.concat(u.errors)).length),l=r===i}else l=!0}}}}}}}}}}return y.errors=s,i===0}function d(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let t=null,e=0;return y(r,{instancePath,parentData,parentDataProperty,rootData})||(e=(t=t===null?y.errors:t.concat(y.errors)).length),d.errors=t,e===0}