New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

util-array-object-or-both

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-array-object-or-both - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

dist/util-array-object-or-both.umd.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.arrObjOrBoth=e()}(this,function(){"use strict";function t(t){return t!=t}function e(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}function r(t,e){var r=X(t)||function(t){return function(t){return a(t)&&o(t)}(t)&&B.call(t,"callee")&&(!Q.call(t,"callee")||G.call(t)==C)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,i=!!n;for(var u in t)!e&&!B.call(t,u)||i&&("length"==u||function(t,e){return!!(e=null==e?V:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}(u,n))||r.push(u);return r}function n(t){if(!function(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||q;return t===r}(t))return U(t);var e=[];for(var r in Object(t))B.call(t,r)&&"constructor"!=r&&e.push(r);return e}function o(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=V}(t.length)&&!function(t){var e=i(t)?G.call(t):"";return e==L||e==K}(t)}function i(t){var e=void 0===t?"undefined":N(t);return!!t&&("object"==e||"function"==e)}function a(t){return!!t&&"object"==(void 0===t?"undefined":N(t))}function u(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,f,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function c(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function f(t){return t!=t}function s(t,e,r,n){var o=n?c:u,i=-1,a=e.length,f=t;for(t===e&&(e=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(e)),r&&(f=function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,function(t){return function(e){return t(e)}}(r)));++i<a;)for(var s=0,l=e[i],y=r?r(l):l;(s=o(f,y,s,n))>-1;)f!==t&&rt.call(f,s,1),rt.call(t,s,1);return t}function l(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,h,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function y(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function p(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function h(t){return t!=t}function m(t){return function(e){return t(e)}}function g(t,e){return t.has(e)}function b(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function d(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function v(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function w(t){var e=-1,r=t?t.length:0;for(this.__data__=new v;++e<r;)this.add(t[e])}function _(t,e){for(var r=t.length;r--;)if(function(t,e){return t===e||t!=t&&e!=e}(t[r][0],e))return r;return-1}function j(t){if(!A(t)||function(t){return!!bt&&bt in t}(t))return!1;return(T(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?_t:ft).test(function(t){if(null!=t){try{return dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function O(t){return function(t){return function(t){return!!t&&"object"==(void 0===t?"undefined":ot(t))}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=at}(t.length)&&!T(t)}(t)}(t)?t:[]}function S(t,e){var r=t.__data__;return function(t){var e=void 0===t?"undefined":ot(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function k(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return j(r)?r:void 0}function T(t){var e=A(t)?wt.call(t):"";return e==ut||e==ct}function A(t){var e=void 0===t?"undefined":ot(t);return!!t&&("object"==e||"function"==e)}function E(t){return"string"==typeof t?t.length>0?[t]:[]:t}var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M=1/0,V=9007199254740991,I=1.7976931348623157e308,P=NaN,C="[object Arguments]",L="[object Function]",K="[object GeneratorFunction]",x="[object String]",H="[object Symbol]",D=/^\s+|\s+$/g,W=/^[-+]0x[0-9a-f]+$/i,$=/^0b[01]+$/i,J=/^0o[0-7]+$/i,R=/^(?:0|[1-9]\d*)$/,F=parseInt,q=Object.prototype,B=q.hasOwnProperty,G=q.toString,Q=q.propertyIsEnumerable,U=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),z=Math.max,X=Array.isArray,Y=function(u,c,f,s){u=o(u)?u:function(t){return t?e(t,function(t){return o(t)?r(t):n(t)}(t)):[]}(u),f=f&&!s?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==(void 0===t?"undefined":N(t))||a(t)&&G.call(t)==H}(t))return P;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(D,"");var r=$.test(t);return r||J.test(t)?F(t.slice(2),r?2:8):W.test(t)?P:+t}(t))===M||t===-M){var e=t<0?-1:1;return e*I}return t==t?t:0}(t),r=e%1;return e==e?r?e-r:e:0}(f):0;var l=u.length;return f<0&&(f=z(l+f,0)),function(t){return"string"==typeof t||!X(t)&&a(t)&&G.call(t)==x}(u)?f<=l&&u.indexOf(c,f)>-1:!!l&&function(e,r,n){if(r!=r)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(e,t,n);for(var o=n-1,i=e.length;++o<i;)if(e[o]===r)return o;return-1}(u,c,f)>-1},Z="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t,e){t.exports=function(){var t="function"==typeof Promise,e="object"===("undefined"==typeof self?"undefined":tt(self))?self:Z,r="object"===("undefined"==typeof window?"undefined":tt(window))&&"document"in window&&"navigator"in window&&"HTMLElement"in window,n="undefined"!=typeof Symbol,o="undefined"!=typeof Map,i="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,f=n&&void 0!==Symbol.iterator,s=n&&void 0!==Symbol.toStringTag,l=i&&"function"==typeof Set.prototype.entries,y=o&&"function"==typeof Map.prototype.entries,p=l&&Object.getPrototypeOf((new Set).entries()),h=y&&Object.getPrototypeOf((new Map).entries()),m=f&&"function"==typeof Array.prototype[Symbol.iterator],g=m&&Object.getPrototypeOf([][Symbol.iterator]()),b=f&&"function"==typeof String.prototype[Symbol.iterator],d=b&&Object.getPrototypeOf(""[Symbol.iterator]()),v=8,w=-1;return function(n){var f=void 0===n?"undefined":tt(n);if("object"!==f)return f;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===s||!(Symbol.toStringTag in n)))return"Array";if(r){if(n===e.location)return"Location";if(n===e.document)return"Document";if(n===(e.navigator||{}).mimeTypes)return"MimeTypeArray";if(n===(e.navigator||{}).plugins)return"PluginArray";if(n instanceof e.HTMLElement&&"BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if(n instanceof e.HTMLElement&&"TD"===n.tagName)return"HTMLTableDataCellElement";if(n instanceof e.HTMLElement&&"TH"===n.tagName)return"HTMLTableHeaderCellElement"}var l=s&&n[Symbol.toStringTag];if("string"==typeof l)return l;var y=Object.getPrototypeOf(n);if(y===RegExp.prototype)return"RegExp";if(y===Date.prototype)return"Date";if(t&&y===Promise.prototype)return"Promise";if(i&&y===Set.prototype)return"Set";if(o&&y===Map.prototype)return"Map";if(u&&y===WeakSet.prototype)return"WeakSet";if(a&&y===WeakMap.prototype)return"WeakMap";if(c&&y===DataView.prototype)return"DataView";if(o&&y===h)return"Map Iterator";if(i&&y===p)return"Set Iterator";if(m&&y===g)return"Array Iterator";if(b&&y===d)return"String Iterator";if(null===y)return"Object";return Object.prototype.toString.call(n).slice(v,w)}}()}),rt=Array.prototype.splice,nt=function(t,e){return t&&t.length&&e&&e.length?s(t,e):t},ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it="__lodash_hash_undefined__",at=9007199254740991,ut="[object Function]",ct="[object GeneratorFunction]",ft=/^\[object .+?Constructor\]$/,st="object"==ot(Z)&&Z&&Z.Object===Object&&Z,lt="object"==("undefined"==typeof self?"undefined":ot(self))&&self&&self.Object===Object&&self,yt=st||lt||Function("return this")(),pt=Array.prototype,ht=Function.prototype,mt=Object.prototype,gt=yt["__core-js_shared__"],bt=function(){var t=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),dt=ht.toString,vt=mt.hasOwnProperty,wt=mt.toString,_t=RegExp("^"+dt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=pt.splice,Ot=Math.max,St=Math.min,kt=k(yt,"Map"),Tt=k(Object,"create");b.prototype.clear=function(){this.__data__=Tt?Tt(null):{}},b.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},b.prototype.get=function(t){var e=this.__data__;if(Tt){var r=e[t];return r===it?void 0:r}return vt.call(e,t)?e[t]:void 0},b.prototype.has=function(t){var e=this.__data__;return Tt?void 0!==e[t]:vt.call(e,t)},b.prototype.set=function(t,e){return this.__data__[t]=Tt&&void 0===e?it:e,this},d.prototype.clear=function(){this.__data__=[]},d.prototype.delete=function(t){var e=this.__data__,r=_(e,t);return!(r<0||(r==e.length-1?e.pop():jt.call(e,r,1),0))},d.prototype.get=function(t){var e=this.__data__,r=_(e,t);return r<0?void 0:e[r][1]},d.prototype.has=function(t){return _(this.__data__,t)>-1},d.prototype.set=function(t,e){var r=this.__data__,n=_(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},v.prototype.clear=function(){this.__data__={hash:new b,map:new(kt||d),string:new b}},v.prototype.delete=function(t){return S(this,t).delete(t)},v.prototype.get=function(t){return S(this,t).get(t)},v.prototype.has=function(t){return S(this,t).has(t)},v.prototype.set=function(t,e){return S(this,t).set(t,e),this},w.prototype.add=w.prototype.push=function(t){return this.__data__.set(t,it),this},w.prototype.has=function(t){return this.__data__.has(t)};var At=function(t,e){return e=Ot(void 0===e?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Ot(r.length-e,0),i=Array(o);++n<o;)i[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,a)}}(function(t){var e=p(t,O);return e.length&&e[0]===t[0]?function(t,e,r){for(var n=r?y:l,o=t[0].length,i=t.length,a=i,u=Array(i),c=1/0,f=[];a--;){var s=t[a];a&&e&&(s=p(s,m(e))),c=St(s.length,c),u[a]=!r&&(e||o>=120&&s.length>=120)?new w(a&&s):void 0}s=t[0];var h=-1,b=u[0];t:for(;++h<o&&f.length<c;){var d=s[h],v=e?e(d):d;if(d=r||0!==d?d:0,!(b?g(b,v):n(f,v,r))){for(a=i;--a;){var _=u[a];if(!(_?g(_,v):n(t[a],v,r)))continue t}b&&b.push(v),f.push(d)}}return f}(e):[]}),Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt="[object Object]",Mt=Function.prototype,Vt=Object.prototype,It=Mt.toString,Pt=Vt.hasOwnProperty,Ct=It.call(Object),Lt=Vt.toString,Kt=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),xt=function(t){if(!function(t){return!!t&&"object"==(void 0===t?"undefined":Et(t))}(t)||Lt.call(t)!=Nt||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=Kt(t);if(null===e)return!0;var r=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==Ct},Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return function(t,e){function r(t){return null!=t}if(!r(t))throw new Error("util-array-object-or-both/validate(): [THROW_ID_01] Please provide a string to work on. Currently it's equal to "+JSON.stringify(t,null,4));if("string"!=typeof t)throw new Error("util-array-object-or-both/validate(): [THROW_ID_02] Input must be string! Currently it's "+(void 0===t?"undefined":Ht(t))+", equal to: "+JSON.stringify(t,null,4));if(r(e)&&!xt(e))throw new Error("util-array-object-or-both/validate(): [THROW_ID_03] Second argument, options object, must be, well, object! Currenlty it's: "+(void 0===e?"undefined":Ht(e))+", equal to: "+JSON.stringify(e,null,4));var n={msg:"",optsVarName:"given variable"},o=Object.assign({},n,e);if(function(t,e,r){function n(t){return null!=t}function o(t){return"boolean"===et(t)}function i(t){return"string"===et(t)}function a(t){return"Object"===et(t)}var u=["any","anything","every","everything","all","whatever","whatevs"],c=Array.isArray;if(0===arguments.length)throw new Error("check-types-mini/checkTypes(): Missing all arguments!");if(1===arguments.length)throw new Error("check-types-mini/checkTypes(): Missing second argument!");var f=a(e)?e:{},s={ignoreKeys:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini/checkTypes()",optsVarName:"opts"},l=void 0;if(l=n(r)&&a(r)?Object.assign({},s,r):Object.assign({},s),!i(l.msg))throw new Error("check-types-mini/checkTypes(): opts.msg must be string! Currently it's: "+et(l.msg)+", equal to "+JSON.stringify(l.msg,null,4));if(l.msg=l.msg.trim(),":"===l.msg[l.msg.length-1]&&(l.msg=l.msg.slice(0,l.msg.length-1)),!i(l.optsVarName))throw new Error("check-types-mini/checkTypes(): opts.optsVarName must be string! Currently it's: "+et(l.optsVarName)+", equal to "+JSON.stringify(l.optsVarName,null,4));if(l.ignoreKeys=E(l.ignoreKeys),l.acceptArraysIgnore=E(l.acceptArraysIgnore),!c(l.ignoreKeys))throw new TypeError("check-types-mini/checkTypes(): opts.ignoreKeys should be an array, currently it's: "+et(l.ignoreKeys));if(!o(l.acceptArrays))throw new TypeError("check-types-mini/checkTypes(): opts.acceptArrays should be a Boolean, currently it's: "+et(l.acceptArrays));if(!c(l.acceptArraysIgnore))throw new TypeError("check-types-mini/checkTypes(): opts.acceptArraysIgnore should be an array, currently it's: "+et(l.acceptArraysIgnore));if(!o(l.enforceStrictKeyset))throw new TypeError("check-types-mini/checkTypes(): opts.enforceStrictKeyset should be a Boolean, currently it's: "+et(l.enforceStrictKeyset));if(Object.keys(l.schema).forEach(function(t){c(l.schema[t])||(l.schema[t]=[l.schema[t]]),l.schema[t]=l.schema[t].map(String).map(function(t){return t.toLowerCase()}).map(function(t){return t.trim()})}),l.enforceStrictKeyset)if(n(l.schema)&&Object.keys(l.schema).length>0){if(0!==nt(Object.keys(t),Object.keys(f).concat(Object.keys(l.schema))).length)throw new TypeError(l.msg+": "+l.optsVarName+".enforceStrictKeyset is on and the following keys are not covered by schema and/or reference objects: "+JSON.stringify(nt(Object.keys(t),Object.keys(f).concat(Object.keys(l.schema))),null,4))}else{if(!(n(f)&&Object.keys(f).length>0))throw new TypeError(l.msg+": Both "+l.optsVarName+".schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!");if(0!==nt(Object.keys(t),Object.keys(f)).length)throw new TypeError(l.msg+": The input object has keys that are not covered by reference object: "+JSON.stringify(nt(Object.keys(t),Object.keys(f)),null,4));if(0!==nt(Object.keys(f),Object.keys(t)).length)throw new TypeError(l.msg+": The reference object has keys that are not present in the input object: "+JSON.stringify(nt(Object.keys(f),Object.keys(t)),null,4))}Object.keys(t).forEach(function(e){if(n(l.schema)&&Object.prototype.hasOwnProperty.call(l.schema,e)){if(l.schema[e]=E(l.schema[e]).map(String).map(function(t){return t.toLowerCase()}),!At(l.schema[e],u).length&&!Y(l.schema[e],et(t[e]).toLowerCase())){if(!c(t[e])||!l.acceptArrays)throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not among the allowed types in schema ("+l.schema[e]+") but "+et(t[e]));for(var r=0,o=t[e].length;r<o;r++)if(!Y(l.schema[e],et(t[e][r]).toLowerCase()))throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" is of type "+et(t[e][r]).toLowerCase()+", but only the following are allowed in "+l.optsVarName+".schema: "+l.schema[e])}}else if(n(f)&&Object.prototype.hasOwnProperty.call(f,e)&&et(t[e])!==et(f[e])&&!Y(l.ignoreKeys,e)){if(!l.acceptArrays||!c(t[e])||Y(l.acceptArraysIgnore,e))throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not "+et(f[e])+" but "+et(t[e]));if(!t[e].every(function(t){return et(t)===et(f[e])}))throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" was customised to be array, but not all of its elements are "+et(f[e])+"-type")}})}(o,n,{msg:"util-array-object-or-both/validate(): [THROW_ID_03]",optsVarName:"opts",schema:{msg:["string",null],optsVarName:["string",null]}}),r(o.msg)&&o.msg.length>0&&(o.msg=o.msg.trim()+" "),"given variable"!==o.optsVarName&&(o.optsVarName='variable "'+o.optsVarName+'"'),Y(["object","objects","obj","ob","o"],t.toLowerCase().trim()))return"object";if(Y(["array","arrays","arr","aray","arr","a"],t.toLowerCase().trim()))return"array";if(Y(["any","all","everything","both","either","each","whatever","whatevs","e"],t.toLowerCase().trim()))return"any";throw new TypeError(o.msg+"The "+o.optsVarName+" was customised to an unrecognised value: "+t+". Please check it against the API documentation.")}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.arrObjOrBoth=e()}(this,function(){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=1/0,r=9007199254740991,n=1.7976931348623157e308,o=NaN,i="[object Arguments]",a="[object Function]",c="[object GeneratorFunction]",s="[object String]",u="[object Symbol]",f=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,p=/^0o[0-7]+$/i,h=/^(?:0|[1-9]\d*)$/,m=parseInt;function g(t){return t!=t}function b(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}var d,v,w=Object.prototype,_=w.hasOwnProperty,j=w.toString,O=w.propertyIsEnumerable,S=(d=Object.keys,v=Object,function(t){return d(v(t))}),k=Math.max;function T(t,e){var r,n,o=N(t)||I(n=r=t)&&M(n)&&_.call(r,"callee")&&(!O.call(r,"callee")||j.call(r)==i)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=o.length,c=!!a;for(var s in t)!e&&!_.call(t,s)||c&&("length"==s||E(s,a))||o.push(s);return o}function A(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||w,e!==n)return S(t);var e,r,n,o=[];for(var i in Object(t))_.call(t,i)&&"constructor"!=i&&o.push(i);return o}function E(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||h.test(t))&&t>-1&&t%1==0&&t<e}var N=Array.isArray;function M(t){return null!=t&&("number"==typeof(o=t.length)&&o>-1&&o%1==0&&o<=r)&&!((n=V(e=t)?j.call(e):"")==a||n==c);var e,n,o}function V(e){var r=void 0===e?"undefined":t(e);return!!e&&("object"==r||"function"==r)}function I(e){return!!e&&"object"==(void 0===e?"undefined":t(e))}var P=function(r,i,a,c){var h,d,v,w;r=M(r)?r:(h=r)?b(h,M(d=h)?T(d):A(d)):[],a=a&&!c?(v=function(r){if(!r)return 0===r?r:0;if((r=function(e){if("number"==typeof e)return e;if("symbol"==(void 0===(r=e)?"undefined":t(r))||I(r)&&j.call(r)==u)return o;var r;if(V(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=V(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var i=y.test(e);return i||p.test(e)?m(e.slice(2),i?2:8):l.test(e)?o:+e}(r))===e||r===-e){var i=r<0?-1:1;return i*n}return r==r?r:0}(a),w=v%1,v==v?w?v-w:v:0):0;var _,O=r.length;return a<0&&(a=k(O+a,0)),"string"==typeof(_=r)||!N(_)&&I(_)&&j.call(_)==s?a<=O&&r.indexOf(i,a)>-1:!!O&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,g,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(r,i,a)>-1},C="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var L,K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x=(function(t,e){var r,n,o,i,a,c,s,u,f,l,y,p,h,m,g,b,d,v,w,_,j;t.exports=(r="function"==typeof Promise,n="object"===("undefined"==typeof self?"undefined":K(self))?self:C,o="object"===("undefined"==typeof window?"undefined":K(window))&&"document"in window&&"navigator"in window&&"HTMLElement"in window,i="undefined"!=typeof Symbol,a="undefined"!=typeof Map,c="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,f="undefined"!=typeof DataView,l=i&&void 0!==Symbol.iterator,y=i&&void 0!==Symbol.toStringTag,p=c&&"function"==typeof Set.prototype.entries,h=a&&"function"==typeof Map.prototype.entries,m=p&&Object.getPrototypeOf((new Set).entries()),g=h&&Object.getPrototypeOf((new Map).entries()),b=l&&"function"==typeof Array.prototype[Symbol.iterator],d=b&&Object.getPrototypeOf([][Symbol.iterator]()),v=l&&"function"==typeof String.prototype[Symbol.iterator],w=v&&Object.getPrototypeOf(""[Symbol.iterator]()),_=8,j=-1,function(t){var e=void 0===t?"undefined":K(t);if("object"!==e)return e;if(null===t)return"null";if(t===n)return"global";if(Array.isArray(t)&&(!1===y||!(Symbol.toStringTag in t)))return"Array";if(o){if(t===n.location)return"Location";if(t===n.document)return"Document";if(t===(n.navigator||{}).mimeTypes)return"MimeTypeArray";if(t===(n.navigator||{}).plugins)return"PluginArray";if(t instanceof n.HTMLElement&&"BLOCKQUOTE"===t.tagName)return"HTMLQuoteElement";if(t instanceof n.HTMLElement&&"TD"===t.tagName)return"HTMLTableDataCellElement";if(t instanceof n.HTMLElement&&"TH"===t.tagName)return"HTMLTableHeaderCellElement"}var i=y&&t[Symbol.toStringTag];if("string"==typeof i)return i;var l=Object.getPrototypeOf(t);return l===RegExp.prototype?"RegExp":l===Date.prototype?"Date":r&&l===Promise.prototype?"Promise":c&&l===Set.prototype?"Set":a&&l===Map.prototype?"Map":u&&l===WeakSet.prototype?"WeakSet":s&&l===WeakMap.prototype?"WeakMap":f&&l===DataView.prototype?"DataView":a&&l===g?"Map Iterator":c&&l===m?"Set Iterator":b&&l===d?"Array Iterator":v&&l===w?"String Iterator":null===l?"Object":Object.prototype.toString.call(t).slice(_,j)})}(L={exports:{}},L.exports),L.exports);function H(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,W,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function D(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function W(t){return t!=t}var $=Array.prototype.splice;function J(t,e,r,n){var o,i=n?D:H,a=-1,c=e.length,s=t;for(t===e&&(e=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(e)),r&&(s=function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,(o=r,function(t){return o(t)})));++a<c;)for(var u=0,f=e[a],l=r?r(f):f;(u=i(s,l,u,n))>-1;)s!==t&&$.call(s,u,1),$.call(t,u,1);return t}var R=function(t,e){return t&&t.length&&e&&e.length?J(t,e):t},F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q="__lodash_hash_undefined__",B=9007199254740991,G="[object Function]",Q="[object GeneratorFunction]",U=/^\[object .+?Constructor\]$/,z="object"==F(C)&&C&&C.Object===Object&&C,X="object"==("undefined"==typeof self?"undefined":F(self))&&self&&self.Object===Object&&self,Y=z||X||Function("return this")();function Z(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,rt,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function tt(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function et(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function rt(t){return t!=t}function nt(t){return function(e){return t(e)}}function ot(t,e){return t.has(e)}var it,at,ct,st=Array.prototype,ut=Function.prototype,ft=Object.prototype,lt=Y["__core-js_shared__"],yt=(it=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+it:"",pt=ut.toString,ht=ft.hasOwnProperty,mt=ft.toString,gt=RegExp("^"+pt.call(ht).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=st.splice,dt=Math.max,vt=Math.min,wt=Mt(Y,"Map"),_t=Mt(Object,"create");function jt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.__data__=new St;++e<r;)this.add(t[e])}function Tt(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function At(t){return!(!It(t)||yt&&yt in t)&&(Vt(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?gt:U).test(function(t){if(null!=t){try{return pt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function Et(t){return(o=e=t)&&"object"==(void 0===o?"undefined":F(o))&&(null!=(r=e)&&("number"==typeof(n=r.length)&&n>-1&&n%1==0&&n<=B)&&!Vt(r))?t:[];var e,r,n,o}function Nt(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":F(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Mt(t,e){var r,n=null==(r=t)?void 0:r[e];return At(n)?n:void 0}function Vt(t){var e=It(t)?mt.call(t):"";return e==G||e==Q}function It(t){var e=void 0===t?"undefined":F(t);return!!t&&("object"==e||"function"==e)}jt.prototype.clear=function(){this.__data__=_t?_t(null):{}},jt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},jt.prototype.get=function(t){var e=this.__data__;if(_t){var r=e[t];return r===q?void 0:r}return ht.call(e,t)?e[t]:void 0},jt.prototype.has=function(t){var e=this.__data__;return _t?void 0!==e[t]:ht.call(e,t)},jt.prototype.set=function(t,e){return this.__data__[t]=_t&&void 0===e?q:e,this},Ot.prototype.clear=function(){this.__data__=[]},Ot.prototype.delete=function(t){var e=this.__data__,r=Tt(e,t);return!(r<0||(r==e.length-1?e.pop():bt.call(e,r,1),0))},Ot.prototype.get=function(t){var e=this.__data__,r=Tt(e,t);return r<0?void 0:e[r][1]},Ot.prototype.has=function(t){return Tt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var r=this.__data__,n=Tt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new jt,map:new(wt||Ot),string:new jt}},St.prototype.delete=function(t){return Nt(this,t).delete(t)},St.prototype.get=function(t){return Nt(this,t).get(t)},St.prototype.has=function(t){return Nt(this,t).has(t)},St.prototype.set=function(t,e){return Nt(this,t).set(t,e),this},kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,q),this},kt.prototype.has=function(t){return this.__data__.has(t)};var Pt=(at=function(t){var e=et(t,Et);return e.length&&e[0]===t[0]?function(t,e,r){for(var n=r?tt:Z,o=t[0].length,i=t.length,a=i,c=Array(i),s=1/0,u=[];a--;){var f=t[a];a&&e&&(f=et(f,nt(e))),s=vt(f.length,s),c[a]=!r&&(e||o>=120&&f.length>=120)?new kt(a&&f):void 0}f=t[0];var l=-1,y=c[0];t:for(;++l<o&&u.length<s;){var p=f[l],h=e?e(p):p;if(p=r||0!==p?p:0,!(y?ot(y,h):n(u,h,r))){for(a=i;--a;){var m=c[a];if(!(m?ot(m,h):n(t[a],h,r)))continue t}y&&y.push(h),u.push(p)}}return u}(e):[]},ct=dt(void 0===ct?at.length-1:ct,0),function(){for(var t=arguments,e=-1,r=dt(t.length-ct,0),n=Array(r);++e<r;)n[e]=t[ct+e];e=-1;for(var o=Array(ct+1);++e<ct;)o[e]=t[e];return o[ct]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(at,this,o)});function Ct(t){return"string"==typeof t?t.length>0?[t]:[]:t}var Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt="[object Object]";var xt,Ht,Dt=Function.prototype,Wt=Object.prototype,$t=Dt.toString,Jt=Wt.hasOwnProperty,Rt=$t.call(Object),Ft=Wt.toString,qt=(xt=Object.getPrototypeOf,Ht=Object,function(t){return xt(Ht(t))});var Bt=function(t){if(!(e=t)||"object"!=(void 0===e?"undefined":Lt(e))||Ft.call(t)!=Kt||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e,r=qt(t);if(null===r)return!0;var n=Jt.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&$t.call(n)==Rt},Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return function(t,e){function r(t){return null!=t}if(!r(t))throw new Error("util-array-object-or-both/validate(): [THROW_ID_01] Please provide a string to work on. Currently it's equal to "+JSON.stringify(t,null,4));if("string"!=typeof t)throw new Error("util-array-object-or-both/validate(): [THROW_ID_02] Input must be string! Currently it's "+(void 0===t?"undefined":Gt(t))+", equal to: "+JSON.stringify(t,null,4));if(r(e)&&!Bt(e))throw new Error("util-array-object-or-both/validate(): [THROW_ID_03] Second argument, options object, must be, well, object! Currenlty it's: "+(void 0===e?"undefined":Gt(e))+", equal to: "+JSON.stringify(e,null,4));var n={msg:"",optsVarName:"given variable"},o=Object.assign({},n,e);if(function(t,e,r){function n(t){return null!=t}function o(t){return"boolean"===x(t)}function i(t){return"string"===x(t)}function a(t){return"Object"===x(t)}var c=["any","anything","every","everything","all","whatever","whatevs"],s=Array.isArray;if(0===arguments.length)throw new Error("check-types-mini/checkTypes(): Missing all arguments!");if(1===arguments.length)throw new Error("check-types-mini/checkTypes(): Missing second argument!");var u=a(e)?e:{},f={ignoreKeys:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini/checkTypes()",optsVarName:"opts"},l=void 0;if(!i((l=n(r)&&a(r)?Object.assign({},f,r):Object.assign({},f)).msg))throw new Error("check-types-mini/checkTypes(): opts.msg must be string! Currently it's: "+x(l.msg)+", equal to "+JSON.stringify(l.msg,null,4));if(l.msg=l.msg.trim(),":"===l.msg[l.msg.length-1]&&(l.msg=l.msg.slice(0,l.msg.length-1)),!i(l.optsVarName))throw new Error("check-types-mini/checkTypes(): opts.optsVarName must be string! Currently it's: "+x(l.optsVarName)+", equal to "+JSON.stringify(l.optsVarName,null,4));if(l.ignoreKeys=Ct(l.ignoreKeys),l.acceptArraysIgnore=Ct(l.acceptArraysIgnore),!s(l.ignoreKeys))throw new TypeError("check-types-mini/checkTypes(): opts.ignoreKeys should be an array, currently it's: "+x(l.ignoreKeys));if(!o(l.acceptArrays))throw new TypeError("check-types-mini/checkTypes(): opts.acceptArrays should be a Boolean, currently it's: "+x(l.acceptArrays));if(!s(l.acceptArraysIgnore))throw new TypeError("check-types-mini/checkTypes(): opts.acceptArraysIgnore should be an array, currently it's: "+x(l.acceptArraysIgnore));if(!o(l.enforceStrictKeyset))throw new TypeError("check-types-mini/checkTypes(): opts.enforceStrictKeyset should be a Boolean, currently it's: "+x(l.enforceStrictKeyset));if(Object.keys(l.schema).forEach(function(t){s(l.schema[t])||(l.schema[t]=[l.schema[t]]),l.schema[t]=l.schema[t].map(String).map(function(t){return t.toLowerCase()}).map(function(t){return t.trim()})}),l.enforceStrictKeyset)if(n(l.schema)&&Object.keys(l.schema).length>0){if(0!==R(Object.keys(t),Object.keys(u).concat(Object.keys(l.schema))).length)throw new TypeError(l.msg+": "+l.optsVarName+".enforceStrictKeyset is on and the following keys are not covered by schema and/or reference objects: "+JSON.stringify(R(Object.keys(t),Object.keys(u).concat(Object.keys(l.schema))),null,4))}else{if(!(n(u)&&Object.keys(u).length>0))throw new TypeError(l.msg+": Both "+l.optsVarName+".schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!");if(0!==R(Object.keys(t),Object.keys(u)).length)throw new TypeError(l.msg+": The input object has keys that are not covered by reference object: "+JSON.stringify(R(Object.keys(t),Object.keys(u)),null,4));if(0!==R(Object.keys(u),Object.keys(t)).length)throw new TypeError(l.msg+": The reference object has keys that are not present in the input object: "+JSON.stringify(R(Object.keys(u),Object.keys(t)),null,4))}Object.keys(t).forEach(function(e){if(n(l.schema)&&Object.prototype.hasOwnProperty.call(l.schema,e)){if(l.schema[e]=Ct(l.schema[e]).map(String).map(function(t){return t.toLowerCase()}),!Pt(l.schema[e],c).length&&!P(l.schema[e],x(t[e]).toLowerCase())){if(!s(t[e])||!l.acceptArrays)throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not among the allowed types in schema ("+l.schema[e]+") but "+x(t[e]));for(var r=0,o=t[e].length;r<o;r++)if(!P(l.schema[e],x(t[e][r]).toLowerCase()))throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" is of type "+x(t[e][r]).toLowerCase()+", but only the following are allowed in "+l.optsVarName+".schema: "+l.schema[e])}}else if(n(u)&&Object.prototype.hasOwnProperty.call(u,e)&&x(t[e])!==x(u[e])&&!P(l.ignoreKeys,e)){if(!l.acceptArrays||!s(t[e])||P(l.acceptArraysIgnore,e))throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not "+x(u[e])+" but "+x(t[e]));if(!t[e].every(function(t){return x(t)===x(u[e])}))throw new TypeError(l.msg+": "+l.optsVarName+"."+e+" was customised to be array, but not all of its elements are "+x(u[e])+"-type")}})}(o,n,{msg:"util-array-object-or-both/validate(): [THROW_ID_03]",optsVarName:"opts",schema:{msg:["string",null],optsVarName:["string",null]}}),r(o.msg)&&o.msg.length>0&&(o.msg=o.msg.trim()+" "),"given variable"!==o.optsVarName&&(o.optsVarName='variable "'+o.optsVarName+'"'),P(["object","objects","obj","ob","o"],t.toLowerCase().trim()))return"object";if(P(["array","arrays","arr","aray","arr","a"],t.toLowerCase().trim()))return"array";if(P(["any","all","everything","both","either","each","whatever","whatevs","e"],t.toLowerCase().trim()))return"any";throw new TypeError(o.msg+"The "+o.optsVarName+" was customised to an unrecognised value: "+t+". Please check it against the API documentation.")}});

@@ -1,20 +0,9 @@

The MIT License (MIT)
MIT License (MIT)
Copyright © 2017 Roy Revelt / Codsen Ltd
Copyright © 2018 Codsen Ltd, Roy Revelt
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
{
"name": "util-array-object-or-both",
"version": "2.0.0",
"version": "2.0.1",
"description": "Validate and normalise user choice: array, object or both?",

@@ -80,6 +80,6 @@ "license": "MIT",

"Code*",
"Design",
"Documentation*",
"Design",
"Event Organizers",
"Examples",
"Event Organizers",
"Financial Support",

@@ -91,7 +91,7 @@ "Funding/Grant Finders",

"Reviewed Pull Requests",
"Talks",
"Tests*",
"Tools",
"Translation",
"Tests*",
"Tutorials",
"Talks",
"Videos"

@@ -128,3 +128,3 @@ ],

"dependencies": {
"check-types-mini": "^3.0.0",
"check-types-mini": "^3.0.2",
"lodash.includes": "*",

@@ -137,15 +137,15 @@ "lodash.isplainobject": "*"

"coveralls": "*",
"eslint": "^4.12.1",
"eslint": "^4.15.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-ava": "^4.3.0",
"eslint-plugin-ava": "^4.4.0",
"eslint-plugin-import": "^2.8.0",
"husky": "*",
"nyc": "*",
"rollup": "^0.52.1",
"rollup-plugin-babel": "^3.0.2",
"rollup": "^0.54.0",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-uglify": "^2.0.1",
"uglify-es": "^3.2.1"
"uglify-es": "^3.3.5"
}
}

@@ -53,5 +53,5 @@ # util-array-object-or-both

----------------|-----------------------|-------|--------
Main export - **CommonJS version**, transpiled, contains `require` and `module.exports` | `main` | `dist/util-array-object-or-both.cjs.js` | 3&nbsp;KB
Main export - **CommonJS version**, transpiled to ES5, contains `require` and `module.exports` | `main` | `dist/util-array-object-or-both.cjs.js` | 3&nbsp;KB
**ES module** build that Webpack/Rollup understands. Untranspiled ES6 code with `import`/`export`. | `module` | `dist/util-array-object-or-both.esm.js` | 2&nbsp;KB
**UMD build** for browsers, transpiled, minified, containing `iife`'s and has all dependencies baked-in | `browser` | `dist/util-array-object-or-both.umd.js` | 18&nbsp;KB
**UMD build** for browsers, transpiled, minified, containing `iife`'s and has all dependencies baked-in | `browser` | `dist/util-array-object-or-both.umd.js` | 17&nbsp;KB

@@ -189,5 +189,5 @@ **[⬆ &nbsp;back to top](#)**

* If you don't like the code in here and would like to **give an advice** about how something could be done better, please do. Same drill - [GitHub issues](https://github.com/codsen/util-array-object-or-both/issues) or [email](mailto:roy@codsen.com), your choice.
* If you don't like the code in here and would like to **give advice** about how something could be done better, please do. Same drill - [GitHub issues](https://github.com/codsen/util-array-object-or-both/issues) or [email](mailto:roy@codsen.com), your choice.
* If you would like to **add or change some features**, just fork it, hack away, and file a pull request. I'll do my best to merge it quickly. Code style is `airbnb`, only without semicolons. If you use a good code editor, it will pick up the established ESLint setup.
* If you would like to **add or change some features**, just fork it, hack away, and file a pull request. I'll do my best to merge it quickly. Code style is `airbnb-base`, only without semicolons. If you use a good code editor, it will pick up the established ESLint setup.

@@ -200,3 +200,3 @@ **[⬆ &nbsp;back to top](#)**

Copyright © 2017 Codsen Ltd, Roy Revelt
Copyright © 2018 Codsen Ltd, Roy Revelt

@@ -203,0 +203,0 @@ [node-img]: https://img.shields.io/node/v/util-array-object-or-both.svg?style=flat-square&label=works%20on%20node

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc