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.

6 lines 8.15 kB
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";module.exports=c,module.exports.default=c;const 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=Object.prototype.hasOwnProperty,e={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"}}},a={validate:s};function o(r,{instancePath:t="",parentData:e,parentDataProperty:n,rootData:s=r}={}){let i=null,l=0;if(0===l){if(!Array.isArray(r))return o.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let n=0;n<e;n++){const e=l,p=l;let c=!1,f=null;const u=l;if(a.validate(r[n],{instancePath:t+"/"+n,parentData:r,parentDataProperty:n,rootData:s})||(i=null===i?a.validate.errors:i.concat(a.validate.errors),l=i.length),u===l&&(c=!0,f=0),!c){const r={params:{passingSchemas:f}};return null===i?i=[r]:i.push(r),l++,o.errors=i,!1}if(l=p,null!==i&&(p?i.length=p:i=null),e!==l)break}}}return o.errors=i,0===l}function n(r,{instancePath:t="",parentData:e,parentDataProperty:s,rootData:i=r}={}){let l=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;{const e=p;for(const t in r)if("and"!==t&&"not"!==t&&"or"!==t)return n.errors=[{params:{additionalProperty:t}}],!1;if(e===p){if(void 0!==r.and){const e=p,a=p;let s=!1,f=null;const u=p;if(o(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData:i})||(l=null===l?o.errors:l.concat(o.errors),p=l.length),u===p&&(s=!0,f=0),!s){const r={params:{passingSchemas:f}};return null===l?l=[r]:l.push(r),p++,n.errors=l,!1}p=a,null!==l&&(a?l.length=a:l=null);var c=e===p}else c=!0;if(c){if(void 0!==r.not){const e=p,o=p;let s=!1,f=null;const u=p;if(a.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData:i})||(l=null===l?a.validate.errors:l.concat(a.validate.errors),p=l.length),u===p&&(s=!0,f=0),!s){const r={params:{passingSchemas:f}};return null===l?l=[r]:l.push(r),p++,n.errors=l,!1}p=o,null!==l&&(o?l.length=o:l=null),c=e===p}else c=!0;if(c)if(void 0!==r.or){const e=p,a=p;let s=!1,f=null;const u=p;if(o(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData:i})||(l=null===l?o.errors:l.concat(o.errors),p=l.length),u===p&&(s=!0,f=0),!s){const r={params:{passingSchemas:f}};return null===l?l=[r]:l.push(r),p++,n.errors=l,!1}p=a,null!==l&&(a?l.length=a:l=null),c=e===p}else c=!0}}}}return n.errors=l,0===p}function s(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:i=r}={}){let l=null,p=0;const c=p;let f=!1;const u=p;if(!(r instanceof RegExp)){const r={params:{}};null===l?l=[r]:l.push(r),p++}var d=u===p;if(f=f||d,!f){const s=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(d=s===p,f=f||d,!f){const s=p;if(!(r instanceof Function)){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(d=s===p,f=f||d,!f){const s=p;if(n(r,{instancePath:t,parentData:e,parentDataProperty:a,rootData:i})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),d=s===p,f=f||d,!f){const n=p;o(r,{instancePath:t,parentData:e,parentDataProperty:a,rootData:i})||(l=null===l?o.errors:l.concat(o.errors),p=l.length),d=n===p,f=f||d}}}}if(!f){const r={params:{}};return null===l?l=[r]:l.push(r),p++,s.errors=l,!1}return p=c,null!==l&&(c?l.length=c:l=null),s.errors=l,0===p}function i(r,{instancePath:a="",parentData:o,parentDataProperty:n,rootData:l=r}={}){let p=null,c=0;if(0===c){if(!r||"object"!=typeof r||Array.isArray(r))return i.errors=[{params:{type:"object"}}],!1;{const o=c;for(const a in r)if(!t.call(e.properties,a))return i.errors=[{params:{additionalProperty:a}}],!1;if(o===c){if(void 0!==r.as){const t=c;if("string"!=typeof r.as)return i.errors=[{params:{type:"string"}}],!1;var f=t===c}else f=!0;if(f){if(void 0!==r.exclude){const t=c;s(r.exclude,{instancePath:a+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:l})||(p=null===p?s.errors:p.concat(s.errors),c=p.length),f=t===c}else f=!0;if(f){if(void 0!==r.fetchPriority){let t=r.fetchPriority;const e=c;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return i.errors=[{params:{}}],!1;f=e===c}else f=!0;if(f){if(void 0!==r.include){const t=c;s(r.include,{instancePath:a+"/include",parentData:r,parentDataProperty:"include",rootData:l})||(p=null===p?s.errors:p.concat(s.errors),c=p.length),f=t===c}else f=!0;if(f){if(void 0!==r.media){const t=c;if("string"!=typeof r.media)return i.errors=[{params:{type:"string"}}],!1;f=t===c}else f=!0;if(f){if(void 0!==r.prefetch){const t=c;if("boolean"!=typeof r.prefetch)return i.errors=[{params:{type:"boolean"}}],!1;f=t===c}else f=!0;if(f){if(void 0!==r.preload){const t=c;if("boolean"!=typeof r.preload)return i.errors=[{params:{type:"boolean"}}],!1;f=t===c}else f=!0;if(f){if(void 0!==r.test){const t=c;s(r.test,{instancePath:a+"/test",parentData:r,parentDataProperty:"test",rootData:l})||(p=null===p?s.errors:p.concat(s.errors),c=p.length),f=t===c}else f=!0;if(f)if(void 0!==r.type){const t=c;if("string"!=typeof r.type)return i.errors=[{params:{type:"string"}}],!1;f=t===c}else f=!0}}}}}}}}}}return i.errors=p,0===c}function l(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:o=r}={}){let n=null,s=0;if(0===s){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let a=0;a<e;a++){const e=s;if(i(r[a],{instancePath:t+"/"+a,parentData:r,parentDataProperty:a,rootData:o})||(n=null===n?i.errors:n.concat(i.errors),s=n.length),e!==s)break}}}return l.errors=n,0===s}function p(e,{instancePath:a="",parentData:o,parentDataProperty:n,rootData:s=e}={}){let i=null,c=0;if(0===c){if(!e||"object"!=typeof e||Array.isArray(e))return p.errors=[{params:{type:"object"}}],!1;{const o=c;for(const a in e)if(!t.call(r.properties,a))return p.errors=[{params:{additionalProperty:a}}],!1;if(o===c){if(void 0!==e.as){let r=e.as;const t=c;if("stylesheet"!==r&&"block-contents"!==r)return p.errors=[{params:{}}],!1;var f=t===c}else f=!0;if(f){if(void 0!==e.customMedia){const r=c;if("boolean"!=typeof e.customMedia)return p.errors=[{params:{type:"boolean"}}],!1;f=r===c}else f=!0;if(f){if(void 0!==e.customSelectors){const r=c;if("boolean"!=typeof e.customSelectors)return p.errors=[{params:{type:"boolean"}}],!1;f=r===c}else f=!0;if(f){if(void 0!==e.exportType){let r=e.exportType;const t=c;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return p.errors=[{params:{}}],!1;f=t===c}else f=!0;if(f){if(void 0!==e.fontPreload){const r=c;if("boolean"!=typeof e.fontPreload)return p.errors=[{params:{type:"boolean"}}],!1;f=r===c}else f=!0;if(f){if(void 0!==e.import){const r=c;if("boolean"!=typeof e.import)return p.errors=[{params:{type:"boolean"}}],!1;f=r===c}else f=!0;if(f){if(void 0!==e.namedExports){const r=c;if("boolean"!=typeof e.namedExports)return p.errors=[{params:{type:"boolean"}}],!1;f=r===c}else f=!0;if(f){if(void 0!==e.url){const r=c;if("boolean"!=typeof e.url)return p.errors=[{params:{type:"boolean"}}],!1;f=r===c}else f=!0;if(f)if(void 0!==e.urlHints){const r=c;l(e.urlHints,{instancePath:a+"/urlHints",parentData:e,parentDataProperty:"urlHints",rootData:s})||(i=null===i?l.errors:i.concat(l.errors),c=i.length),f=r===c}else f=!0}}}}}}}}}}return p.errors=i,0===c}function c(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:o=r}={}){let n=null,s=0;return p(r,{instancePath:t,parentData:e,parentDataProperty:a,rootData:o})||(n=null===n?p.errors:n.concat(p.errors),s=n.length),c.errors=n,0===s}