object-all-values-equal-to 2.1.0 → 3.0.3
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/CHANGELOG.md +30 -0
- package/README.md +4 -0
- package/dist/object-all-values-equal-to.esm.js +2 -2
- package/dist/object-all-values-equal-to.umd.js +2 -2
- package/package.json +50 -42
- package/dist/object-all-values-equal-to.cjs.js +0 -78
- package/dist/object-all-values-equal-to.dev.umd.js +0 -2081
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 3.0.3 (2021-11-02)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- bump TS and separate ESLint plugins away from this monorepo ([b1ebce1](https://github.com/codsen/codsen/commit/b1ebce1637d8c41c2d848fc24b0ba4058865bd5d))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- migrate to ES Modules ([c579dff](https://github.com/codsen/codsen/commit/c579dff3b23205e383035ca10ddcec671e35d0fe))
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
- programs now are in ES Modules and won't work with Common JS require()
|
|
19
|
+
|
|
20
|
+
## 3.0.1 (2021-09-13)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
- bump TS and separate ESLint plugins away from this monorepo ([2e07d42](https://github.com/codsen/codsen/commit/2e07d424222b6ffedf5fb45c83ad453627ec2904))
|
|
25
|
+
|
|
26
|
+
## 3.0.0 (2021-09-09)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
- migrate to ES Modules ([8c9d95d](https://github.com/codsen/codsen/commit/8c9d95d5dea0b769c2f070397141918a4893d575))
|
|
31
|
+
|
|
32
|
+
### BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
- programs now are in ES Modules and won't work with Common JS require()
|
|
35
|
+
|
|
6
36
|
## 2.1.0 (2021-05-24)
|
|
7
37
|
|
|
8
38
|
### Features
|
package/README.md
CHANGED
|
@@ -26,10 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
## Install
|
|
28
28
|
|
|
29
|
+
This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required:
|
|
30
|
+
|
|
29
31
|
```bash
|
|
30
32
|
npm i object-all-values-equal-to
|
|
31
33
|
```
|
|
32
34
|
|
|
35
|
+
If you need a legacy version which works with `require`, use version 2.1.0
|
|
36
|
+
|
|
33
37
|
## Quick Take
|
|
34
38
|
|
|
35
39
|
```js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-all-values-equal-to
|
|
3
3
|
* @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
|
|
4
|
-
* @version
|
|
4
|
+
* @version 3.0.3
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-all-values-equal-to/}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import isObj from 'lodash.isplainobject';
|
|
11
11
|
import isEq from 'lodash.isequal';
|
|
12
12
|
|
|
13
|
-
var version$1 = "
|
|
13
|
+
var version$1 = "3.0.3";
|
|
14
14
|
|
|
15
15
|
const version = version$1;
|
|
16
16
|
function allValuesEqualTo(input, value, opts) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-all-values-equal-to
|
|
3
3
|
* @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
|
|
4
|
-
* @version
|
|
4
|
+
* @version 3.0.3
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-all-values-equal-to/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).objectAllValuesEqualTo={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r,n,o=Object.prototype,i=Function.prototype.toString,a=o.hasOwnProperty,u=i.call(Object),c=o.toString,s=(r=Object.getPrototypeOf,n=Object,function(t){return r(n(t))});var f=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=c.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=s(t);if(null===e)return!0;var r=a.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&i.call(r)==u},l={exports:{}};!function(t,r){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",h="[object Number]",p="[object Object]",_="[object Promise]",y="[object RegExp]",v="[object Set]",d="[object String]",b="[object Symbol]",g="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",O=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[i]=A[a]=A[j]=A[u]=A[w]=A[c]=A[s]=A[f]=A[l]=A[h]=A[p]=A[y]=A[v]=A[d]=A[g]=!1;var z="object"==typeof e&&e&&e.Object===Object&&e,T="object"==typeof self&&self&&self.Object===Object&&self,S=z||T||Function("return this")(),P=r&&!r.nodeType&&r,x=P&&t&&!t.nodeType&&t,E=x&&x.exports===P,k=E&&z.process,$=function(){try{return k&&k.binding&&k.binding("util")}catch(t){}}(),F=$&&$.isTypedArray;function I(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function M(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function q(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var D,R=Array.prototype,U=Object.prototype,B=S["__core-js_shared__"],L=Function.prototype.toString,N=U.hasOwnProperty,W=(D=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",C=U.toString,H=RegExp("^"+L.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=E?S.Buffer:void 0,G=S.Symbol,J=S.Uint8Array,K=U.propertyIsEnumerable,Q=R.splice,X=G?G.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=V?V.isBuffer:void 0,tt=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),et=xt(S,"DataView"),rt=xt(S,"Map"),nt=xt(S,"Promise"),ot=xt(S,"Set"),it=xt(S,"WeakMap"),at=xt(Object,"create"),ut=Ft(et),ct=Ft(rt),st=Ft(nt),ft=Ft(ot),lt=Ft(it),ht=G?G.prototype:void 0,pt=ht?ht.valueOf:void 0;function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function dt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new vt;++e<r;)this.add(t[e])}function bt(t){var e=this.__data__=new yt(t);this.size=e.size}function gt(t,e){var r=qt(t),n=!r&&Mt(t),o=!r&&!n&&Dt(t),i=!r&&!n&&!o&&Nt(t),a=r||n||o||i,u=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length;for(var s in t)!e&&!N.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||$t(s,c))||u.push(s);return u}function jt(t,e){for(var r=t.length;r--;)if(It(t[r][0],e))return r;return-1}function wt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":X&&X in Object(t)?function(t){var e=N.call(t,X),r=t[X];try{t[X]=void 0;var n=!0}catch(t){}var o=C.call(t);n&&(e?t[X]=r:delete t[X]);return o}(t):function(t){return C.call(t)}(t)}function Ot(t){return Lt(t)&&wt(t)==i}function mt(t,e,r,n,o){return t===e||(null==t||null==e||!Lt(t)&&!Lt(e)?t!=t&&e!=e:function(t,e,r,n,o,f){var _=qt(t),g=qt(e),O=_?a:kt(t),m=g?a:kt(e),A=(O=O==i?p:O)==p,z=(m=m==i?p:m)==p,T=O==m;if(T&&Dt(t)){if(!Dt(e))return!1;_=!0,A=!1}if(T&&!A)return f||(f=new bt),_||Nt(t)?Tt(t,e,r,n,o,f):function(t,e,r,n,o,i,a){switch(r){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!i(new J(t),new J(e)));case u:case c:case h:return It(+t,+e);case s:return t.name==e.name&&t.message==e.message;case y:case d:return t==e+"";case l:var f=M;case v:if(f||(f=q),t.size!=e.size&&!(1&n))return!1;var p=a.get(t);if(p)return p==e;n|=2,a.set(t,e);var _=Tt(f(t),f(e),n,o,i,a);return a.delete(t),_;case b:if(pt)return pt.call(t)==pt.call(e)}return!1}(t,e,O,r,n,o,f);if(!(1&r)){var S=A&&N.call(t,"__wrapped__"),P=z&&N.call(e,"__wrapped__");if(S||P){var x=S?t.value():t,E=P?e.value():e;return f||(f=new bt),o(x,E,r,n,f)}}if(!T)return!1;return f||(f=new bt),function(t,e,r,n,o,i){var a=1&r,u=St(t),c=u.length,s=St(e);if(c!=s.length&&!a)return!1;var f=c;for(;f--;){var l=u[f];if(!(a?l in e:N.call(e,l)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var p=!0;i.set(t,e),i.set(e,t);var _=a;for(;++f<c;){var y=t[l=u[f]],v=e[l];if(n)var d=a?n(v,y,l,e,t,i):n(y,v,l,t,e,i);if(!(void 0===d?y===v||o(y,v,r,n,i):d)){p=!1;break}_||(_="constructor"==l)}if(p&&!_){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,n,o,f)}(t,e,r,n,mt,o))}function At(t){return!(!Bt(t)||function(t){return!!W&&W in t}(t))&&(Rt(t)?H:O).test(Ft(t))}function zt(t){if((e=t)!==("function"==typeof(r=e&&e.constructor)&&r.prototype||U))return tt(t);var e,r,n=[];for(var o in Object(t))N.call(t,o)&&"constructor"!=o&&n.push(o);return n}function Tt(t,e,r,n,o,i){var a=1&r,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,h=2&r?new dt:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var p=t[f],_=e[f];if(n)var y=a?n(_,p,f,e,t,i):n(p,_,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(h){if(!I(e,(function(t,e){if(!h.has(e)&&(p===t||o(p,t,r,n,i)))return h.push(e)}))){l=!1;break}}else if(p!==_&&!o(p,_,r,n,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function St(t){return function(t,e,r){var n=e(t);return qt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Wt,Et)}function Pt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function xt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return At(r)?r:void 0}_t.prototype.clear=function(){this.__data__=at?at(null):{},this.size=0},_t.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_t.prototype.get=function(t){var e=this.__data__;if(at){var r=e[t];return r===n?void 0:r}return N.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return at?void 0!==e[t]:N.call(e,t)},_t.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=at&&void 0===e?n:e,this},yt.prototype.clear=function(){this.__data__=[],this.size=0},yt.prototype.delete=function(t){var e=this.__data__,r=jt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Q.call(e,r,1),--this.size,!0)},yt.prototype.get=function(t){var e=this.__data__,r=jt(e,t);return r<0?void 0:e[r][1]},yt.prototype.has=function(t){return jt(this.__data__,t)>-1},yt.prototype.set=function(t,e){var r=this.__data__,n=jt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},vt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(rt||yt),string:new _t}},vt.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},vt.prototype.get=function(t){return Pt(this,t).get(t)},vt.prototype.has=function(t){return Pt(this,t).has(t)},vt.prototype.set=function(t,e){var r=Pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},dt.prototype.add=dt.prototype.push=function(t){return this.__data__.set(t,n),this},dt.prototype.has=function(t){return this.__data__.has(t)},bt.prototype.clear=function(){this.__data__=new yt,this.size=0},bt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},bt.prototype.get=function(t){return this.__data__.get(t)},bt.prototype.has=function(t){return this.__data__.has(t)},bt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!rt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new vt(n)}return r.set(t,e),this.size=r.size,this};var Et=Y?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}(Y(t),(function(e){return K.call(t,e)})))}:function(){return[]},kt=wt;function $t(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||m.test(t))&&t>-1&&t%1==0&&t<e}function Ft(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function It(t,e){return t===e||t!=t&&e!=e}(et&&kt(new et(new ArrayBuffer(1)))!=w||rt&&kt(new rt)!=l||nt&&kt(nt.resolve())!=_||ot&&kt(new ot)!=v||it&&kt(new it)!=g)&&(kt=function(t){var e=wt(t),r=e==p?t.constructor:void 0,n=r?Ft(r):"";if(n)switch(n){case ut:return w;case ct:return l;case st:return _;case ft:return v;case lt:return g}return e});var Mt=Ot(function(){return arguments}())?Ot:function(t){return Lt(t)&&N.call(t,"callee")&&!K.call(t,"callee")},qt=Array.isArray;var Dt=Z||function(){return!1};function Rt(t){if(!Bt(t))return!1;var e=wt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ut(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Lt(t){return null!=t&&"object"==typeof t}var Nt=F?function(t){return function(e){return t(e)}}(F):function(t){return Lt(t)&&Ut(t.length)&&!!A[wt(t)]};function Wt(t){return null!=(e=t)&&Ut(e.length)&&!Rt(e)?gt(t):zt(t);var e}t.exports=function(t,e){return mt(t,e)}}(l,l.exports);var h=l.exports;function p(t,e,r){if(Array.isArray(t)){if(0===t.length)return!0;if(r.arraysMustNotContainPlaceholders&&t.length>0&&t.some((t=>h(t,e))))return!1;for(let n=t.length;n--;)if(!p(t[n],e,r))return!1;return!0}if(f(t)){const n=Object.keys(t);if(0===n.length)return!0;for(let o=n.length;o--;)if(!p(t[n[o]],e,r))return!1;return!0}return h(t,e)}t.allEq=function(t,e,r){if(void 0===t)throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(void 0===e)throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!f(r))throw new Error(`object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ${typeof r}, equal to:\n${JSON.stringify(r,null,4)}`);return p(t,e,{arraysMustNotContainPlaceholders:!0,...r})},t.version="2.1.0",Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
10
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).objectAllValuesEqualTo={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r,n,o=Object.prototype,i=Function.prototype.toString,a=o.hasOwnProperty,u=i.call(Object),c=o.toString,s=(r=Object.getPrototypeOf,n=Object,function(t){return r(n(t))});var f=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=c.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=s(t);if(null===e)return!0;var r=a.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&i.call(r)==u},l={exports:{}};!function(t,r){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",h="[object Number]",p="[object Object]",_="[object Promise]",y="[object RegExp]",v="[object Set]",d="[object String]",b="[object Symbol]",g="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",O=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[i]=A[a]=A[j]=A[u]=A[w]=A[c]=A[s]=A[f]=A[l]=A[h]=A[p]=A[y]=A[v]=A[d]=A[g]=!1;var z="object"==typeof e&&e&&e.Object===Object&&e,T="object"==typeof self&&self&&self.Object===Object&&self,S=z||T||Function("return this")(),P=r&&!r.nodeType&&r,x=P&&t&&!t.nodeType&&t,E=x&&x.exports===P,k=E&&z.process,$=function(){try{return k&&k.binding&&k.binding("util")}catch(t){}}(),F=$&&$.isTypedArray;function I(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function M(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function q(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var D,R=Array.prototype,U=Object.prototype,B=S["__core-js_shared__"],L=Function.prototype.toString,N=U.hasOwnProperty,W=(D=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",C=U.toString,H=RegExp("^"+L.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=E?S.Buffer:void 0,G=S.Symbol,J=S.Uint8Array,K=U.propertyIsEnumerable,Q=R.splice,X=G?G.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=V?V.isBuffer:void 0,tt=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),et=xt(S,"DataView"),rt=xt(S,"Map"),nt=xt(S,"Promise"),ot=xt(S,"Set"),it=xt(S,"WeakMap"),at=xt(Object,"create"),ut=Ft(et),ct=Ft(rt),st=Ft(nt),ft=Ft(ot),lt=Ft(it),ht=G?G.prototype:void 0,pt=ht?ht.valueOf:void 0;function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function dt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new vt;++e<r;)this.add(t[e])}function bt(t){var e=this.__data__=new yt(t);this.size=e.size}function gt(t,e){var r=qt(t),n=!r&&Mt(t),o=!r&&!n&&Dt(t),i=!r&&!n&&!o&&Nt(t),a=r||n||o||i,u=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length;for(var s in t)!e&&!N.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||$t(s,c))||u.push(s);return u}function jt(t,e){for(var r=t.length;r--;)if(It(t[r][0],e))return r;return-1}function wt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":X&&X in Object(t)?function(t){var e=N.call(t,X),r=t[X];try{t[X]=void 0;var n=!0}catch(t){}var o=C.call(t);n&&(e?t[X]=r:delete t[X]);return o}(t):function(t){return C.call(t)}(t)}function Ot(t){return Lt(t)&&wt(t)==i}function mt(t,e,r,n,o){return t===e||(null==t||null==e||!Lt(t)&&!Lt(e)?t!=t&&e!=e:function(t,e,r,n,o,f){var _=qt(t),g=qt(e),O=_?a:kt(t),m=g?a:kt(e),A=(O=O==i?p:O)==p,z=(m=m==i?p:m)==p,T=O==m;if(T&&Dt(t)){if(!Dt(e))return!1;_=!0,A=!1}if(T&&!A)return f||(f=new bt),_||Nt(t)?Tt(t,e,r,n,o,f):function(t,e,r,n,o,i,a){switch(r){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!i(new J(t),new J(e)));case u:case c:case h:return It(+t,+e);case s:return t.name==e.name&&t.message==e.message;case y:case d:return t==e+"";case l:var f=M;case v:if(f||(f=q),t.size!=e.size&&!(1&n))return!1;var p=a.get(t);if(p)return p==e;n|=2,a.set(t,e);var _=Tt(f(t),f(e),n,o,i,a);return a.delete(t),_;case b:if(pt)return pt.call(t)==pt.call(e)}return!1}(t,e,O,r,n,o,f);if(!(1&r)){var S=A&&N.call(t,"__wrapped__"),P=z&&N.call(e,"__wrapped__");if(S||P){var x=S?t.value():t,E=P?e.value():e;return f||(f=new bt),o(x,E,r,n,f)}}if(!T)return!1;return f||(f=new bt),function(t,e,r,n,o,i){var a=1&r,u=St(t),c=u.length,s=St(e);if(c!=s.length&&!a)return!1;var f=c;for(;f--;){var l=u[f];if(!(a?l in e:N.call(e,l)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var p=!0;i.set(t,e),i.set(e,t);var _=a;for(;++f<c;){var y=t[l=u[f]],v=e[l];if(n)var d=a?n(v,y,l,e,t,i):n(y,v,l,t,e,i);if(!(void 0===d?y===v||o(y,v,r,n,i):d)){p=!1;break}_||(_="constructor"==l)}if(p&&!_){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,n,o,f)}(t,e,r,n,mt,o))}function At(t){return!(!Bt(t)||function(t){return!!W&&W in t}(t))&&(Rt(t)?H:O).test(Ft(t))}function zt(t){if((e=t)!==("function"==typeof(r=e&&e.constructor)&&r.prototype||U))return tt(t);var e,r,n=[];for(var o in Object(t))N.call(t,o)&&"constructor"!=o&&n.push(o);return n}function Tt(t,e,r,n,o,i){var a=1&r,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,h=2&r?new dt:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var p=t[f],_=e[f];if(n)var y=a?n(_,p,f,e,t,i):n(p,_,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(h){if(!I(e,(function(t,e){if(!h.has(e)&&(p===t||o(p,t,r,n,i)))return h.push(e)}))){l=!1;break}}else if(p!==_&&!o(p,_,r,n,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function St(t){return function(t,e,r){var n=e(t);return qt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Wt,Et)}function Pt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function xt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return At(r)?r:void 0}_t.prototype.clear=function(){this.__data__=at?at(null):{},this.size=0},_t.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_t.prototype.get=function(t){var e=this.__data__;if(at){var r=e[t];return r===n?void 0:r}return N.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return at?void 0!==e[t]:N.call(e,t)},_t.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=at&&void 0===e?n:e,this},yt.prototype.clear=function(){this.__data__=[],this.size=0},yt.prototype.delete=function(t){var e=this.__data__,r=jt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Q.call(e,r,1),--this.size,!0)},yt.prototype.get=function(t){var e=this.__data__,r=jt(e,t);return r<0?void 0:e[r][1]},yt.prototype.has=function(t){return jt(this.__data__,t)>-1},yt.prototype.set=function(t,e){var r=this.__data__,n=jt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},vt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(rt||yt),string:new _t}},vt.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},vt.prototype.get=function(t){return Pt(this,t).get(t)},vt.prototype.has=function(t){return Pt(this,t).has(t)},vt.prototype.set=function(t,e){var r=Pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},dt.prototype.add=dt.prototype.push=function(t){return this.__data__.set(t,n),this},dt.prototype.has=function(t){return this.__data__.has(t)},bt.prototype.clear=function(){this.__data__=new yt,this.size=0},bt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},bt.prototype.get=function(t){return this.__data__.get(t)},bt.prototype.has=function(t){return this.__data__.has(t)},bt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!rt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new vt(n)}return r.set(t,e),this.size=r.size,this};var Et=Y?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}(Y(t),(function(e){return K.call(t,e)})))}:function(){return[]},kt=wt;function $t(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||m.test(t))&&t>-1&&t%1==0&&t<e}function Ft(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function It(t,e){return t===e||t!=t&&e!=e}(et&&kt(new et(new ArrayBuffer(1)))!=w||rt&&kt(new rt)!=l||nt&&kt(nt.resolve())!=_||ot&&kt(new ot)!=v||it&&kt(new it)!=g)&&(kt=function(t){var e=wt(t),r=e==p?t.constructor:void 0,n=r?Ft(r):"";if(n)switch(n){case ut:return w;case ct:return l;case st:return _;case ft:return v;case lt:return g}return e});var Mt=Ot(function(){return arguments}())?Ot:function(t){return Lt(t)&&N.call(t,"callee")&&!K.call(t,"callee")},qt=Array.isArray;var Dt=Z||function(){return!1};function Rt(t){if(!Bt(t))return!1;var e=wt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ut(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Lt(t){return null!=t&&"object"==typeof t}var Nt=F?function(t){return function(e){return t(e)}}(F):function(t){return Lt(t)&&Ut(t.length)&&!!A[wt(t)]};function Wt(t){return null!=(e=t)&&Ut(e.length)&&!Rt(e)?gt(t):zt(t);var e}t.exports=function(t,e){return mt(t,e)}}(l,l.exports);var h=l.exports;function p(t,e,r){if(Array.isArray(t)){if(0===t.length)return!0;if(r.arraysMustNotContainPlaceholders&&t.length>0&&t.some((t=>h(t,e))))return!1;for(let n=t.length;n--;)if(!p(t[n],e,r))return!1;return!0}if(f(t)){const n=Object.keys(t);if(0===n.length)return!0;for(let o=n.length;o--;)if(!p(t[n[o]],e,r))return!1;return!0}return h(t,e)}t.allEq=function(t,e,r){if(void 0===t)throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(void 0===e)throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!f(r))throw new Error(`object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ${typeof r}, equal to:\n${JSON.stringify(r,null,4)}`);return p(t,e,{arraysMustNotContainPlaceholders:!0,...r})},t.version="3.0.3",Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "object-all-values-equal-to",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Does the AST/nested-plain-object/array/whatever contain only one kind of value?",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"all",
|
|
@@ -27,17 +27,21 @@
|
|
|
27
27
|
"email": "roy@codsen.com",
|
|
28
28
|
"url": "https://codsen.com"
|
|
29
29
|
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
30
|
+
"type": "module",
|
|
31
|
+
"exports": {
|
|
32
|
+
"script": "./dist/object-all-values-equal-to.umd.js",
|
|
33
|
+
"default": "./dist/object-all-values-equal-to.esm.js"
|
|
34
|
+
},
|
|
33
35
|
"types": "types/index.d.ts",
|
|
34
36
|
"scripts": {
|
|
35
37
|
"build": "rollup -c",
|
|
36
|
-
"esbuild": "node '../../scripts/esbuild.js'",
|
|
37
|
-
"esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
|
|
38
38
|
"ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov",
|
|
39
|
+
"clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
|
|
40
|
+
"clean_types": "../../scripts/cleanTypes.js",
|
|
39
41
|
"dev": "rollup -c --dev",
|
|
40
42
|
"devunittest": "npm run dev && tap --only -R 'base'",
|
|
43
|
+
"esbuild": "node '../../scripts/esbuild.js'",
|
|
44
|
+
"esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
|
|
41
45
|
"format": "npm run lect && npm run prettier && npm run lint",
|
|
42
46
|
"lect": "lect",
|
|
43
47
|
"lint": "../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet",
|
|
@@ -45,22 +49,22 @@
|
|
|
45
49
|
"prettier": "../../node_modules/prettier/bin-prettier.js '*.{js,css,scss,vue,md,ts}' --write --loglevel silent",
|
|
46
50
|
"republish": "npm publish || :",
|
|
47
51
|
"tap": "tap",
|
|
48
|
-
"tsc": "tsc",
|
|
49
52
|
"pretest": "npm run build",
|
|
50
53
|
"test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format",
|
|
51
54
|
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"clean_types": "../../scripts/cleanTypes.js"
|
|
55
|
+
"tsc": "tsc",
|
|
56
|
+
"unittest": "tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf"
|
|
55
57
|
},
|
|
56
58
|
"tap": {
|
|
59
|
+
"check-coverage": false,
|
|
57
60
|
"coverage-report": [
|
|
58
61
|
"json-summary",
|
|
59
62
|
"text"
|
|
60
63
|
],
|
|
61
|
-
"
|
|
62
|
-
"--
|
|
63
|
-
"--
|
|
64
|
+
"node-arg": [
|
|
65
|
+
"--no-warnings",
|
|
66
|
+
"--experimental-loader",
|
|
67
|
+
"@istanbuljs/esm-loader-hook"
|
|
64
68
|
],
|
|
65
69
|
"timeout": 0
|
|
66
70
|
},
|
|
@@ -79,47 +83,51 @@
|
|
|
79
83
|
}
|
|
80
84
|
},
|
|
81
85
|
"dependencies": {
|
|
82
|
-
"@babel/runtime": "^7.
|
|
86
|
+
"@babel/runtime": "^7.16.0",
|
|
83
87
|
"lodash.isequal": "^4.5.0",
|
|
84
88
|
"lodash.isplainobject": "^4.0.6"
|
|
85
89
|
},
|
|
86
90
|
"devDependencies": {
|
|
87
|
-
"@babel/cli": "^7.
|
|
88
|
-
"@babel/core": "^7.
|
|
89
|
-
"@babel/node": "^7.
|
|
90
|
-
"@babel/plugin-external-helpers": "^7.
|
|
91
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
92
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.
|
|
93
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
94
|
-
"@babel/plugin-proposal-optional-chaining": "^7.
|
|
95
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
96
|
-
"@babel/preset-env": "^7.
|
|
97
|
-
"@babel/preset-typescript": "^7.
|
|
98
|
-
"@babel/register": "^7.
|
|
91
|
+
"@babel/cli": "^7.16.0",
|
|
92
|
+
"@babel/core": "^7.16.0",
|
|
93
|
+
"@babel/node": "^7.16.0",
|
|
94
|
+
"@babel/plugin-external-helpers": "^7.16.0",
|
|
95
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
96
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
97
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
|
|
98
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
|
|
99
|
+
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
100
|
+
"@babel/preset-env": "^7.16.0",
|
|
101
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
102
|
+
"@babel/register": "^7.16.0",
|
|
103
|
+
"@istanbuljs/esm-loader-hook": "^0.1.2",
|
|
99
104
|
"@rollup/plugin-babel": "^5.3.0",
|
|
100
|
-
"@rollup/plugin-commonjs": "^
|
|
105
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
101
106
|
"@rollup/plugin-json": "^4.1.0",
|
|
102
|
-
"@rollup/plugin-node-resolve": "^13.0.
|
|
103
|
-
"@rollup/plugin-strip": "^2.0
|
|
104
|
-
"@rollup/plugin-typescript": "^8.
|
|
107
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
108
|
+
"@rollup/plugin-strip": "^2.1.0",
|
|
109
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
|
105
110
|
"@types/lodash.isequal": "^4.5.5",
|
|
106
111
|
"@types/lodash.isplainobject": "^4.0.6",
|
|
107
|
-
"@types/node": "^
|
|
108
|
-
"@types/tap": "^15.0.
|
|
109
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
110
|
-
"@typescript-eslint/parser": "^
|
|
111
|
-
"core-js": "^3.
|
|
112
|
+
"@types/node": "^16.11.6",
|
|
113
|
+
"@types/tap": "^15.0.5",
|
|
114
|
+
"@typescript-eslint/eslint-plugin": "^5.2.0",
|
|
115
|
+
"@typescript-eslint/parser": "^5.2.0",
|
|
116
|
+
"core-js": "^3.19.0",
|
|
112
117
|
"cross-env": "^7.0.3",
|
|
113
|
-
"eslint": "^
|
|
114
|
-
"lect": "^0.
|
|
115
|
-
"rollup": "^2.
|
|
118
|
+
"eslint": "^8.1.0",
|
|
119
|
+
"lect": "^0.18.3",
|
|
120
|
+
"rollup": "^2.59.0",
|
|
116
121
|
"rollup-plugin-ascii": "^0.0.3",
|
|
117
122
|
"rollup-plugin-banner": "^0.2.1",
|
|
118
123
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
119
|
-
"rollup-plugin-dts": "^
|
|
124
|
+
"rollup-plugin-dts": "^4.0.0",
|
|
120
125
|
"rollup-plugin-terser": "^7.0.2",
|
|
121
|
-
"tap": "^
|
|
122
|
-
"tslib": "^2.
|
|
123
|
-
"typescript": "^4.
|
|
126
|
+
"tap": "^15.0.10",
|
|
127
|
+
"tslib": "^2.3.1",
|
|
128
|
+
"typescript": "^4.4.4"
|
|
129
|
+
},
|
|
130
|
+
"engines": {
|
|
131
|
+
"node": ">=12"
|
|
124
132
|
}
|
|
125
133
|
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name object-all-values-equal-to
|
|
3
|
-
* @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
|
|
4
|
-
* @version 2.1.0
|
|
5
|
-
* @author Roy Revelt, Codsen Ltd
|
|
6
|
-
* @license MIT
|
|
7
|
-
* {@link https://codsen.com/os/object-all-values-equal-to/}
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
15
|
-
var _typeof = require('@babel/runtime/helpers/typeof');
|
|
16
|
-
var isObj = require('lodash.isplainobject');
|
|
17
|
-
var isEq = require('lodash.isequal');
|
|
18
|
-
|
|
19
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
-
|
|
21
|
-
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
22
|
-
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
23
|
-
var isObj__default = /*#__PURE__*/_interopDefaultLegacy(isObj);
|
|
24
|
-
var isEq__default = /*#__PURE__*/_interopDefaultLegacy(isEq);
|
|
25
|
-
|
|
26
|
-
var version$1 = "2.1.0";
|
|
27
|
-
|
|
28
|
-
var version = version$1;
|
|
29
|
-
function allValuesEqualTo(input, value, opts) {
|
|
30
|
-
if (Array.isArray(input)) {
|
|
31
|
-
if (input.length === 0) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
if (opts.arraysMustNotContainPlaceholders && input.length > 0 && input.some(function (el) {
|
|
35
|
-
return isEq__default['default'](el, value);
|
|
36
|
-
})) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
for (var i = input.length; i--;) {
|
|
40
|
-
if (!allValuesEqualTo(input[i], value, opts)) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
if (isObj__default['default'](input)) {
|
|
47
|
-
var keys = Object.keys(input);
|
|
48
|
-
if (keys.length === 0) {
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
for (var _i = keys.length; _i--;) {
|
|
52
|
-
if (!allValuesEqualTo(input[keys[_i]], value, opts)) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
return isEq__default['default'](input, value);
|
|
59
|
-
}
|
|
60
|
-
function allEq(inputOriginal, valueOriginal, originalOpts) {
|
|
61
|
-
if (inputOriginal === undefined) {
|
|
62
|
-
throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");
|
|
63
|
-
}
|
|
64
|
-
if (valueOriginal === undefined) {
|
|
65
|
-
throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");
|
|
66
|
-
}
|
|
67
|
-
if (originalOpts && !isObj__default['default'](originalOpts)) {
|
|
68
|
-
throw new Error("object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ".concat(_typeof__default['default'](originalOpts), ", equal to:\n").concat(JSON.stringify(originalOpts, null, 4)));
|
|
69
|
-
}
|
|
70
|
-
var defaults = {
|
|
71
|
-
arraysMustNotContainPlaceholders: true
|
|
72
|
-
};
|
|
73
|
-
var opts = _objectSpread__default['default'](_objectSpread__default['default']({}, defaults), originalOpts);
|
|
74
|
-
return allValuesEqualTo(inputOriginal, valueOriginal, opts);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
exports.allEq = allEq;
|
|
78
|
-
exports.version = version;
|