2024-02-21 16:00:24 +08:00
|
|
|
"use strict";function r(t,{instancePath:e="",parentData:n,parentDataProperty:a,rootData:o=t}={}){let s=null,l=0;if(0===l){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=l;for(const e in t)if("exportsConvention"!==e&&"exportsOnly"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(e===l){if(void 0!==t.exportsConvention){let e=t.exportsConvention;const n=l,a=l;let o=!1;const u=l;if("asIs"!==e&&"camelCase"!==e&&"camelCaseOnly"!==e&&"dashes"!==e&&"dashesOnly"!==e){const r={params:{}};null===s?s=[r]:s.push(r),l++}var p=u===l;if(o=o||p,!o){const r=l;if(!(e instanceof Function)){const r={params:{}};null===s?s=[r]:s.push(r),l++}p=r===l,o=o||p}if(!o){const t={params:{}};return null===s?s=[t]:s.push(t),l++,r.errors=s,!1}l=a,null!==s&&(a?s.length=a:s=null);var i=n===l}else i=!0;if(i)if(void 0!==t.exportsOnly){const e=l;if("boolean"!=typeof t.exportsOnly)return r.errors=[{params:{type:"boolean"}}],!1;i=e===l}else i=!0}}}return r.errors=s,0===l}function t(e,{instancePath:n="",parentData:a,parentDataProperty:o,rootData:s=e}={}){let l=null,p=0;return r(e,{instancePath:n,parentData:a,parentDataProperty:o,rootData:s})||(l=null===l?r.errors:l.concat(r.errors),p=l.length),t.errors=l,0===p}module.exports=t,module.exports.default=t;
|