check-types-mini 8.0.12 → 8.0.14

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.
package/README.md CHANGED
@@ -50,13 +50,13 @@ assert.throws(
50
50
  option1: "setting1",
51
51
  option2: false,
52
52
  option3: false,
53
- }
53
+ },
54
54
  );
55
55
  },
56
56
  (err) => {
57
57
  assert(/not boolean but string/.test(err));
58
58
  return true;
59
- }
59
+ },
60
60
  );
61
61
  ```
62
62
 
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @name check-types-mini
3
3
  * @fileoverview Validate options object
4
- * @version 8.0.12
4
+ * @version 8.0.14
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{intersection as k}from"lodash-es";import{arrayiffy as N}from"arrayiffy-if-string";import E from"object-path";import{isMatch as S}from"matcher";import{isPlainObject as m,pullAll as h}from"codsen-utils";var j="8.0.12";var M=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()),m(e.schema))Object.keys(e.schema).forEach(s=>{if(m(e.schema[s])){let l={};w(e.schema[s],(n,t,$)=>{let u=t!==void 0?t:n;return!Array.isArray(u)&&!m(u)&&(l[`${s}.${$.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(m(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,$=s;if(n.parentType==="array"&&($=void 0,t=s),Array.isArray(g)&&g.length&&g.some(o=>n.path.startsWith(o))||$&&e.ignoreKeys.some(o=>$&&S($,o))||e.ignorePaths.some(o=>S(n.path,o)))return t;let u=!(!m(t)&&!Array.isArray(t)&&Array.isArray(n.parent)),f=!1;m(e.schema)&&V.call(e.schema,n.path)&&(f=!0);let d=!1;if(m(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).
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 g,intersection as k}from"codsen-utils";var j="8.0.14";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(g(Object.keys(a),Object.keys(r).concat(Object.keys(e.schema))),e.ignoreKeys).length){let s=g(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(g(Object.keys(a),Object.keys(r)),e.ignoreKeys).length!==0){let s=g(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(g(Object.keys(r),Object.keys(a)),e.ignoreKeys).length!==0){let s=g(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 h=[];w(a,(s,l,n)=>{let t=l,m=s;if(n.parentType==="array"&&(m=void 0,t=s),Array.isArray(h)&&h.length&&h.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)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&&m(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 F(a,r,p){T(a,r,p)}export{F as checkTypesMini,v as defaults,M as version};
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)h.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,31 +1,31 @@
1
1
  /**
2
2
  * @name check-types-mini
3
3
  * @fileoverview Validate options object
4
- * @version 8.0.12
4
+ * @version 8.0.14
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 At=Object.create;var L=Object.defineProperty,Et=Object.defineProperties,Dt=Object.getOwnPropertyDescriptor,jt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertyNames,pe=Object.getOwnPropertySymbols,It=Object.getPrototypeOf,ce=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var me=(e,t,o)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,S=(e,t)=>{for(var o in t||(t={}))ce.call(t,o)&&me(e,o,t[o]);if(pe)for(var o of pe(t))Tt.call(t,o)&&me(e,o,t[o]);return e},k=(e,t)=>Et(e,jt(t));var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ct=(e,t)=>{for(var o in t)L(e,o,{get:t[o],enumerable:!0})},de=(e,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Nt(t))!ce.call(e,i)&&i!==o&&L(e,i,{get:()=>t[i],enumerable:!(l=Dt(t,i))||l.enumerable});return e};var Q=(e,t,o)=>(o=e!=null?At(It(e)):{},de(t||!e||!e.__esModule?L(o,"default",{value:e,enumerable:!0}):o,e)),Pt=e=>de(L({},"__esModule",{value:!0}),e);var he=q((Y,Z)=>{(function(e,t){typeof Y=="object"&&typeof Z<"u"?Z.exports=t():typeof define=="function"&&define.amd?define(t):e.typeDetect=t()})(Y,function(){"use strict";var e=typeof Promise=="function",t=typeof self=="object"?self:global,o=typeof Symbol<"u",l=typeof Map<"u",i=typeof Set<"u",h=typeof WeakMap<"u",u=typeof WeakSet<"u",r=typeof DataView<"u",c=o&&typeof Symbol.iterator<"u",n=o&&typeof Symbol.toStringTag<"u",s=i&&typeof Set.prototype.entries=="function",f=l&&typeof Map.prototype.entries=="function",m=s&&Object.getPrototypeOf(new Set().entries()),x=f&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",w=b&&Object.getPrototypeOf([][Symbol.iterator]()),d=c&&typeof String.prototype[Symbol.iterator]=="function",a=d&&Object.getPrototypeOf(""[Symbol.iterator]()),p=8,y=-1;function $(g){var le=typeof g;if(le!=="object")return le;if(g===null)return"null";if(g===t)return"global";if(Array.isArray(g)&&(n===!1||!(Symbol.toStringTag in g)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&g===window.location)return"Location";if(typeof window.document=="object"&&g===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&g===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&g===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&g instanceof window.HTMLElement){if(g.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(g.tagName==="TD")return"HTMLTableDataCellElement";if(g.tagName==="TH")return"HTMLTableHeaderCellElement"}}var ue=n&&g[Symbol.toStringTag];if(typeof ue=="string")return ue;var O=Object.getPrototypeOf(g);return O===RegExp.prototype?"RegExp":O===Date.prototype?"Date":e&&O===Promise.prototype?"Promise":i&&O===Set.prototype?"Set":l&&O===Map.prototype?"Map":u&&O===WeakSet.prototype?"WeakSet":h&&O===WeakMap.prototype?"WeakMap":r&&O===DataView.prototype?"DataView":l&&O===x?"Map Iterator":i&&O===m?"Set Iterator":b&&O===w?"Array Iterator":d&&O===a?"String Iterator":O===null?"Object":Object.prototype.toString.call(g).slice(p,y)}return $})});var xe=q((_o,ye)=>{"use strict";ye.exports=_t;function I(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function _t(e){if(e=e||{},e.circles)return Mt(e);return e.proto?l:o;function t(i,h){for(var u=Object.keys(i),r=new Array(u.length),c=0;c<u.length;c++){var n=u[c],s=i[n];typeof s!="object"||s===null?r[n]=s:s instanceof Date?r[n]=new Date(s):ArrayBuffer.isView(s)?r[n]=I(s):r[n]=h(s)}return r}function o(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,o);if(i instanceof Map)return new Map(t(Array.from(i),o));if(i instanceof Set)return new Set(t(Array.from(i),o));var h={};for(var u in i)if(Object.hasOwnProperty.call(i,u)!==!1){var r=i[u];typeof r!="object"||r===null?h[u]=r:r instanceof Date?h[u]=new Date(r):r instanceof Map?h[u]=new Map(t(Array.from(r),o)):r instanceof Set?h[u]=new Set(t(Array.from(r),o)):ArrayBuffer.isView(r)?h[u]=I(r):h[u]=o(r)}return h}function l(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,l);if(i instanceof Map)return new Map(t(Array.from(i),l));if(i instanceof Set)return new Set(t(Array.from(i),l));var h={};for(var u in i){var r=i[u];typeof r!="object"||r===null?h[u]=r:r instanceof Date?h[u]=new Date(r):r instanceof Map?h[u]=new Map(t(Array.from(r),l)):r instanceof Set?h[u]=new Set(t(Array.from(r),l)):ArrayBuffer.isView(r)?h[u]=I(r):h[u]=l(r)}return h}}function Mt(e){var t=[],o=[];return e.proto?h:i;function l(u,r){for(var c=Object.keys(u),n=new Array(c.length),s=0;s<c.length;s++){var f=c[s],m=u[f];if(typeof m!="object"||m===null)n[f]=m;else if(m instanceof Date)n[f]=new Date(m);else if(ArrayBuffer.isView(m))n[f]=I(m);else{var x=t.indexOf(m);x!==-1?n[f]=o[x]:n[f]=r(m)}}return n}function i(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return l(u,i);if(u instanceof Map)return new Map(l(Array.from(u),i));if(u instanceof Set)return new Set(l(Array.from(u),i));var r={};t.push(u),o.push(r);for(var c in u)if(Object.hasOwnProperty.call(u,c)!==!1){var n=u[c];if(typeof n!="object"||n===null)r[c]=n;else if(n instanceof Date)r[c]=new Date(n);else if(n instanceof Map)r[c]=new Map(l(Array.from(n),i));else if(n instanceof Set)r[c]=new Set(l(Array.from(n),i));else if(ArrayBuffer.isView(n))r[c]=I(n);else{var s=t.indexOf(n);s!==-1?r[c]=o[s]:r[c]=i(n)}}return t.pop(),o.pop(),r}function h(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return l(u,h);if(u instanceof Map)return new Map(l(Array.from(u),h));if(u instanceof Set)return new Set(l(Array.from(u),h));var r={};t.push(u),o.push(r);for(var c in u){var n=u[c];if(typeof n!="object"||n===null)r[c]=n;else if(n instanceof Date)r[c]=new Date(n);else if(n instanceof Map)r[c]=new Map(l(Array.from(n),h));else if(n instanceof Set)r[c]=new Set(l(Array.from(n),h));else if(ArrayBuffer.isView(n))r[c]=I(n);else{var s=t.indexOf(n);s!==-1?r[c]=o[s]:r[c]=h(n)}}return t.pop(),o.pop(),r}}});var vt=q(($t,z)=>{(function(e,t){"use strict";typeof z=="object"&&typeof z.exports=="object"?z.exports=t():typeof define=="function"&&define.amd?define([],t):e.objectPath=t()})($t,function(){"use strict";var e=Object.prototype.toString;function t(s,f){return s==null?!1:Object.prototype.hasOwnProperty.call(s,f)}function o(s){if(!s||h(s)&&s.length===0)return!0;if(typeof s!="string"){for(var f in s)if(t(s,f))return!1;return!0}return!1}function l(s){return e.call(s)}function i(s){return typeof s=="object"&&l(s)==="[object Object]"}var h=Array.isArray||function(s){return e.call(s)==="[object Array]"};function u(s){return typeof s=="boolean"||l(s)==="[object Boolean]"}function r(s){var f=parseInt(s);return f.toString()===s?f:s}function c(s){s=s||{};var f=function(d){return Object.keys(f).reduce(function(a,p){return p==="create"||typeof f[p]=="function"&&(a[p]=f[p].bind(f,d)),a},{})},m;s.includeInheritedProps?m=function(){return!0}:m=function(d,a){return typeof a=="number"&&Array.isArray(d)||t(d,a)};function x(d,a){if(m(d,a))return d[a]}var b;s.includeInheritedProps?b=function(d,a){typeof a!="string"&&typeof a!="number"&&(a=String(a));var p=x(d,a);if(a==="__proto__"||a==="prototype"||a==="constructor"&&typeof p=="function")throw new Error("For security reasons, object's magic properties cannot be set");return p}:b=function(d,a){return x(d,a)};function w(d,a,p,y){if(typeof a=="number"&&(a=[a]),!a||a.length===0)return d;if(typeof a=="string")return w(d,a.split(".").map(r),p,y);var $=a[0],g=b(d,$);return a.length===1?((g===void 0||!y)&&(d[$]=p),g):(g===void 0&&(typeof a[1]=="number"?d[$]=[]:d[$]={}),w(d[$],a.slice(1),p,y))}return f.has=function(d,a){if(typeof a=="number"?a=[a]:typeof a=="string"&&(a=a.split(".")),!a||a.length===0)return!!d;for(var p=0;p<a.length;p++){var y=r(a[p]);if(typeof y=="number"&&h(d)&&y<d.length||(s.includeInheritedProps?y in Object(d):t(d,y)))d=d[y];else return!1}return!0},f.ensureExists=function(d,a,p){return w(d,a,p,!0)},f.set=function(d,a,p,y){return w(d,a,p,y)},f.insert=function(d,a,p,y){var $=f.get(d,a);y=~~y,h($)||($=[],f.set(d,a,$)),$.splice(y,0,p)},f.empty=function(d,a){if(!o(a)&&d!=null){var p,y;if(p=f.get(d,a)){if(typeof p=="string")return f.set(d,a,"");if(u(p))return f.set(d,a,!1);if(typeof p=="number")return f.set(d,a,0);if(h(p))p.length=0;else if(i(p))for(y in p)m(p,y)&&delete p[y];else return f.set(d,a,null)}}},f.push=function(d,a){var p=f.get(d,a);h(p)||(p=[],f.set(d,a,p)),p.push.apply(p,Array.prototype.slice.call(arguments,2))},f.coalesce=function(d,a,p){for(var y,$=0,g=a.length;$<g;$++)if((y=f.get(d,a[$]))!==void 0)return y;return p},f.get=function(d,a,p){if(typeof a=="number"&&(a=[a]),!a||a.length===0)return d;if(d==null)return p;if(typeof a=="string")return f.get(d,a.split("."),p);var y=r(a[0]),$=b(d,y);return $===void 0?p:a.length===1?$:f.get(d[y],a.slice(1),p)},f.del=function(a,p){if(typeof p=="number"&&(p=[p]),a==null||o(p))return a;if(typeof p=="string")return f.del(a,p.split("."));var y=r(p[0]);if(b(a,y),!m(a,y))return a;if(p.length===1)h(a)?a.splice(y,1):delete a[y];else return f.del(a[y],p.slice(1));return a},f}var n=c();return n.create=c,n.withInheritedProps=c({includeInheritedProps:!0}),n})});var Co={};Ct(Co,{checkTypesMini:()=>To,defaults:()=>St,version:()=>No});var v=Q(he(),1);var ge=Q(xe(),1);function A(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function N(e=[],t=[]){return!e||!Array.isArray(e)||!e.length?[]:!t||!Array.isArray(t)||!t.length?e:e.filter(o=>!t.includes(o))}function Vt(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let o=t-1;o--;)if(e[o]===".")return e.slice(o+1,t)}return null}var X=Vt;var ee=(0,ge.default)();function te(e,t){let o={now:!1};function l(i,h,u,r){let c=ee(i),n,s=S({depth:-1,path:""},u);if(s.depth+=1,Array.isArray(c))for(let f=0,m=c.length;f<m&&!r.now;f++){let x=s.path?`${s.path}.${f}`:`${f}`;c[f]!==void 0?(s.parent=ee(c),s.parentType="array",s.parentKey=X(x),n=l(h(c[f],void 0,k(S({},s),{path:x}),r),h,k(S({},s),{path:x}),r),Number.isNaN(n)&&f<c.length?(c.splice(f,1),f-=1):c[f]=n):c.splice(f,1)}else if(A(c))for(let f in c){if(r.now&&f!=null)break;let m=s.path?`${s.path}.${f}`:f;s.depth===0&&f!=null&&(s.topmostKey=f),s.parent=ee(c),s.parentType="object",s.parentKey=X(m),n=l(h(f,c[f],k(S({},s),{path:m}),r),h,k(S({},s),{path:m}),r),Number.isNaN(n)?delete c[f]:c[f]=n}return c}return l(e,t,{},o)}var Lt=typeof global=="object"&&global&&global.Object===Object&&global,be=Lt;var kt=typeof self=="object"&&self&&self.Object===Object&&self,Bt=be||kt||Function("return this")(),T=Bt;var Rt=T.Symbol,C=Rt;var $e=Object.prototype,Ht=$e.hasOwnProperty,Kt=$e.toString,B=C?C.toStringTag:void 0;function Jt(e){var t=Ht.call(e,B),o=e[B];try{e[B]=void 0;var l=!0}catch(h){}var i=Kt.call(e);return l&&(t?e[B]=o:delete e[B]),i}var ve=Jt;var Ft=Object.prototype,Wt=Ft.toString;function zt(e){return Wt.call(e)}var we=zt;var Ut="[object Null]",Gt="[object Undefined]",Oe=C?C.toStringTag:void 0;function qt(e){return e==null?e===void 0?Gt:Ut:Oe&&Oe in Object(e)?ve(e):we(e)}var Se=qt;function Qt(e){return e!=null&&typeof e=="object"}var Ae=Qt;function Yt(e,t){for(var o=-1,l=e==null?0:e.length,i=Array(l);++o<l;)i[o]=t(e[o],o,e);return i}var R=Yt;function Zt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var H=Zt;function Xt(e){return e}var K=Xt;var er="[object AsyncFunction]",tr="[object Function]",rr="[object GeneratorFunction]",or="[object Proxy]";function ar(e){if(!H(e))return!1;var t=Se(e);return t==tr||t==rr||t==er||t==or}var J=ar;var nr=T["__core-js_shared__"],F=nr;var Ee=function(){var e=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sr(e){return!!Ee&&Ee in e}var De=sr;var fr=Function.prototype,ir=fr.toString;function lr(e){if(e!=null){try{return ir.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var je=lr;var ur=/[\\^$.*+?()[\]{}|]/g,pr=/^\[object .+?Constructor\]$/,mr=Function.prototype,cr=Object.prototype,dr=mr.toString,hr=cr.hasOwnProperty,yr=RegExp("^"+dr.call(hr).replace(ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xr(e){if(!H(e)||De(e))return!1;var t=J(e)?yr:pr;return t.test(je(e))}var Ne=xr;function gr(e,t){return e==null?void 0:e[t]}var Ie=gr;function br(e,t){var o=Ie(e,t);return Ne(o)?o:void 0}var P=br;function $r(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Te=$r;var vr=800,wr=16,Or=Date.now;function Sr(e){var t=0,o=0;return function(){var l=Or(),i=wr-(l-o);if(o=l,i>0){if(++t>=vr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ce=Sr;function Ar(e){return function(){return e}}var Pe=Ar;var Er=function(){try{var e=P(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),re=Er;var Dr=re?function(e,t){return re(e,"toString",{configurable:!0,enumerable:!1,value:Pe(t),writable:!0})}:K,_e=Dr;var jr=Ce(_e),Me=jr;function Nr(e,t,o,l){for(var i=e.length,h=o+(l?1:-1);l?h--:++h<i;)if(t(e[h],h,e))return h;return-1}var Ve=Nr;function Ir(e){return e!==e}var Le=Ir;function Tr(e,t,o){for(var l=o-1,i=e.length;++l<i;)if(e[l]===t)return l;return-1}var ke=Tr;function Cr(e,t,o){return t===t?ke(e,t,o):Ve(e,Le,o)}var Be=Cr;function Pr(e,t){var o=e==null?0:e.length;return!!o&&Be(e,t,0)>-1}var Re=Pr;function _r(e,t){return e===t||e!==e&&t!==t}var He=_r;var Ke=Math.max;function Mr(e,t,o){return t=Ke(t===void 0?e.length-1:t,0),function(){for(var l=arguments,i=-1,h=Ke(l.length-t,0),u=Array(h);++i<h;)u[i]=l[t+i];i=-1;for(var r=Array(t+1);++i<t;)r[i]=l[i];return r[t]=o(u),Te(e,this,r)}}var Je=Mr;function Vr(e,t){return Me(Je(e,t,K),e+"")}var Fe=Vr;var Lr=9007199254740991;function kr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Lr}var We=kr;function Br(e){return e!=null&&We(e.length)&&!J(e)}var ze=Br;function Rr(e){return function(t){return e(t)}}var Ue=Rr;var Hr=P(Object,"create"),E=Hr;function Kr(){this.__data__=E?E(null):{},this.size=0}var Ge=Kr;function Jr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qe=Jr;var Fr="__lodash_hash_undefined__",Wr=Object.prototype,zr=Wr.hasOwnProperty;function Ur(e){var t=this.__data__;if(E){var o=t[e];return o===Fr?void 0:o}return zr.call(t,e)?t[e]:void 0}var Qe=Ur;var Gr=Object.prototype,qr=Gr.hasOwnProperty;function Qr(e){var t=this.__data__;return E?t[e]!==void 0:qr.call(t,e)}var Ye=Qr;var Yr="__lodash_hash_undefined__";function Zr(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=E&&t===void 0?Yr:t,this}var Ze=Zr;function _(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}_.prototype.clear=Ge;_.prototype.delete=qe;_.prototype.get=Qe;_.prototype.has=Ye;_.prototype.set=Ze;var oe=_;function Xr(){this.__data__=[],this.size=0}var Xe=Xr;function eo(e,t){for(var o=e.length;o--;)if(He(e[o][0],t))return o;return-1}var D=eo;var to=Array.prototype,ro=to.splice;function oo(e){var t=this.__data__,o=D(t,e);if(o<0)return!1;var l=t.length-1;return o==l?t.pop():ro.call(t,o,1),--this.size,!0}var et=oo;function ao(e){var t=this.__data__,o=D(t,e);return o<0?void 0:t[o][1]}var tt=ao;function no(e){return D(this.__data__,e)>-1}var rt=no;function so(e,t){var o=this.__data__,l=D(o,e);return l<0?(++this.size,o.push([e,t])):o[l][1]=t,this}var ot=so;function M(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}M.prototype.clear=Xe;M.prototype.delete=et;M.prototype.get=tt;M.prototype.has=rt;M.prototype.set=ot;var at=M;var fo=P(T,"Map"),nt=fo;function io(){this.size=0,this.__data__={hash:new oe,map:new(nt||at),string:new oe}}var st=io;function lo(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ft=lo;function uo(e,t){var o=e.__data__;return ft(t)?o[typeof t=="string"?"string":"hash"]:o.map}var j=uo;function po(e){var t=j(this,e).delete(e);return this.size-=t?1:0,t}var it=po;function mo(e){return j(this,e).get(e)}var lt=mo;function co(e){return j(this,e).has(e)}var ut=co;function ho(e,t){var o=j(this,e),l=o.size;return o.set(e,t),this.size+=o.size==l?0:1,this}var pt=ho;function V(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}V.prototype.clear=st;V.prototype.delete=it;V.prototype.get=lt;V.prototype.has=ut;V.prototype.set=pt;var mt=V;var yo="__lodash_hash_undefined__";function xo(e){return this.__data__.set(e,yo),this}var ct=xo;function go(e){return this.__data__.has(e)}var dt=go;function W(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new mt;++t<o;)this.add(e[t])}W.prototype.add=W.prototype.push=ct;W.prototype.has=dt;var ht=W;function bo(e,t){return e.has(t)}var ae=bo;function $o(e){return Ae(e)&&ze(e)}var yt=$o;function vo(e,t,o){for(var l=-1,i=e==null?0:e.length;++l<i;)if(o(t,e[l]))return!0;return!1}var xt=vo;var wo=Math.min;function Oo(e,t,o){for(var l=o?xt:Re,i=e[0].length,h=e.length,u=h,r=Array(h),c=1/0,n=[];u--;){var s=e[u];u&&t&&(s=R(s,Ue(t))),c=wo(s.length,c),r[u]=!o&&(t||i>=120&&s.length>=120)?new ht(u&&s):void 0}s=e[0];var f=-1,m=r[0];e:for(;++f<i&&n.length<c;){var x=s[f],b=t?t(x):x;if(x=o||x!==0?x:0,!(m?ae(m,b):l(n,b,o))){for(u=h;--u;){var w=r[u];if(!(w?ae(w,b):l(e[u],b,o)))continue e}m&&m.push(b),n.push(x)}}return n}var gt=Oo;function So(e){return yt(e)?e:[]}var bt=So;var Ao=Fe(function(e){var t=R(e,bt);return t.length&&t[0]===e[0]?gt(t):[]}),ne=Ao;function se(e){return typeof e!="string"?e:e.length?[e]:[]}var G=Q(vt(),1);function fe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ie=new Map,wt=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(o=>{if(typeof o!="string"){if(typeof o>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof o}' in the array`)}return!0})},Eo=(e,t)=>{t=S({caseSensitive:!1},t);let o=e+JSON.stringify(t);if(ie.has(o))return ie.get(o);let l=e[0]==="!";l&&(e=e.slice(1)),e=fe(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=l,ie.set(o,i),i},Do=(e,t,o,l)=>{if(e=wt(e,"inputs"),t=wt(t,"patterns"),t.length===0)return[];t=t.map(u=>Eo(u,o));let{allPatterns:i}=o||{},h=[];for(let u of e){let r,c=[...t].fill(!1);for(let[n,s]of t.entries())if(s.test(u)&&(c[n]=!0,r=!s.negated,!r))break;if(!(r===!1||r===void 0&&t.some(n=>!n.negated)||i&&c.some((n,s)=>!n&&!t[s].negated))&&(h.push(u),l))break}return h};function U(e,t,o){return Do(e,t,o,!0).length>0}var Ot="8.0.12";var No=Ot,St={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function Io(e,t,o){function l(n){return n!=null}function i(n,s){return typeof s=="string"&&(s=se(s)),Array.from(n).filter(f=>!s.some(m=>U(f,m,{caseSensitive:!0})))}let h=Object.prototype.hasOwnProperty,u=["any","anything","every","everything","all","whatever","whatevs"];if(!l(e))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let r=S(S({},St),o);if(typeof r.ignoreKeys=="string"&&(r.ignoreKeys=[r.ignoreKeys]),typeof r.ignorePaths=="string"&&(r.ignorePaths=[r.ignorePaths]),typeof r.acceptArraysIgnore=="string"&&(r.acceptArraysIgnore=[r.acceptArraysIgnore]),r.msg=`${r.msg}`.trim(),r.msg[r.msg.length-1]===":"&&(r.msg=r.msg.slice(0,r.msg.length-1).trim()),A(r.schema))Object.keys(r.schema).forEach(n=>{if(A(r.schema[n])){let s={};te(r.schema[n],(f,m,x)=>{let b=m!==void 0?m:f;return!Array.isArray(b)&&!A(b)&&(s[`${n}.${x.path}`]=b),b}),delete r.schema[n],r.schema=S(S({},r.schema),s)}}),Object.keys(r.schema).forEach(n=>{Array.isArray(r.schema[n])||(r.schema[n]=[r.schema[n]]),r.schema[n]=r.schema[n].map(s=>`${s}`.toLowerCase().trim())});else if(r.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(r.schema,null,0)} which is not object but ${typeof r.schema}`);if(l(t)||(t={}),r.enforceStrictKeyset)if(l(r.schema)&&Object.keys(r.schema).length){if(t&&i(N(Object.keys(e),Object.keys(t).concat(Object.keys(r.schema))),r.ignoreKeys).length){let n=N(Object.keys(e),Object.keys(t).concat(Object.keys(r.schema)));throw new TypeError(`${r.msg}: ${r.optsVarName}.enforceStrictKeyset is on and the following key${n.length>1?"s":""} ${n.length>1?"are":"is"} not covered by schema and/or reference objects: ${n.join(", ")}`)}}else if(A(t)&&Object.keys(t).length){if(i(N(Object.keys(e),Object.keys(t)),r.ignoreKeys).length!==0){let n=N(Object.keys(e),Object.keys(t));throw new TypeError(`${r.msg}: The input object has key${n.length>1?"s":""} which ${n.length>1?"are":"is"} not covered by the reference object: ${n.join(", ")}`)}else if(i(N(Object.keys(t),Object.keys(e)),r.ignoreKeys).length!==0){let n=N(Object.keys(t),Object.keys(e));throw new TypeError(`${r.msg}: The reference object has key${n.length>1?"s":""} which ${n.length>1?"are":"is"} not present in the input object: ${n.join(", ")}`)}}else throw new TypeError(`${r.msg}: Both ${r.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via resolvedOpts.enforceStrictKeyset!`);let c=[];te(e,(n,s,f)=>{let m=s,x=n;if(f.parentType==="array"&&(x=void 0,m=n),Array.isArray(c)&&c.length&&c.some(a=>f.path.startsWith(a))||x&&r.ignoreKeys.some(a=>x&&U(x,a))||r.ignorePaths.some(a=>U(f.path,a)))return m;let b=!(!A(m)&&!Array.isArray(m)&&Array.isArray(f.parent)),w=!1;A(r.schema)&&h.call(r.schema,f.path)&&(w=!0);let d=!1;if(A(t)&&G.default.has(t,f.path)&&(d=!0),r.enforceStrictKeyset&&b&&!w&&!d)throw new TypeError(`${r.msg}: ${r.optsVarName}.${f.path} is neither covered by reference object (second input argument), nor ${r.optsVarName}.schema! To stop this error, turn off ${r.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${r.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.14";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
 
14
- obj = ${JSON.stringify(e,null,4)}
14
+ obj = ${JSON.stringify(r,null,4)}
15
15
 
16
16
  ref = ${JSON.stringify(t,null,4)}
17
17
 
18
- innerObj = ${JSON.stringify(f,null,4)}
18
+ innerObj = ${JSON.stringify(i,null,4)}
19
19
 
20
- resolvedOpts = ${JSON.stringify(r,null,4)}
20
+ resolvedOpts = ${JSON.stringify(e,null,4)}
21
21
 
22
- current = ${JSON.stringify(m,null,4)}
22
+ current = ${JSON.stringify(p,null,4)}
23
23
 
24
- `);if(w){let a=se(r.schema[f.path]).map(p=>`${p}`.toLowerCase());if(G.default.set(r.schema,f.path,a),ne(a,u).length)c.push(f.path);else if(m!==!0&&m!==!1&&!a.includes((0,v.default)(m).toLowerCase())||(m===!0||m===!1)&&!a.includes(String(m))&&!a.includes("boolean"))if(Array.isArray(m)&&r.acceptArrays){for(let p=0,y=m.length;p<y;p++)if(!a.includes((0,v.default)(m[p]).toLowerCase()))throw new TypeError(`${r.msg}: ${r.optsVarName}.${f.path}.${p}, the ${p}th element (equal to ${JSON.stringify(m[p],null,0)}) is of a type ${(0,v.default)(m[p]).toLowerCase()}, but only the following are allowed by the ${r.optsVarName}.schema: ${a.join(", ")}`)}else throw new TypeError(`${r.msg}: ${r.optsVarName}.${f.path} was customised to ${(0,v.default)(m)!=="string"?'"':""}${JSON.stringify(m,null,0)}${(0,v.default)(m)!=="string"?'"':""} (type: ${(0,v.default)(m).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(a,null,0)})`)}else if(t&&A(t)&&d){let a=G.default.get(t,f.path);if(r.acceptArrays&&Array.isArray(m)&&!r.acceptArraysIgnore.includes(n)){if(!m.every(y=>(0,v.default)(y).toLowerCase()===(0,v.default)(t[n]).toLowerCase()))throw new TypeError(`${r.msg}: ${r.optsVarName}.${f.path} was customised to be array, but not all of its elements are ${(0,v.default)(t[n]).toLowerCase()}-type`)}else if((0,v.default)(m)!==(0,v.default)(a))throw new TypeError(`${r.msg}: ${r.optsVarName}.${f.path} was customised to ${(0,v.default)(m).toLowerCase()==="string"?"":'"'}${JSON.stringify(m,null,0)}${(0,v.default)(m).toLowerCase()==="string"?"":'"'} which is not ${(0,v.default)(a).toLowerCase()} but ${(0,v.default)(m).toLowerCase()}`)}return m})}function To(e,t,o){Io(e,t,o)}return Pt(Co);})();
24
+ `);if(E){let n=H(e.schema[i.path]).map(l=>`${l}`.toLowerCase());if(I.default.set(e.schema,i.path,n),X(n,f).length)y.push(i.path);else if(p!==!0&&p!==!1&&!n.includes((0,w.default)(p).toLowerCase())||(p===!0||p===!1)&&!n.includes(String(p))&&!n.includes("boolean"))if(Array.isArray(p)&&e.acceptArrays){for(let l=0,$=p.length;l<$;l++)if(!n.includes((0,w.default)(p[l]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${i.path}.${l}, the ${l}th element (equal to ${JSON.stringify(p[l],null,0)}) is of a type ${(0,w.default)(p[l]).toLowerCase()}, but only the following are allowed by the ${e.optsVarName}.schema: ${n.join(", ")}`)}else throw new TypeError(`${e.msg}: ${e.optsVarName}.${i.path} was customised to ${(0,w.default)(p)!=="string"?'"':""}${JSON.stringify(p,null,0)}${(0,w.default)(p)!=="string"?'"':""} (type: ${(0,w.default)(p).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(n,null,0)})`)}else if(t&&A(t)&&c){let n=I.default.get(t,i.path);if(e.acceptArrays&&Array.isArray(p)&&!e.acceptArraysIgnore.includes(s)){if(!p.every($=>(0,w.default)($).toLowerCase()===(0,w.default)(t[s]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${i.path} was customised to be array, but not all of its elements are ${(0,w.default)(t[s]).toLowerCase()}-type`)}else if((0,w.default)(p)!==(0,w.default)(n))throw new TypeError(`${e.msg}: ${e.optsVarName}.${i.path} was customised to ${(0,w.default)(p).toLowerCase()==="string"?"":'"'}${JSON.stringify(p,null,0)}${(0,w.default)(p).toLowerCase()==="string"?"":'"'} which is not ${(0,w.default)(n).toLowerCase()} but ${(0,w.default)(p).toLowerCase()}`)}return p})}function ve(r,t,a){Oe(r,t,a)}return me(Ae);})();
25
25
  /**
26
26
  * @name codsen-utils
27
27
  * @fileoverview Various utility functions
28
- * @version 1.5.0
28
+ * @version 1.6.1
29
29
  * @author Roy Revelt, Codsen Ltd
30
30
  * @license MIT
31
31
  * {@link https://codsen.com/os/codsen-utils/}
@@ -33,7 +33,7 @@ current = ${JSON.stringify(m,null,4)}
33
33
  /**
34
34
  * @name ast-monkey-util
35
35
  * @fileoverview Utility library of AST helper functions
36
- * @version 3.0.6
36
+ * @version 3.0.7
37
37
  * @author Roy Revelt, Codsen Ltd
38
38
  * @license MIT
39
39
  * {@link https://codsen.com/os/ast-monkey-util/}
@@ -41,7 +41,7 @@ current = ${JSON.stringify(m,null,4)}
41
41
  /**
42
42
  * @name ast-monkey-traverse
43
43
  * @fileoverview Utility library to traverse AST
44
- * @version 4.0.10
44
+ * @version 4.0.12
45
45
  * @author Roy Revelt, Codsen Ltd
46
46
  * @license MIT
47
47
  * {@link https://codsen.com/os/ast-monkey-traverse/}
@@ -49,21 +49,8 @@ current = ${JSON.stringify(m,null,4)}
49
49
  /**
50
50
  * @name arrayiffy-if-string
51
51
  * @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
52
- * @version 5.0.5
52
+ * @version 5.0.6
53
53
  * @author Roy Revelt, Codsen Ltd
54
54
  * @license MIT
55
55
  * {@link https://codsen.com/os/arrayiffy-if-string/}
56
56
  */
57
- /*! Bundled license information:
58
-
59
- lodash-es/lodash.js:
60
- (**
61
- * @license
62
- * Lodash (Custom Build) <https://lodash.com/>
63
- * Build: `lodash modularize exports="es" -o ./`
64
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
65
- * Released under MIT license <https://lodash.com/license>
66
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
67
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
68
- *)
69
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "check-types-mini",
3
- "version": "8.0.12",
3
+ "version": "8.0.14",
4
4
  "description": "Validate options object",
5
5
  "keywords": [
6
6
  "compare",
@@ -41,7 +41,7 @@
41
41
  "cjs-on": "exit 0",
42
42
  "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
43
43
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
44
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --loglevel 'silent'",
44
+ "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
45
45
  "examples": "node '../../ops/scripts/run-examples.js'",
46
46
  "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
47
47
  "letspublish": "npm publish || :",
@@ -49,7 +49,7 @@
49
49
  "perf": "node perf/check.js",
50
50
  "prep": "echo 'ready'",
51
51
  "prettier": "prettier",
52
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
52
+ "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
53
53
  "pretest": "npm run lect && npm run build",
54
54
  "test": "npm run devtest",
55
55
  "unit": "uvu test"
@@ -72,11 +72,9 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
- "@types/lodash-es": "^4.17.7",
76
- "arrayiffy-if-string": "^5.0.5",
77
- "ast-monkey-traverse": "^4.0.10",
78
- "codsen-utils": "^1.5.0",
79
- "lodash-es": "^4.17.21",
75
+ "arrayiffy-if-string": "^5.0.6",
76
+ "ast-monkey-traverse": "^4.0.12",
77
+ "codsen-utils": "^1.6.1",
80
78
  "matcher": "^5.0.0",
81
79
  "object-path": "^0.11.8",
82
80
  "type-detect": "^4.0.8"
package/types/index.d.ts CHANGED
@@ -19,7 +19,7 @@ declare const defaults: Opts;
19
19
  declare function checkTypesMini(
20
20
  obj: Obj,
21
21
  ref: Obj | null,
22
- opts?: Partial<Opts>
22
+ opts?: Partial<Opts>,
23
23
  ): void;
24
24
 
25
25
  export { checkTypesMini, defaults, version };