check-types-mini 8.0.18 → 8.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name check-types-mini
|
|
3
3
|
* @fileoverview Validate options object
|
|
4
|
-
* @version 8.0.
|
|
4
|
+
* @version 8.0.19
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/check-types-mini/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import i from"type-detect";import{traverse as w}from"ast-monkey-traverse";import{arrayiffy as N}from"arrayiffy-if-string";import E from"object-path";import{isMatch as S}from"matcher";import{isPlainObject as $,pullAll as
|
|
10
|
+
import i from"type-detect";import{traverse as w}from"ast-monkey-traverse";import{arrayiffy as N}from"arrayiffy-if-string";import E from"object-path";import{isMatch as S}from"matcher";import{isPlainObject as $,pullAll as h,intersection as k}from"codsen-utils";var j="8.0.19";var R=j,v={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function T(a,r,p){function y(s){return s!=null}function b(s,l){return typeof l=="string"&&(l=N(l)),Array.from(s).filter(n=>!l.some(t=>S(n,t,{caseSensitive:!0})))}let V=Object.prototype.hasOwnProperty,A=["any","anything","every","everything","all","whatever","whatevs"];if(!y(a))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let e={...v,...p};if(typeof e.ignoreKeys=="string"&&(e.ignoreKeys=[e.ignoreKeys]),typeof e.ignorePaths=="string"&&(e.ignorePaths=[e.ignorePaths]),typeof e.acceptArraysIgnore=="string"&&(e.acceptArraysIgnore=[e.acceptArraysIgnore]),e.msg=`${e.msg}`.trim(),e.msg[e.msg.length-1]===":"&&(e.msg=e.msg.slice(0,e.msg.length-1).trim()),$(e.schema))Object.keys(e.schema).forEach(s=>{if($(e.schema[s])){let l={};w(e.schema[s],(n,t,m)=>{let u=t!==void 0?t:n;return!Array.isArray(u)&&!$(u)&&(l[`${s}.${m.path}`]=u),u}),delete e.schema[s],e.schema={...e.schema,...l}}}),Object.keys(e.schema).forEach(s=>{Array.isArray(e.schema[s])||(e.schema[s]=[e.schema[s]]),e.schema[s]=e.schema[s].map(l=>`${l}`.toLowerCase().trim())});else if(e.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(e.schema,null,0)} which is not object but ${typeof e.schema}`);if(y(r)||(r={}),e.enforceStrictKeyset)if(y(e.schema)&&Object.keys(e.schema).length){if(r&&b(h(Object.keys(a),Object.keys(r).concat(Object.keys(e.schema))),e.ignoreKeys).length){let s=h(Object.keys(a),Object.keys(r).concat(Object.keys(e.schema)));throw new TypeError(`${e.msg}: ${e.optsVarName}.enforceStrictKeyset is on and the following key${s.length>1?"s":""} ${s.length>1?"are":"is"} not covered by schema and/or reference objects: ${s.join(", ")}`)}}else if($(r)&&Object.keys(r).length){if(b(h(Object.keys(a),Object.keys(r)),e.ignoreKeys).length!==0){let s=h(Object.keys(a),Object.keys(r));throw new TypeError(`${e.msg}: The input object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not covered by the reference object: ${s.join(", ")}`)}else if(b(h(Object.keys(r),Object.keys(a)),e.ignoreKeys).length!==0){let s=h(Object.keys(r),Object.keys(a));throw new TypeError(`${e.msg}: The reference object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not present in the input object: ${s.join(", ")}`)}}else throw new TypeError(`${e.msg}: Both ${e.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via resolvedOpts.enforceStrictKeyset!`);let g=[];w(a,(s,l,n)=>{let t=l,m=s;if(n.parentType==="array"&&(m=void 0,t=s),Array.isArray(g)&&g.length&&g.some(o=>n.path.startsWith(o))||m&&e.ignoreKeys.some(o=>m&&S(m,o))||e.ignorePaths.some(o=>S(n.path,o)))return t;let u=!(!$(t)&&!Array.isArray(t)&&Array.isArray(n.parent)),f=!1;$(e.schema)&&V.call(e.schema,n.path)&&(f=!0);let d=!1;if($(r)&&E.has(r,n.path)&&(d=!0),e.enforceStrictKeyset&&u&&!f&&!d)throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} is neither covered by reference object (second input argument), nor ${e.optsVarName}.schema! To stop this error, turn off ${e.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${e.optsVarName}.schema).
|
|
11
11
|
|
|
12
12
|
Debug info:
|
|
13
13
|
|
|
@@ -21,4 +21,4 @@ resolvedOpts = ${JSON.stringify(e,null,4)}
|
|
|
21
21
|
|
|
22
22
|
current = ${JSON.stringify(t,null,4)}
|
|
23
23
|
|
|
24
|
-
`);if(f){let o=N(e.schema[n.path]).map(c=>`${c}`.toLowerCase());if(E.set(e.schema,n.path,o),k(o,A).length)
|
|
24
|
+
`);if(f){let o=N(e.schema[n.path]).map(c=>`${c}`.toLowerCase());if(E.set(e.schema,n.path,o),k(o,A).length)g.push(n.path);else if(t!==!0&&t!==!1&&!o.includes(i(t).toLowerCase())||(t===!0||t===!1)&&!o.includes(String(t))&&!o.includes("boolean"))if(Array.isArray(t)&&e.acceptArrays){for(let c=0,O=t.length;c<O;c++)if(!o.includes(i(t[c]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path}.${c}, the ${c}th element (equal to ${JSON.stringify(t[c],null,0)}) is of a type ${i(t[c]).toLowerCase()}, but only the following are allowed by the ${e.optsVarName}.schema: ${o.join(", ")}`)}else throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to ${i(t)!=="string"?'"':""}${JSON.stringify(t,null,0)}${i(t)!=="string"?'"':""} (type: ${i(t).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(o,null,0)})`)}else if(r&&$(r)&&d){let o=E.get(r,n.path);if(e.acceptArrays&&Array.isArray(t)&&!e.acceptArraysIgnore.includes(s)){if(!t.every(O=>i(O).toLowerCase()===i(r[s]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to be array, but not all of its elements are ${i(r[s]).toLowerCase()}-type`)}else if(i(t)!==i(o))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to ${i(t).toLowerCase()==="string"?"":'"'}${JSON.stringify(t,null,0)}${i(t).toLowerCase()==="string"?"":'"'} which is not ${i(o).toLowerCase()} but ${i(t).toLowerCase()}`)}return t})}function M(a,r,p){T(a,r,p)}export{M as checkTypesMini,v as defaults,R as version};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name check-types-mini
|
|
3
3
|
* @fileoverview Validate options object
|
|
4
|
-
* @version 8.0.
|
|
4
|
+
* @version 8.0.19
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/check-types-mini/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var checkTypesMini=(()=>{var oe=Object.create;var T=Object.defineProperty,ae=Object.defineProperties,le=Object.getOwnPropertyDescriptor,fe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable;var _=(r,t,a)=>t in r?T(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,v=(r,t)=>{for(var a in t||(t={}))G.call(t,a)&&_(r,a,t[a]);if(Q)for(var a of Q(t))pe.call(t,a)&&_(r,a,t[a]);return r},x=(r,t)=>ae(r,fe(t));var C=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ye=(r,t)=>{for(var a in t)T(r,a,{get:t[a],enumerable:!0})},q=(r,t,a,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of ue(t))!G.call(r,u)&&u!==a&&T(r,u,{get:()=>t[u],enumerable:!(g=le(t,u))||g.enumerable});return r};var P=(r,t,a)=>(a=r!=null?oe(ce(r)):{},q(t||!r||!r.__esModule?T(a,"default",{value:r,enumerable:!0}):a,r)),me=r=>q(T({},"__esModule",{value:!0}),r);var Y=C((M,L)=>{(function(r,t){typeof M=="object"&&typeof L<"u"?L.exports=t():typeof define=="function"&&define.amd?define(t):r.typeDetect=t()})(M,function(){"use strict";var r=typeof Promise=="function",t=typeof self=="object"?self:global,a=typeof Symbol<"u",g=typeof Map<"u",u=typeof Set<"u",m=typeof WeakMap<"u",f=typeof WeakSet<"u",e=typeof DataView<"u",y=a&&typeof Symbol.iterator<"u",s=a&&typeof Symbol.toStringTag<"u",o=u&&typeof Set.prototype.entries=="function",i=g&&typeof Map.prototype.entries=="function",p=o&&Object.getPrototypeOf(new Set().entries()),b=i&&Object.getPrototypeOf(new Map().entries()),S=y&&typeof Array.prototype[Symbol.iterator]=="function",E=S&&Object.getPrototypeOf([][Symbol.iterator]()),c=y&&typeof String.prototype[Symbol.iterator]=="function",n=c&&Object.getPrototypeOf(""[Symbol.iterator]()),l=8,$=-1;function d(h){var W=typeof h;if(W!=="object")return W;if(h===null)return"null";if(h===t)return"global";if(Array.isArray(h)&&(s===!1||!(Symbol.toStringTag in h)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&h===window.location)return"Location";if(typeof window.document=="object"&&h===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&h===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&h===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&h instanceof window.HTMLElement){if(h.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(h.tagName==="TD")return"HTMLTableDataCellElement";if(h.tagName==="TH")return"HTMLTableHeaderCellElement"}}var U=s&&h[Symbol.toStringTag];if(typeof U=="string")return U;var O=Object.getPrototypeOf(h);return O===RegExp.prototype?"RegExp":O===Date.prototype?"Date":r&&O===Promise.prototype?"Promise":u&&O===Set.prototype?"Set":g&&O===Map.prototype?"Map":f&&O===WeakSet.prototype?"WeakSet":m&&O===WeakMap.prototype?"WeakMap":e&&O===DataView.prototype?"DataView":g&&O===b?"Map Iterator":u&&O===p?"Set Iterator":S&&O===E?"Array Iterator":c&&O===n?"String Iterator":O===null?"Object":Object.prototype.toString.call(h).slice(l,$)}return d})});var J=C((De,z)=>{"use strict";z.exports=ge;function N(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function ge(r){if(r=r||{},r.circles)return $e(r);return r.proto?g:a;function t(u,m){for(var f=Object.keys(u),e=new Array(f.length),y=0;y<f.length;y++){var s=f[y],o=u[s];typeof o!="object"||o===null?e[s]=o:o instanceof Date?e[s]=new Date(o):ArrayBuffer.isView(o)?e[s]=N(o):e[s]=m(o)}return e}function a(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return t(u,a);if(u instanceof Map)return new Map(t(Array.from(u),a));if(u instanceof Set)return new Set(t(Array.from(u),a));var m={};for(var f in u)if(Object.hasOwnProperty.call(u,f)!==!1){var e=u[f];typeof e!="object"||e===null?m[f]=e:e instanceof Date?m[f]=new Date(e):e instanceof Map?m[f]=new Map(t(Array.from(e),a)):e instanceof Set?m[f]=new Set(t(Array.from(e),a)):ArrayBuffer.isView(e)?m[f]=N(e):m[f]=a(e)}return m}function g(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return t(u,g);if(u instanceof Map)return new Map(t(Array.from(u),g));if(u instanceof Set)return new Set(t(Array.from(u),g));var m={};for(var f in u){var e=u[f];typeof e!="object"||e===null?m[f]=e:e instanceof Date?m[f]=new Date(e):e instanceof Map?m[f]=new Map(t(Array.from(e),g)):e instanceof Set?m[f]=new Set(t(Array.from(e),g)):ArrayBuffer.isView(e)?m[f]=N(e):m[f]=g(e)}return m}}function $e(r){var t=[],a=[];return r.proto?m:u;function g(f,e){for(var y=Object.keys(f),s=new Array(y.length),o=0;o<y.length;o++){var i=y[o],p=f[i];if(typeof p!="object"||p===null)s[i]=p;else if(p instanceof Date)s[i]=new Date(p);else if(ArrayBuffer.isView(p))s[i]=N(p);else{var b=t.indexOf(p);b!==-1?s[i]=a[b]:s[i]=e(p)}}return s}function u(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return g(f,u);if(f instanceof Map)return new Map(g(Array.from(f),u));if(f instanceof Set)return new Set(g(Array.from(f),u));var e={};t.push(f),a.push(e);for(var y in f)if(Object.hasOwnProperty.call(f,y)!==!1){var s=f[y];if(typeof s!="object"||s===null)e[y]=s;else if(s instanceof Date)e[y]=new Date(s);else if(s instanceof Map)e[y]=new Map(g(Array.from(s),u));else if(s instanceof Set)e[y]=new Set(g(Array.from(s),u));else if(ArrayBuffer.isView(s))e[y]=N(s);else{var o=t.indexOf(s);o!==-1?e[y]=a[o]:e[y]=u(s)}}return t.pop(),a.pop(),e}function m(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return g(f,m);if(f instanceof Map)return new Map(g(Array.from(f),m));if(f instanceof Set)return new Set(g(Array.from(f),m));var e={};t.push(f),a.push(e);for(var y in f){var s=f[y];if(typeof s!="object"||s===null)e[y]=s;else if(s instanceof Date)e[y]=new Date(s);else if(s instanceof Map)e[y]=new Map(g(Array.from(s),m));else if(s instanceof Set)e[y]=new Set(g(Array.from(s),m));else if(ArrayBuffer.isView(s))e[y]=N(s);else{var o=t.indexOf(s);o!==-1?e[y]=a[o]:e[y]=m(s)}}return t.pop(),a.pop(),e}}});var re=C((te,V)=>{(function(r,t){"use strict";typeof V=="object"&&typeof V.exports=="object"?V.exports=t():typeof define=="function"&&define.amd?define([],t):r.objectPath=t()})(te,function(){"use strict";var r=Object.prototype.toString;function t(o,i){return o==null?!1:Object.prototype.hasOwnProperty.call(o,i)}function a(o){if(!o||m(o)&&o.length===0)return!0;if(typeof o!="string"){for(var i in o)if(t(o,i))return!1;return!0}return!1}function g(o){return r.call(o)}function u(o){return typeof o=="object"&&g(o)==="[object Object]"}var m=Array.isArray||function(o){return r.call(o)==="[object Array]"};function f(o){return typeof o=="boolean"||g(o)==="[object Boolean]"}function e(o){var i=parseInt(o);return i.toString()===o?i:o}function y(o){o=o||{};var i=function(c){return Object.keys(i).reduce(function(n,l){return l==="create"||typeof i[l]=="function"&&(n[l]=i[l].bind(i,c)),n},{})},p;o.includeInheritedProps?p=function(){return!0}:p=function(c,n){return typeof n=="number"&&Array.isArray(c)||t(c,n)};function b(c,n){if(p(c,n))return c[n]}var S;o.includeInheritedProps?S=function(c,n){typeof n!="string"&&typeof n!="number"&&(n=String(n));var l=b(c,n);if(n==="__proto__"||n==="prototype"||n==="constructor"&&typeof l=="function")throw new Error("For security reasons, object's magic properties cannot be set");return l}:S=function(c,n){return b(c,n)};function E(c,n,l,$){if(typeof n=="number"&&(n=[n]),!n||n.length===0)return c;if(typeof n=="string")return E(c,n.split(".").map(e),l,$);var d=n[0],h=S(c,d);return n.length===1?((h===void 0||!$)&&(c[d]=l),h):(h===void 0&&(typeof n[1]=="number"?c[d]=[]:c[d]={}),E(c[d],n.slice(1),l,$))}return i.has=function(c,n){if(typeof n=="number"?n=[n]:typeof n=="string"&&(n=n.split(".")),!n||n.length===0)return!!c;for(var l=0;l<n.length;l++){var $=e(n[l]);if(typeof $=="number"&&m(c)&&$<c.length||(o.includeInheritedProps?$ in Object(c):t(c,$)))c=c[$];else return!1}return!0},i.ensureExists=function(c,n,l){return E(c,n,l,!0)},i.set=function(c,n,l,$){return E(c,n,l,$)},i.insert=function(c,n,l,$){var d=i.get(c,n);$=~~$,m(d)||(d=[],i.set(c,n,d)),d.splice($,0,l)},i.empty=function(c,n){if(!a(n)&&c!=null){var l,$;if(l=i.get(c,n)){if(typeof l=="string")return i.set(c,n,"");if(f(l))return i.set(c,n,!1);if(typeof l=="number")return i.set(c,n,0);if(m(l))l.length=0;else if(u(l))for($ in l)p(l,$)&&delete l[$];else return i.set(c,n,null)}}},i.push=function(c,n){var l=i.get(c,n);m(l)||(l=[],i.set(c,n,l)),l.push.apply(l,Array.prototype.slice.call(arguments,2))},i.coalesce=function(c,n,l){for(var $,d=0,h=n.length;d<h;d++)if(($=i.get(c,n[d]))!==void 0)return $;return l},i.get=function(c,n,l){if(typeof n=="number"&&(n=[n]),!n||n.length===0)return c;if(c==null)return l;if(typeof n=="string")return i.get(c,n.split("."),l);var $=e(n[0]),d=S(c,$);return d===void 0?l:n.length===1?d:i.get(c[$],n.slice(1),l)},i.del=function(n,l){if(typeof l=="number"&&(l=[l]),n==null||a(l))return n;if(typeof l=="string")return i.del(n,l.split("."));var $=e(l[0]);if(S(n,$),!p(n,$))return n;if(l.length===1)m(n)?n.splice($,1):delete n[$];else return i.del(n[$],l.slice(1));return n},i}var s=y();return s.create=y,s.withInheritedProps=y({includeInheritedProps:!0}),s})});var Ae={};ye(Ae,{checkTypesMini:()=>ve,defaults:()=>ie,version:()=>Se});var w=P(Y(),1);var ee=P(J(),1);var Z=P(J(),1);var Ne=(0,Z.default)();function A(r){if(r==null||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}function D(r=[],t=[]){return!r||!Array.isArray(r)||!r.length?[]:!t||!Array.isArray(t)||!t.length?r:r.filter(a=>!t.includes(a))}function X(r=[],t=[]){return!r||!t?[]:Array.from(new Set(Array.from(r).filter(a=>new Set(t).has(a))))}function he(r){if(r.includes(".")){let t=r.lastIndexOf(".");if(!r.slice(0,t).includes("."))return r.slice(0,t);for(let a=t-1;a--;)if(r[a]===".")return r.slice(a+1,t)}return null}var k=he;var K=(0,ee.default)();function B(r,t){let a={now:!1};function g(u,m,f,e){let y=K(u),s,o=v({depth:-1,path:""},f);if(o.depth+=1,Array.isArray(y))for(let i=0,p=y.length;i<p&&!e.now;i++){let b=o.path?`${o.path}.${i}`:`${i}`;y[i]!==void 0?(o.parent=K(y),o.parentType="array",o.parentKey=k(b),s=g(m(y[i],void 0,x(v({},o),{path:b}),e),m,x(v({},o),{path:b}),e),Number.isNaN(s)&&i<y.length?(y.splice(i,1),i-=1):y[i]=s):y.splice(i,1)}else if(A(y))for(let i in y){if(e.now&&i!=null)break;let p=o.path?`${o.path}.${i}`:i;o.depth===0&&i!=null&&(o.topmostKey=i),o.parent=K(y),o.parentType="object",o.parentKey=k(p),s=g(m(i,y[i],x(v({},o),{path:p}),e),m,x(v({},o),{path:p}),e),Number.isNaN(s)?delete y[i]:y[i]=s}return y}return g(r,t,{},a)}function H(r){return typeof r!="string"?r:r.length?[r]:[]}var I=P(re(),1);function R(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var F=new Map,ne=(r,t)=>{if(!Array.isArray(r))switch(typeof r){case"string":r=[r];break;case"undefined":r=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof r}'`)}return r.filter(a=>{if(typeof a!="string"){if(typeof a>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof a}' in the array`)}return!0})},de=(r,t)=>{t=v({caseSensitive:!1},t);let a=r+JSON.stringify(t);if(F.has(a))return F.get(a);let g=r[0]==="!";g&&(r=r.slice(1)),r=R(r).replace(/\\\*/g,"[\\s\\S]*");let u=new RegExp(`^${r}$`,t.caseSensitive?"":"i");return u.negated=g,F.set(a,u),u},be=(r,t,a,g)=>{if(r=ne(r,"inputs"),t=ne(t,"patterns"),t.length===0)return[];t=t.map(f=>de(f,a));let{allPatterns:u}=a||{},m=[];for(let f of r){let e,y=[...t].fill(!1);for(let[s,o]of t.entries())if(o.test(f)&&(y[s]=!0,e=!o.negated,!e))break;if(!(e===!1||e===void 0&&t.some(s=>!s.negated)||u&&y.some((s,o)=>!s&&!t[o].negated))&&(m.push(f),g))break}return m};function j(r,t,a){return be(r,t,a,!0).length>0}var se="8.0.18";var Se=se,ie={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function Oe(r,t,a){function g(s){return s!=null}function u(s,o){return typeof o=="string"&&(o=H(o)),Array.from(s).filter(i=>!o.some(p=>j(i,p,{caseSensitive:!0})))}let m=Object.prototype.hasOwnProperty,f=["any","anything","every","everything","all","whatever","whatevs"];if(!g(r))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let e=v(v({},ie),a);if(typeof e.ignoreKeys=="string"&&(e.ignoreKeys=[e.ignoreKeys]),typeof e.ignorePaths=="string"&&(e.ignorePaths=[e.ignorePaths]),typeof e.acceptArraysIgnore=="string"&&(e.acceptArraysIgnore=[e.acceptArraysIgnore]),e.msg=`${e.msg}`.trim(),e.msg[e.msg.length-1]===":"&&(e.msg=e.msg.slice(0,e.msg.length-1).trim()),A(e.schema))Object.keys(e.schema).forEach(s=>{if(A(e.schema[s])){let o={};B(e.schema[s],(i,p,b)=>{let S=p!==void 0?p:i;return!Array.isArray(S)&&!A(S)&&(o[`${s}.${b.path}`]=S),S}),delete e.schema[s],e.schema=v(v({},e.schema),o)}}),Object.keys(e.schema).forEach(s=>{Array.isArray(e.schema[s])||(e.schema[s]=[e.schema[s]]),e.schema[s]=e.schema[s].map(o=>`${o}`.toLowerCase().trim())});else if(e.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(e.schema,null,0)} which is not object but ${typeof e.schema}`);if(g(t)||(t={}),e.enforceStrictKeyset)if(g(e.schema)&&Object.keys(e.schema).length){if(t&&u(D(Object.keys(r),Object.keys(t).concat(Object.keys(e.schema))),e.ignoreKeys).length){let s=D(Object.keys(r),Object.keys(t).concat(Object.keys(e.schema)));throw new TypeError(`${e.msg}: ${e.optsVarName}.enforceStrictKeyset is on and the following key${s.length>1?"s":""} ${s.length>1?"are":"is"} not covered by schema and/or reference objects: ${s.join(", ")}`)}}else if(A(t)&&Object.keys(t).length){if(u(D(Object.keys(r),Object.keys(t)),e.ignoreKeys).length!==0){let s=D(Object.keys(r),Object.keys(t));throw new TypeError(`${e.msg}: The input object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not covered by the reference object: ${s.join(", ")}`)}else if(u(D(Object.keys(t),Object.keys(r)),e.ignoreKeys).length!==0){let s=D(Object.keys(t),Object.keys(r));throw new TypeError(`${e.msg}: The reference object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not present in the input object: ${s.join(", ")}`)}}else throw new TypeError(`${e.msg}: Both ${e.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via resolvedOpts.enforceStrictKeyset!`);let y=[];B(r,(s,o,i)=>{let p=o,b=s;if(i.parentType==="array"&&(b=void 0,p=s),Array.isArray(y)&&y.length&&y.some(n=>i.path.startsWith(n))||b&&e.ignoreKeys.some(n=>b&&j(b,n))||e.ignorePaths.some(n=>j(i.path,n)))return p;let S=!(!A(p)&&!Array.isArray(p)&&Array.isArray(i.parent)),E=!1;A(e.schema)&&m.call(e.schema,i.path)&&(E=!0);let c=!1;if(A(t)&&I.default.has(t,i.path)&&(c=!0),e.enforceStrictKeyset&&S&&!E&&!c)throw new TypeError(`${e.msg}: ${e.optsVarName}.${i.path} is neither covered by reference object (second input argument), nor ${e.optsVarName}.schema! To stop this error, turn off ${e.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${e.optsVarName}.schema).
|
|
10
|
+
"use strict";var checkTypesMini=(()=>{var oe=Object.create;var T=Object.defineProperty,ae=Object.defineProperties,le=Object.getOwnPropertyDescriptor,fe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable;var _=(r,t,a)=>t in r?T(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,v=(r,t)=>{for(var a in t||(t={}))G.call(t,a)&&_(r,a,t[a]);if(Q)for(var a of Q(t))pe.call(t,a)&&_(r,a,t[a]);return r},x=(r,t)=>ae(r,fe(t));var C=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ye=(r,t)=>{for(var a in t)T(r,a,{get:t[a],enumerable:!0})},q=(r,t,a,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of ue(t))!G.call(r,u)&&u!==a&&T(r,u,{get:()=>t[u],enumerable:!(g=le(t,u))||g.enumerable});return r};var P=(r,t,a)=>(a=r!=null?oe(ce(r)):{},q(t||!r||!r.__esModule?T(a,"default",{value:r,enumerable:!0}):a,r)),me=r=>q(T({},"__esModule",{value:!0}),r);var Y=C((M,L)=>{(function(r,t){typeof M=="object"&&typeof L<"u"?L.exports=t():typeof define=="function"&&define.amd?define(t):r.typeDetect=t()})(M,function(){"use strict";var r=typeof Promise=="function",t=typeof self=="object"?self:global,a=typeof Symbol<"u",g=typeof Map<"u",u=typeof Set<"u",m=typeof WeakMap<"u",f=typeof WeakSet<"u",e=typeof DataView<"u",y=a&&typeof Symbol.iterator<"u",s=a&&typeof Symbol.toStringTag<"u",o=u&&typeof Set.prototype.entries=="function",i=g&&typeof Map.prototype.entries=="function",p=o&&Object.getPrototypeOf(new Set().entries()),b=i&&Object.getPrototypeOf(new Map().entries()),S=y&&typeof Array.prototype[Symbol.iterator]=="function",E=S&&Object.getPrototypeOf([][Symbol.iterator]()),c=y&&typeof String.prototype[Symbol.iterator]=="function",n=c&&Object.getPrototypeOf(""[Symbol.iterator]()),l=8,$=-1;function d(h){var W=typeof h;if(W!=="object")return W;if(h===null)return"null";if(h===t)return"global";if(Array.isArray(h)&&(s===!1||!(Symbol.toStringTag in h)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&h===window.location)return"Location";if(typeof window.document=="object"&&h===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&h===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&h===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&h instanceof window.HTMLElement){if(h.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(h.tagName==="TD")return"HTMLTableDataCellElement";if(h.tagName==="TH")return"HTMLTableHeaderCellElement"}}var U=s&&h[Symbol.toStringTag];if(typeof U=="string")return U;var O=Object.getPrototypeOf(h);return O===RegExp.prototype?"RegExp":O===Date.prototype?"Date":r&&O===Promise.prototype?"Promise":u&&O===Set.prototype?"Set":g&&O===Map.prototype?"Map":f&&O===WeakSet.prototype?"WeakSet":m&&O===WeakMap.prototype?"WeakMap":e&&O===DataView.prototype?"DataView":g&&O===b?"Map Iterator":u&&O===p?"Set Iterator":S&&O===E?"Array Iterator":c&&O===n?"String Iterator":O===null?"Object":Object.prototype.toString.call(h).slice(l,$)}return d})});var J=C((De,z)=>{"use strict";z.exports=ge;function N(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function ge(r){if(r=r||{},r.circles)return $e(r);return r.proto?g:a;function t(u,m){for(var f=Object.keys(u),e=new Array(f.length),y=0;y<f.length;y++){var s=f[y],o=u[s];typeof o!="object"||o===null?e[s]=o:o instanceof Date?e[s]=new Date(o):ArrayBuffer.isView(o)?e[s]=N(o):e[s]=m(o)}return e}function a(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return t(u,a);if(u instanceof Map)return new Map(t(Array.from(u),a));if(u instanceof Set)return new Set(t(Array.from(u),a));var m={};for(var f in u)if(Object.hasOwnProperty.call(u,f)!==!1){var e=u[f];typeof e!="object"||e===null?m[f]=e:e instanceof Date?m[f]=new Date(e):e instanceof Map?m[f]=new Map(t(Array.from(e),a)):e instanceof Set?m[f]=new Set(t(Array.from(e),a)):ArrayBuffer.isView(e)?m[f]=N(e):m[f]=a(e)}return m}function g(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return t(u,g);if(u instanceof Map)return new Map(t(Array.from(u),g));if(u instanceof Set)return new Set(t(Array.from(u),g));var m={};for(var f in u){var e=u[f];typeof e!="object"||e===null?m[f]=e:e instanceof Date?m[f]=new Date(e):e instanceof Map?m[f]=new Map(t(Array.from(e),g)):e instanceof Set?m[f]=new Set(t(Array.from(e),g)):ArrayBuffer.isView(e)?m[f]=N(e):m[f]=g(e)}return m}}function $e(r){var t=[],a=[];return r.proto?m:u;function g(f,e){for(var y=Object.keys(f),s=new Array(y.length),o=0;o<y.length;o++){var i=y[o],p=f[i];if(typeof p!="object"||p===null)s[i]=p;else if(p instanceof Date)s[i]=new Date(p);else if(ArrayBuffer.isView(p))s[i]=N(p);else{var b=t.indexOf(p);b!==-1?s[i]=a[b]:s[i]=e(p)}}return s}function u(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return g(f,u);if(f instanceof Map)return new Map(g(Array.from(f),u));if(f instanceof Set)return new Set(g(Array.from(f),u));var e={};t.push(f),a.push(e);for(var y in f)if(Object.hasOwnProperty.call(f,y)!==!1){var s=f[y];if(typeof s!="object"||s===null)e[y]=s;else if(s instanceof Date)e[y]=new Date(s);else if(s instanceof Map)e[y]=new Map(g(Array.from(s),u));else if(s instanceof Set)e[y]=new Set(g(Array.from(s),u));else if(ArrayBuffer.isView(s))e[y]=N(s);else{var o=t.indexOf(s);o!==-1?e[y]=a[o]:e[y]=u(s)}}return t.pop(),a.pop(),e}function m(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return g(f,m);if(f instanceof Map)return new Map(g(Array.from(f),m));if(f instanceof Set)return new Set(g(Array.from(f),m));var e={};t.push(f),a.push(e);for(var y in f){var s=f[y];if(typeof s!="object"||s===null)e[y]=s;else if(s instanceof Date)e[y]=new Date(s);else if(s instanceof Map)e[y]=new Map(g(Array.from(s),m));else if(s instanceof Set)e[y]=new Set(g(Array.from(s),m));else if(ArrayBuffer.isView(s))e[y]=N(s);else{var o=t.indexOf(s);o!==-1?e[y]=a[o]:e[y]=m(s)}}return t.pop(),a.pop(),e}}});var re=C((te,V)=>{(function(r,t){"use strict";typeof V=="object"&&typeof V.exports=="object"?V.exports=t():typeof define=="function"&&define.amd?define([],t):r.objectPath=t()})(te,function(){"use strict";var r=Object.prototype.toString;function t(o,i){return o==null?!1:Object.prototype.hasOwnProperty.call(o,i)}function a(o){if(!o||m(o)&&o.length===0)return!0;if(typeof o!="string"){for(var i in o)if(t(o,i))return!1;return!0}return!1}function g(o){return r.call(o)}function u(o){return typeof o=="object"&&g(o)==="[object Object]"}var m=Array.isArray||function(o){return r.call(o)==="[object Array]"};function f(o){return typeof o=="boolean"||g(o)==="[object Boolean]"}function e(o){var i=parseInt(o);return i.toString()===o?i:o}function y(o){o=o||{};var i=function(c){return Object.keys(i).reduce(function(n,l){return l==="create"||typeof i[l]=="function"&&(n[l]=i[l].bind(i,c)),n},{})},p;o.includeInheritedProps?p=function(){return!0}:p=function(c,n){return typeof n=="number"&&Array.isArray(c)||t(c,n)};function b(c,n){if(p(c,n))return c[n]}var S;o.includeInheritedProps?S=function(c,n){typeof n!="string"&&typeof n!="number"&&(n=String(n));var l=b(c,n);if(n==="__proto__"||n==="prototype"||n==="constructor"&&typeof l=="function")throw new Error("For security reasons, object's magic properties cannot be set");return l}:S=function(c,n){return b(c,n)};function E(c,n,l,$){if(typeof n=="number"&&(n=[n]),!n||n.length===0)return c;if(typeof n=="string")return E(c,n.split(".").map(e),l,$);var d=n[0],h=S(c,d);return n.length===1?((h===void 0||!$)&&(c[d]=l),h):(h===void 0&&(typeof n[1]=="number"?c[d]=[]:c[d]={}),E(c[d],n.slice(1),l,$))}return i.has=function(c,n){if(typeof n=="number"?n=[n]:typeof n=="string"&&(n=n.split(".")),!n||n.length===0)return!!c;for(var l=0;l<n.length;l++){var $=e(n[l]);if(typeof $=="number"&&m(c)&&$<c.length||(o.includeInheritedProps?$ in Object(c):t(c,$)))c=c[$];else return!1}return!0},i.ensureExists=function(c,n,l){return E(c,n,l,!0)},i.set=function(c,n,l,$){return E(c,n,l,$)},i.insert=function(c,n,l,$){var d=i.get(c,n);$=~~$,m(d)||(d=[],i.set(c,n,d)),d.splice($,0,l)},i.empty=function(c,n){if(!a(n)&&c!=null){var l,$;if(l=i.get(c,n)){if(typeof l=="string")return i.set(c,n,"");if(f(l))return i.set(c,n,!1);if(typeof l=="number")return i.set(c,n,0);if(m(l))l.length=0;else if(u(l))for($ in l)p(l,$)&&delete l[$];else return i.set(c,n,null)}}},i.push=function(c,n){var l=i.get(c,n);m(l)||(l=[],i.set(c,n,l)),l.push.apply(l,Array.prototype.slice.call(arguments,2))},i.coalesce=function(c,n,l){for(var $,d=0,h=n.length;d<h;d++)if(($=i.get(c,n[d]))!==void 0)return $;return l},i.get=function(c,n,l){if(typeof n=="number"&&(n=[n]),!n||n.length===0)return c;if(c==null)return l;if(typeof n=="string")return i.get(c,n.split("."),l);var $=e(n[0]),d=S(c,$);return d===void 0?l:n.length===1?d:i.get(c[$],n.slice(1),l)},i.del=function(n,l){if(typeof l=="number"&&(l=[l]),n==null||a(l))return n;if(typeof l=="string")return i.del(n,l.split("."));var $=e(l[0]);if(S(n,$),!p(n,$))return n;if(l.length===1)m(n)?n.splice($,1):delete n[$];else return i.del(n[$],l.slice(1));return n},i}var s=y();return s.create=y,s.withInheritedProps=y({includeInheritedProps:!0}),s})});var Ae={};ye(Ae,{checkTypesMini:()=>ve,defaults:()=>ie,version:()=>Se});var w=P(Y(),1);var ee=P(J(),1);var Z=P(J(),1);var Ne=(0,Z.default)();function A(r){if(r==null||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}function D(r=[],t=[]){return!r||!Array.isArray(r)||!r.length?[]:!t||!Array.isArray(t)||!t.length?r:r.filter(a=>!t.includes(a))}function X(r=[],t=[]){return!r||!t?[]:Array.from(new Set(Array.from(r).filter(a=>new Set(t).has(a))))}function he(r){if(r.includes(".")){let t=r.lastIndexOf(".");if(!r.slice(0,t).includes("."))return r.slice(0,t);for(let a=t-1;a--;)if(r[a]===".")return r.slice(a+1,t)}return null}var k=he;var K=(0,ee.default)();function B(r,t){let a={now:!1};function g(u,m,f,e){let y=K(u),s,o=v({depth:-1,path:""},f);if(o.depth+=1,Array.isArray(y))for(let i=0,p=y.length;i<p&&!e.now;i++){let b=o.path?`${o.path}.${i}`:`${i}`;y[i]!==void 0?(o.parent=K(y),o.parentType="array",o.parentKey=k(b),s=g(m(y[i],void 0,x(v({},o),{path:b}),e),m,x(v({},o),{path:b}),e),Number.isNaN(s)&&i<y.length?(y.splice(i,1),i-=1):y[i]=s):y.splice(i,1)}else if(A(y))for(let i in y){if(e.now&&i!=null)break;let p=o.path?`${o.path}.${i}`:i;o.depth===0&&i!=null&&(o.topmostKey=i),o.parent=K(y),o.parentType="object",o.parentKey=k(p),s=g(m(i,y[i],x(v({},o),{path:p}),e),m,x(v({},o),{path:p}),e),Number.isNaN(s)?delete y[i]:y[i]=s}return y}return g(r,t,{},a)}function H(r){return typeof r!="string"?r:r.length?[r]:[]}var I=P(re(),1);function R(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var F=new Map,ne=(r,t)=>{if(!Array.isArray(r))switch(typeof r){case"string":r=[r];break;case"undefined":r=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof r}'`)}return r.filter(a=>{if(typeof a!="string"){if(typeof a>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof a}' in the array`)}return!0})},de=(r,t)=>{t=v({caseSensitive:!1},t);let a=r+JSON.stringify(t);if(F.has(a))return F.get(a);let g=r[0]==="!";g&&(r=r.slice(1)),r=R(r).replace(/\\\*/g,"[\\s\\S]*");let u=new RegExp(`^${r}$`,t.caseSensitive?"":"i");return u.negated=g,F.set(a,u),u},be=(r,t,a,g)=>{if(r=ne(r,"inputs"),t=ne(t,"patterns"),t.length===0)return[];t=t.map(f=>de(f,a));let{allPatterns:u}=a||{},m=[];for(let f of r){let e,y=[...t].fill(!1);for(let[s,o]of t.entries())if(o.test(f)&&(y[s]=!0,e=!o.negated,!e))break;if(!(e===!1||e===void 0&&t.some(s=>!s.negated)||u&&y.some((s,o)=>!s&&!t[o].negated))&&(m.push(f),g))break}return m};function j(r,t,a){return be(r,t,a,!0).length>0}var se="8.0.19";var Se=se,ie={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function Oe(r,t,a){function g(s){return s!=null}function u(s,o){return typeof o=="string"&&(o=H(o)),Array.from(s).filter(i=>!o.some(p=>j(i,p,{caseSensitive:!0})))}let m=Object.prototype.hasOwnProperty,f=["any","anything","every","everything","all","whatever","whatevs"];if(!g(r))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let e=v(v({},ie),a);if(typeof e.ignoreKeys=="string"&&(e.ignoreKeys=[e.ignoreKeys]),typeof e.ignorePaths=="string"&&(e.ignorePaths=[e.ignorePaths]),typeof e.acceptArraysIgnore=="string"&&(e.acceptArraysIgnore=[e.acceptArraysIgnore]),e.msg=`${e.msg}`.trim(),e.msg[e.msg.length-1]===":"&&(e.msg=e.msg.slice(0,e.msg.length-1).trim()),A(e.schema))Object.keys(e.schema).forEach(s=>{if(A(e.schema[s])){let o={};B(e.schema[s],(i,p,b)=>{let S=p!==void 0?p:i;return!Array.isArray(S)&&!A(S)&&(o[`${s}.${b.path}`]=S),S}),delete e.schema[s],e.schema=v(v({},e.schema),o)}}),Object.keys(e.schema).forEach(s=>{Array.isArray(e.schema[s])||(e.schema[s]=[e.schema[s]]),e.schema[s]=e.schema[s].map(o=>`${o}`.toLowerCase().trim())});else if(e.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(e.schema,null,0)} which is not object but ${typeof e.schema}`);if(g(t)||(t={}),e.enforceStrictKeyset)if(g(e.schema)&&Object.keys(e.schema).length){if(t&&u(D(Object.keys(r),Object.keys(t).concat(Object.keys(e.schema))),e.ignoreKeys).length){let s=D(Object.keys(r),Object.keys(t).concat(Object.keys(e.schema)));throw new TypeError(`${e.msg}: ${e.optsVarName}.enforceStrictKeyset is on and the following key${s.length>1?"s":""} ${s.length>1?"are":"is"} not covered by schema and/or reference objects: ${s.join(", ")}`)}}else if(A(t)&&Object.keys(t).length){if(u(D(Object.keys(r),Object.keys(t)),e.ignoreKeys).length!==0){let s=D(Object.keys(r),Object.keys(t));throw new TypeError(`${e.msg}: The input object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not covered by the reference object: ${s.join(", ")}`)}else if(u(D(Object.keys(t),Object.keys(r)),e.ignoreKeys).length!==0){let s=D(Object.keys(t),Object.keys(r));throw new TypeError(`${e.msg}: The reference object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not present in the input object: ${s.join(", ")}`)}}else throw new TypeError(`${e.msg}: Both ${e.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via resolvedOpts.enforceStrictKeyset!`);let y=[];B(r,(s,o,i)=>{let p=o,b=s;if(i.parentType==="array"&&(b=void 0,p=s),Array.isArray(y)&&y.length&&y.some(n=>i.path.startsWith(n))||b&&e.ignoreKeys.some(n=>b&&j(b,n))||e.ignorePaths.some(n=>j(i.path,n)))return p;let S=!(!A(p)&&!Array.isArray(p)&&Array.isArray(i.parent)),E=!1;A(e.schema)&&m.call(e.schema,i.path)&&(E=!0);let c=!1;if(A(t)&&I.default.has(t,i.path)&&(c=!0),e.enforceStrictKeyset&&S&&!E&&!c)throw new TypeError(`${e.msg}: ${e.optsVarName}.${i.path} is neither covered by reference object (second input argument), nor ${e.optsVarName}.schema! To stop this error, turn off ${e.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${e.optsVarName}.schema).
|
|
11
11
|
|
|
12
12
|
Debug info:
|
|
13
13
|
|