Socket
Socket
Sign inDemoInstall

expect

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect - npm Package Compare versions

Comparing version 1.13.3 to 1.13.4

7

CHANGES.md

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

## [HEAD]
- Fixed comparing two arrays of nested objects when the first items are not equal ([#53])
[HEAD]: https://github.com/mjackson/expect/compare/latest...HEAD
[#53]: https://github.com/mjackson/expect/issues/53
## [v1.13.3]

@@ -2,0 +9,0 @@ > Dec 14, 2015

4

package.json
{
"name": "expect",
"version": "1.13.3",
"version": "1.13.4",
"description": "Write better assertions",
"main": "lib/index",
"dependencies": {
"is-equal": "^1.4.0",
"is-equal": "^1.4.2",
"is-regex": "^1.0.3",

@@ -9,0 +9,0 @@ "object-inspect": "^1.0.2"

@@ -72,3 +72,3 @@ # expect [![Travis][build-badge]][build] [![npm package][npm-badge]][npm]

Asserts that the given `object` equals `value` using [deep-equal](https://www.npmjs.com/package/deep-equal).
Asserts that the given `object` equals `value` using [is-equal](https://www.npmjs.com/package/is-equal).

@@ -79,3 +79,3 @@ ### toNotEqual

Asserts that the given `object` is not equal to `value` using [deep-equal](https://www.npmjs.com/package/deep-equal).
Asserts that the given `object` is not equal to `value` using [is-equal](https://www.npmjs.com/package/is-equal).

@@ -82,0 +82,0 @@ ### toThrow

@@ -67,9 +67,9 @@ (function webpackUniversalModuleDefinition(root, factory) {

var _SpyUtils = __webpack_require__(16);
var _SpyUtils = __webpack_require__(18);
var _assert = __webpack_require__(14);
var _assert = __webpack_require__(16);
var _assert2 = _interopRequireDefault(_assert);
var _extend = __webpack_require__(18);
var _extend = __webpack_require__(20);

@@ -112,9 +112,9 @@ var _extend2 = _interopRequireDefault(_extend);

var _assert = __webpack_require__(14);
var _assert = __webpack_require__(16);
var _assert2 = _interopRequireDefault(_assert);
var _SpyUtils = __webpack_require__(16);
var _SpyUtils = __webpack_require__(18);
var _TestUtils = __webpack_require__(17);
var _TestUtils = __webpack_require__(19);

@@ -382,2 +382,4 @@ /**

var isProto = Object.prototype.isPrototypeOf;
var foo = function foo() {};

@@ -387,13 +389,6 @@ var functionsHaveNames = foo.name === 'foo';

var symbolValue = typeof Symbol === 'function' ? Symbol.prototype.valueOf : null;
var symbolIterator = typeof Symbol === 'function' && isSymbol(Symbol.iterator) ? Symbol.iterator : null;
if (typeof Object.getOwnPropertyNames === 'function' && typeof Map === 'function' && typeof Map.prototype.entries === 'function') {
Object.getOwnPropertyNames(Map.prototype).forEach(function (name) {
if (name !== 'entries' && name !== 'size' && Map.prototype[name] === Map.prototype.entries) {
symbolIterator = name;
}
});
}
var mapForEach = typeof Map === 'function' ? Map.prototype.forEach : null;
var setForEach = typeof Set === 'function' ? Set.prototype.forEach : null;
var symbolIterator = __webpack_require__(14)();
var collectionsForEach = __webpack_require__(15)();
var getPrototypeOf = Object.getPrototypeOf;

@@ -436,3 +431,3 @@ if (!getPrototypeOf) {

try {
mapForEach.call(collection, function (key, value) {
collectionsForEach.Map.call(collection, function (key, value) {
foundEntries.push([key, value]);

@@ -442,3 +437,3 @@ });

try {
setForEach.call(collection, function (value) {
collectionsForEach.Set.call(collection, function (value) {
foundEntries.push([value]);

@@ -496,7 +491,9 @@ });

var index = value.length;
do {
var index = value.length - 1;
var equal = true;
while (equal && index >= 0) {
equal = has(value, index) && has(other, index) && isEqual(value[index], other[index]);
index -= 1;
} while (index > 0 && has(value, index) && has(other, index) && isEqual(value[index], other[index]));
return index <= 0;
}
return equal;
}

@@ -535,3 +532,3 @@

if (typeof value !== typeof other) { return false; }
if (value.isPrototypeOf(other) || other.isPrototypeOf(value)) { return false; }
if (isProto.call(value, other) || isProto.call(other, value)) { return false; }
if (getPrototypeOf(value) !== getPrototypeOf(other)) { return false; }

@@ -560,3 +557,3 @@

}
} else if (mapForEach || setForEach) {
} else if (collectionsForEach.Map || collectionsForEach.Set) {
var valueEntries = tryMapSetEntries(value);

@@ -917,2 +914,56 @@ var otherEntries = tryMapSetEntries(other);

var isSymbol = __webpack_require__(13);
module.exports = function getSymbolIterator() {
var symbolIterator = typeof Symbol === 'function' && isSymbol(Symbol.iterator) ? Symbol.iterator : null;
if (typeof Object.getOwnPropertyNames === 'function' && typeof Map === 'function' && typeof Map.prototype.entries === 'function') {
Object.getOwnPropertyNames(Map.prototype).forEach(function (name) {
if (name !== 'entries' && name !== 'size' && Map.prototype[name] === Map.prototype.entries) {
symbolIterator = name;
}
});
}
return symbolIterator;
};
/***/ },
/* 15 */
/***/ function(module, exports) {
'use strict';
module.exports = function () {
var mapForEach = (function () {
if (typeof Map !== 'function') { return null; }
try {
Map.prototype.forEach.call({}, function () {});
} catch (e) {
return Map.prototype.forEach;
}
return null;
}());
var setForEach = (function () {
if (typeof Set !== 'function') { return null; }
try {
Set.prototype.forEach.call({}, function () {});
} catch (e) {
return Set.prototype.forEach;
}
return null;
}());
return { Map: mapForEach, Set: setForEach };
};
/***/ },
/* 16 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;

@@ -922,3 +973,3 @@

var _objectInspect = __webpack_require__(15);
var _objectInspect = __webpack_require__(17);

@@ -945,5 +996,14 @@ var _objectInspect2 = _interopRequireDefault(_objectInspect);

/***/ },
/* 15 */
/* 17 */
/***/ function(module, exports) {
var hasMap = typeof Map === 'function' && Map.prototype;
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
var mapForEach = hasMap && Map.prototype.forEach;
var hasSet = typeof Set === 'function' && Set.prototype;
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
var setForEach = hasSet && Set.prototype.forEach;
module.exports = function inspect_ (obj, opts, depth, seen) {

@@ -1023,2 +1083,16 @@ if (!opts) opts = {};

}
else if (isMap(obj)) {
var parts = [];
mapForEach.call(obj, function (value, key) {
parts.push(inspect(key, obj) + ' => ' + inspect(value, obj));
});
return 'Map (' + mapSize.call(obj) + ') {' + parts.join(', ') + '}';
}
else if (isSet(obj)) {
var parts = [];
setForEach.call(obj, function (value ) {
parts.push(inspect(value, obj));
});
return 'Set (' + setSize.call(obj) + ') {' + parts.join(', ') + '}';
}
else if (typeof obj === 'object' && !isDate(obj) && !isRegExp(obj)) {

@@ -1076,2 +1150,24 @@ var xs = [], keys = [];

function isMap (x) {
if (!mapSize) {
return false;
}
try {
mapSize.call(x);
return true;
} catch (e) {}
return false;
}
function isSet (x) {
if (!setSize) {
return false;
}
try {
setSize.call(x);
return true;
} catch (e) {}
return false;
}
function isElement (x) {

@@ -1101,3 +1197,3 @@ if (!x || typeof x !== 'object') return false;

/***/ },
/* 16 */
/* 18 */
/***/ function(module, exports, __webpack_require__) {

@@ -1115,7 +1211,7 @@

var _assert = __webpack_require__(14);
var _assert = __webpack_require__(16);
var _assert2 = _interopRequireDefault(_assert);
var _TestUtils = __webpack_require__(17);
var _TestUtils = __webpack_require__(19);

@@ -1209,3 +1305,3 @@ function noop() {}

/***/ },
/* 17 */
/* 19 */
/***/ function(module, exports, __webpack_require__) {

@@ -1315,3 +1411,3 @@

/***/ },
/* 18 */
/* 20 */
/***/ function(module, exports, __webpack_require__) {

@@ -1318,0 +1414,0 @@

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new a["default"](t)}e.__esModule=!0;var u=n(3),a=r(u),i=n(4),c=n(1),l=r(c),s=n(8),f=r(s);o.createSpy=i.createSpy,o.spyOn=i.spyOn,o.isSpy=i.isSpy,o.restoreSpies=i.restoreSpies,o.assert=l["default"],o.extend=f["default"],e["default"]=o,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];if(!t){var u=0;throw new Error(e.replace(/%s/g,function(){return a["default"](r[u++])}))}}e.__esModule=!0;var u=n(18),a=r(u);e["default"]=o,t.exports=e["default"]},function(t,e){"use strict";var n=RegExp.prototype.exec,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object RegExp]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var u=n(7),a=r(u),i=n(2),c=r(i),l=n(1),s=r(l),f=n(4),p=n(5),y=function(){function t(e){o(this,t),this.actual=e,p.isFunction(e)&&(this.context=null,this.args=[])}return t.prototype.toExist=function(t){return s["default"](this.actual,t||"Expected %s to exist",this.actual),this},t.prototype.toNotExist=function(t){return s["default"](!this.actual,t||"Expected %s to not exist",this.actual),this},t.prototype.toBe=function(t,e){return s["default"](this.actual===t,e||"Expected %s to be %s",this.actual,t),this},t.prototype.toNotBe=function(t,e){return s["default"](this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this},t.prototype.toEqual=function(t,e){try{s["default"](a["default"](this.actual,t),e||"Expected %s to equal %s",this.actual,t)}catch(n){throw n.showDiff=!0,n.actual=this.actual,n.expected=t,n}return this},t.prototype.toNotEqual=function(t,e){return s["default"](!a["default"](this.actual,t),e||"Expected %s to not equal %s",this.actual,t),this},t.prototype.toThrow=function(t,e){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),s["default"](p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this},t.prototype.toNotThrow=function(t,e){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),s["default"](!p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this},t.prototype.toBeA=function(t,e){return s["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),s["default"](p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toNotBeA=function(t,e){return s["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),s["default"](!p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toMatch=function(t,e){return s["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toMatch() must be a string'),s["default"](c["default"](t),'The "value" argument in toMatch(value) must be a RegExp'),s["default"](t.test(this.actual),e||"Expected %s to match %s",this.actual,t),this},t.prototype.toNotMatch=function(t,e){return s["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toNotMatch() must be a string'),s["default"](c["default"](t),'The "value" argument in toNotMatch(value) must be a RegExp'),s["default"](!t.test(this.actual),e||"Expected %s to not match %s",this.actual,t),this},t.prototype.toBeLessThan=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),s["default"](this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this},t.prototype.toBeGreaterThan=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),s["default"](this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this},t.prototype.toInclude=function(t,e,n){return s["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toInclude() must be an array or a string'),"string"==typeof e&&(n=e,e=null),n=n||"Expected %s to include %s",p.isArray(this.actual)?s["default"](p.arrayContains(this.actual,t,e),n,this.actual,t):s["default"](p.stringContains(this.actual,t),n,this.actual,t),this},t.prototype.toExclude=function(t,e,n){return s["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toExclude() must be an array or a string'),"string"==typeof e&&(n=e,e=null),n=n||"Expected %s to exclude %s",p.isArray(this.actual)?s["default"](!p.arrayContains(this.actual,t,e),n,this.actual,t):s["default"](!p.stringContains(this.actual,t),n,this.actual,t),this},t.prototype.toHaveBeenCalled=function(t){var e=this.actual;return s["default"](f.isSpy(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),s["default"](e.calls.length>0,t||"spy was not called"),this},t.prototype.toHaveBeenCalledWith=function(){var t=this.actual;s["default"](f.isSpy(t),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy');var e=Array.prototype.slice.call(arguments,0);return s["default"](t.calls.some(function(t){return a["default"](t.arguments,e)}),"spy was never called with %s",e),this},t.prototype.toNotHaveBeenCalled=function(t){var e=this.actual;return s["default"](f.isSpy(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),s["default"](0===e.calls.length,t||"spy was not supposed to be called"),this},t.prototype.withContext=function(t){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},t.prototype.withArgs=function(){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=this.args.concat(Array.prototype.slice.call(arguments,0))),this},t}(),h={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude"};for(var d in h)y.prototype[d]=y.prototype[h[d]];e["default"]=y,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){}function u(t){var e=arguments.length<=1||void 0===arguments[1]?o:arguments[1];null==t&&(t=o),s["default"](f.isFunction(t),"createSpy needs a function");var n=void 0,r=void 0,u=void 0,a=function i(){if(i.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(r)throw r;return u};return a.calls=[],a.andCall=function(t){return n=t,a},a.andCallThrough=function(){return a.andCall(t)},a.andThrow=function(t){return r=t,a},a.andReturn=function(t){return u=t,a},a.getLastCall=function(){return a.calls[a.calls.length-1]},a.restore=a.destroy=e,a.__isSpy=!0,p.push(a),a}function a(t,e){var n=t[e];return i(n)||(s["default"](f.isFunction(n),"Cannot spyOn the %s property; it is not a function",e),t[e]=u(n,function(){t[e]=n})),t[e]}function i(t){return t&&t.__isSpy===!0}function c(){for(var t=p.length-1;t>=0;t--)p[t].restore();p=[]}e.__esModule=!0,e.createSpy=u,e.spyOn=a,e.isSpy=i,e.restoreSpies=c;var l=n(1),s=r(l),f=n(5),p=[]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n,r){try{t.apply(e,n)}catch(o){if(null==r)return!0;if(c(r)&&o instanceof r)return!0;var u=o.message||o;if("string"==typeof u){if(y["default"](r)&&r.test(o.message))return!0;if("string"==typeof r&&-1!==u.indexOf(r))return!0}}return!1}function u(t,e,n){return null==n&&(n=f["default"]),t.some(function(t){return n(t,e)!==!1})}function a(t,e){return-1!==t.indexOf(e)}function i(t){return Array.isArray(t)}function c(t){return"function"==typeof t}function l(t,e){return c(e)?t instanceof e:"array"===e?Array.isArray(t):typeof t===e}e.__esModule=!0,e.functionThrows=o,e.arrayContains=u,e.stringContains=a,e.isArray=i,e.isFunction=c,e.isA=l;var s=n(7),f=r(s),p=n(2),y=r(p)},function(t,e){"use strict";var n=/\s*class /,r=function(t){try{return!n.test(t)}catch(e){return!1}},o=Function.prototype.toString,u=function(t){try{return n.test(t)?!1:(o.call(t),!0)}catch(e){return!1}},a=Object.prototype.toString,i="[object Function]",c="[object GeneratorFunction]",l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return u(t);if(!r(t))return!1;var e=a.call(t);return e===i||e===c}},function(t,e,n){"use strict";var r=Object.prototype,o=r.toString,u=Boolean.prototype.valueOf,a=n(10),i=n(11),c=n(12),l=n(13),s=n(14),f=n(15),p=n(2),y=n(16),h=n(17),d=n(6),g=function(){},b="foo"===g.name,m="function"==typeof Symbol?Symbol.prototype.valueOf:null,v="function"==typeof Symbol&&h(Symbol.iterator)?Symbol.iterator:null;"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(t){"entries"!==t&&"size"!==t&&Map.prototype[t]===Map.prototype.entries&&(v=t)});var x="function"==typeof Map?Map.prototype.forEach:null,S="function"==typeof Set?Set.prototype.forEach:null,j=Object.getPrototypeOf;j||(j="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,n=t.constructor;if(a(t,"constructor")){if(e=n,!delete t.constructor)return null;n=t.constructor,t.constructor=e}return n?n.prototype:r});var T=Array.isArray||function(t){return"[object Array]"===o.call(t)},w=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},O=function(t){var e=[];try{x.call(t,function(t,n){e.push([t,n])})}catch(n){try{S.call(t,function(t){e.push([t])})}catch(r){return!1}}return e};t.exports=function E(t,e){if(t===e)return!0;if(null==t||null==e)return t===e;if(o.call(t)!==o.call(e))return!1;var n=c(t),r=c(e);if(n||r)return n&&r&&u.call(t)===u.call(e);var g=f(t),_=f(t);if(g||_)return g&&_&&(Number(t)===Number(e)||isNaN(t)&&isNaN(e));var A=y(t),B=y(e);if(A||B)return A&&B&&String(t)===String(e);var N=l(t),M=l(e);if(N||M)return N&&M&&+t===+e;var C=p(t),F=p(e);if(C||F)return C&&F&&String(t)===String(e);var L=T(t),H=T(e);if(L||H){if(!L||!H)return!1;if(t.length!==e.length)return!1;if(String(t)!==String(e))return!1;var P=t.length;do P-=1;while(P>0&&a(t,P)&&a(e,P)&&E(t[P],e[P]));return 0>=P}var G=h(t),R=h(e);if(G!==R)return!1;if(G&&R)return m.call(t)===m.call(e);var $=s(t),q=s(e);if($!==q)return!1;var D=i(t),I=i(e);if(D!==I)return!1;if(d(t)||d(e)){if(b&&!E(t.name,e.name))return!1;if(!E(t.length,e.length))return!1;var W=w(String(t)),z=w(String(e));return E(W,z)?!0:$||D?E(W,z):E(W.replace(/\)\s*\{/,"){"),z.replace(/\)\s*\{/,"){"))}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return!1;if(t.isPrototypeOf(e)||e.isPrototypeOf(t))return!1;if(j(t)!==j(e))return!1;if(v){var k=t[v],J=d(k),K=e[v],Q=d(K);if(J!==Q)return!1;if(J&&Q){var U,V,X=k.call(t),Y=K.call(e);do if(U=X.next(),V=Y.next(),!U.done&&!V.done&&!E(U,V))return!1;while(!U.done&&!V.done);return U.done===V.done}}else if(x||S){var Z=O(t),tt=O(e);if(T(Z)!==T(tt))return!1;if(Z&&tt)return E(Z,tt)}var et,nt,rt;for(et in t)if(a(t,et)){if(!a(e,et))return!1;if(nt=t[et]&&t[et][et]===t,rt=e[et]&&e[et][et]===e,nt!==rt)return!1;if(!nt&&!rt&&!E(t[et],e[et]))return!1}for(et in e)if(a(e,et)){if(!a(t,et))return!1;if(nt=t[et]&&t[et][et]===t,rt=e[et]&&e[et][et]===e,nt!==rt)return!1;if(!nt&&!rt&&!E(e[et],t[et]))return!1}return!0}return!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===i.indexOf(t)){i.push(t);for(var e in t)t.hasOwnProperty(e)&&(a["default"].prototype[e]=t[e])}}e.__esModule=!0;var u=n(3),a=r(u),i=[];e["default"]=o,t.exports=e["default"]},function(t,e){var n="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,u="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==u)throw new TypeError(n+e);for(var a=r.call(arguments,1),i=function(){if(this instanceof f){var n=e.apply(this,a.concat(r.call(arguments)));return Object(n)===n?n:this}return e.apply(t,a.concat(r.call(arguments)))},c=Math.max(0,e.length-a.length),l=[],s=0;c>s;s++)l.push("$"+s);var f=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(i);if(e.prototype){var p=function(){};p.prototype=e.prototype,f.prototype=new p,p.prototype=null}return f}},function(t,e,n){var r=n(9);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,n){"use strict";var r=n(6),o=Function.prototype.toString,u=/^\s*function/,a=/^\([^\)]*\) *=>/,i=/^[^=]*=>/;t.exports=function(t){if(!r(t))return!1;var e=o.call(t);return e.length>0&&!u.test(e)&&(a.test(e)||i.test(e))}},function(t,e){"use strict";var n=Boolean.prototype.toString,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Boolean]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";var n=Date.prototype.getDay,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Date]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";var n=Object.prototype.toString,r=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=n.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(r.call(t))}},function(t,e){"use strict";var n=Number.prototype.toString,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Number]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";var n=String.prototype.valueOf,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object String]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";var n=Object.prototype.toString,r="function"==typeof Symbol&&"symbol"==typeof Symbol();if(r){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,a=function(t){return"symbol"!=typeof t.valueOf()?!1:u.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return a(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e){function n(t){return String(t).replace(/"/g,"&quot;")}function r(t){return"[object Array]"===l(t)}function o(t){return"[object Date]"===l(t)}function u(t){return"[object RegExp]"===l(t)}function a(t){return"[object Error]"===l(t)}function i(t){return"[object Symbol]"===l(t)}function c(t,e){return h.call(t,e)}function l(t){return Object.prototype.toString.call(t)}function s(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function f(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1}function p(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function y(t){function e(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(16>e?"0":"")+e.toString(16)}var n=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+n+"'"}t.exports=function d(t,e,l,h){function g(t,n){return n&&(h=h.slice(),h.push(n)),d(t,e,l+1,h)}e||(e={});var b=void 0===e.depth?5:e.depth;if(void 0===l&&(l=0),l>=b&&b>0&&t&&"object"==typeof t)return"[Object]";if(void 0===h)h=[];else if(f(h,t)>=0)return"[Circular]";if("string"==typeof t)return y(t);if("function"==typeof t){var m=s(t);return"[Function"+(m?": "+m:"")+"]"}if(null===t)return"null";if(i(t)){var v=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+v+")":v}if(p(t)){for(var x="<"+String(t.nodeName).toLowerCase(),S=t.attributes||[],j=0;j<S.length;j++)x+=" "+S[j].name+'="'+n(S[j].value)+'"';return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+String(t.nodeName).toLowerCase()+">"}if(r(t)){if(0===t.length)return"[]";for(var T=Array(t.length),j=0;j<t.length;j++)T[j]=c(t,j)?g(t[j],t):"";return"[ "+T.join(", ")+" ]"}if(a(t)){var w=[];for(var O in t)c(t,O)&&(/[^\w$]/.test(O)?w.push(g(O)+": "+g(t[O])):w.push(O+": "+g(t[O])));return 0===w.length?"["+t+"]":"{ ["+t+"] "+w.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if("object"!=typeof t||o(t)||u(t))return String(t);var T=[],E=[];for(var O in t)c(t,O)&&E.push(O);E.sort();for(var j=0;j<E.length;j++){var O=E[j];/[^\w$]/.test(O)?T.push(g(O)+": "+g(t[O],t)):T.push(O+": "+g(t[O],t))}return 0===T.length?"{}":"{ "+T.join(", ")+" }"};var h=Object.prototype.hasOwnProperty||function(t){return t in this}}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new a["default"](t)}e.__esModule=!0;var u=n(3),a=r(u),i=n(4),c=n(1),l=r(c),s=n(9),f=r(s);o.createSpy=i.createSpy,o.spyOn=i.spyOn,o.isSpy=i.isSpy,o.restoreSpies=i.restoreSpies,o.assert=l["default"],o.extend=f["default"],e["default"]=o,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];if(!t){var u=0;throw new Error(e.replace(/%s/g,function(){return a["default"](r[u++])}))}}e.__esModule=!0;var u=n(20),a=r(u);e["default"]=o,t.exports=e["default"]},function(t,e){"use strict";var n=RegExp.prototype.exec,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object RegExp]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var u=n(7),a=r(u),i=n(2),c=r(i),l=n(1),s=r(l),f=n(4),p=n(5),y=function(){function t(e){o(this,t),this.actual=e,p.isFunction(e)&&(this.context=null,this.args=[])}return t.prototype.toExist=function(t){return s["default"](this.actual,t||"Expected %s to exist",this.actual),this},t.prototype.toNotExist=function(t){return s["default"](!this.actual,t||"Expected %s to not exist",this.actual),this},t.prototype.toBe=function(t,e){return s["default"](this.actual===t,e||"Expected %s to be %s",this.actual,t),this},t.prototype.toNotBe=function(t,e){return s["default"](this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this},t.prototype.toEqual=function(t,e){try{s["default"](a["default"](this.actual,t),e||"Expected %s to equal %s",this.actual,t)}catch(n){throw n.showDiff=!0,n.actual=this.actual,n.expected=t,n}return this},t.prototype.toNotEqual=function(t,e){return s["default"](!a["default"](this.actual,t),e||"Expected %s to not equal %s",this.actual,t),this},t.prototype.toThrow=function(t,e){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),s["default"](p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this},t.prototype.toNotThrow=function(t,e){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),s["default"](!p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this},t.prototype.toBeA=function(t,e){return s["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),s["default"](p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toNotBeA=function(t,e){return s["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),s["default"](!p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toMatch=function(t,e){return s["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toMatch() must be a string'),s["default"](c["default"](t),'The "value" argument in toMatch(value) must be a RegExp'),s["default"](t.test(this.actual),e||"Expected %s to match %s",this.actual,t),this},t.prototype.toNotMatch=function(t,e){return s["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toNotMatch() must be a string'),s["default"](c["default"](t),'The "value" argument in toNotMatch(value) must be a RegExp'),s["default"](!t.test(this.actual),e||"Expected %s to not match %s",this.actual,t),this},t.prototype.toBeLessThan=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),s["default"](this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this},t.prototype.toBeGreaterThan=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),s["default"](this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this},t.prototype.toInclude=function(t,e,n){return s["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toInclude() must be an array or a string'),"string"==typeof e&&(n=e,e=null),n=n||"Expected %s to include %s",p.isArray(this.actual)?s["default"](p.arrayContains(this.actual,t,e),n,this.actual,t):s["default"](p.stringContains(this.actual,t),n,this.actual,t),this},t.prototype.toExclude=function(t,e,n){return s["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toExclude() must be an array or a string'),"string"==typeof e&&(n=e,e=null),n=n||"Expected %s to exclude %s",p.isArray(this.actual)?s["default"](!p.arrayContains(this.actual,t,e),n,this.actual,t):s["default"](!p.stringContains(this.actual,t),n,this.actual,t),this},t.prototype.toHaveBeenCalled=function(t){var e=this.actual;return s["default"](f.isSpy(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),s["default"](e.calls.length>0,t||"spy was not called"),this},t.prototype.toHaveBeenCalledWith=function(){var t=this.actual;s["default"](f.isSpy(t),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy');var e=Array.prototype.slice.call(arguments,0);return s["default"](t.calls.some(function(t){return a["default"](t.arguments,e)}),"spy was never called with %s",e),this},t.prototype.toNotHaveBeenCalled=function(t){var e=this.actual;return s["default"](f.isSpy(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),s["default"](0===e.calls.length,t||"spy was not supposed to be called"),this},t.prototype.withContext=function(t){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},t.prototype.withArgs=function(){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=this.args.concat(Array.prototype.slice.call(arguments,0))),this},t}(),h={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude"};for(var d in h)y.prototype[d]=y.prototype[h[d]];e["default"]=y,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){}function u(t){var e=arguments.length<=1||void 0===arguments[1]?o:arguments[1];null==t&&(t=o),s["default"](f.isFunction(t),"createSpy needs a function");var n=void 0,r=void 0,u=void 0,a=function i(){if(i.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(r)throw r;return u};return a.calls=[],a.andCall=function(t){return n=t,a},a.andCallThrough=function(){return a.andCall(t)},a.andThrow=function(t){return r=t,a},a.andReturn=function(t){return u=t,a},a.getLastCall=function(){return a.calls[a.calls.length-1]},a.restore=a.destroy=e,a.__isSpy=!0,p.push(a),a}function a(t,e){var n=t[e];return i(n)||(s["default"](f.isFunction(n),"Cannot spyOn the %s property; it is not a function",e),t[e]=u(n,function(){t[e]=n})),t[e]}function i(t){return t&&t.__isSpy===!0}function c(){for(var t=p.length-1;t>=0;t--)p[t].restore();p=[]}e.__esModule=!0,e.createSpy=u,e.spyOn=a,e.isSpy=i,e.restoreSpies=c;var l=n(1),s=r(l),f=n(5),p=[]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n,r){try{t.apply(e,n)}catch(o){if(null==r)return!0;if(c(r)&&o instanceof r)return!0;var u=o.message||o;if("string"==typeof u){if(y["default"](r)&&r.test(o.message))return!0;if("string"==typeof r&&-1!==u.indexOf(r))return!0}}return!1}function u(t,e,n){return null==n&&(n=f["default"]),t.some(function(t){return n(t,e)!==!1})}function a(t,e){return-1!==t.indexOf(e)}function i(t){return Array.isArray(t)}function c(t){return"function"==typeof t}function l(t,e){return c(e)?t instanceof e:"array"===e?Array.isArray(t):typeof t===e}e.__esModule=!0,e.functionThrows=o,e.arrayContains=u,e.stringContains=a,e.isArray=i,e.isFunction=c,e.isA=l;var s=n(7),f=r(s),p=n(2),y=r(p)},function(t,e){"use strict";var n=/\s*class /,r=function(t){try{return!n.test(t)}catch(e){return!1}},o=Function.prototype.toString,u=function(t){try{return n.test(t)?!1:(o.call(t),!0)}catch(e){return!1}},a=Object.prototype.toString,i="[object Function]",c="[object GeneratorFunction]",l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return u(t);if(!r(t))return!1;var e=a.call(t);return e===i||e===c}},function(t,e,n){"use strict";var r=Object.prototype,o=r.toString,u=Boolean.prototype.valueOf,a=n(11),i=n(12),c=n(13),l=n(14),s=n(17),f=n(18),p=n(2),y=n(19),h=n(8),d=n(6),g=Object.prototype.isPrototypeOf,b=function(){},m="foo"===b.name,v="function"==typeof Symbol?Symbol.prototype.valueOf:null,x=n(16)(),S=n(15)(),j=Object.getPrototypeOf;j||(j="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,n=t.constructor;if(a(t,"constructor")){if(e=n,!delete t.constructor)return null;n=t.constructor,t.constructor=e}return n?n.prototype:r});var T=Array.isArray||function(t){return"[object Array]"===o.call(t)},O=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},w=function(t){var e=[];try{S.Map.call(t,function(t,n){e.push([t,n])})}catch(n){try{S.Set.call(t,function(t){e.push([t])})}catch(r){return!1}}return e};t.exports=function E(t,e){if(t===e)return!0;if(null==t||null==e)return t===e;if(o.call(t)!==o.call(e))return!1;var n=c(t),r=c(e);if(n||r)return n&&r&&u.call(t)===u.call(e);var b=f(t),M=f(t);if(b||M)return b&&M&&(Number(t)===Number(e)||isNaN(t)&&isNaN(e));var _=y(t),A=y(e);if(_||A)return _&&A&&String(t)===String(e);var B=l(t),N=l(e);if(B||N)return B&&N&&+t===+e;var C=p(t),F=p(e);if(C||F)return C&&F&&String(t)===String(e);var P=T(t),D=T(e);if(P||D){if(!P||!D)return!1;if(t.length!==e.length)return!1;if(String(t)!==String(e))return!1;for(var L=t.length-1,H=!0;H&&L>=0;)H=a(t,L)&&a(e,L)&&E(t[L],e[L]),L-=1;return H}var G=h(t),R=h(e);if(G!==R)return!1;if(G&&R)return v.call(t)===v.call(e);var $=s(t),q=s(e);if($!==q)return!1;var z=i(t),I=i(e);if(z!==I)return!1;if(d(t)||d(e)){if(m&&!E(t.name,e.name))return!1;if(!E(t.length,e.length))return!1;var W=O(String(t)),k=O(String(e));return E(W,k)?!0:$||z?E(W,k):E(W.replace(/\)\s*\{/,"){"),k.replace(/\)\s*\{/,"){"))}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return!1;if(g.call(t,e)||g.call(e,t))return!1;if(j(t)!==j(e))return!1;if(x){var J=t[x],K=d(J),Q=e[x],U=d(Q);if(K!==U)return!1;if(K&&U){var V,X,Y=J.call(t),Z=Q.call(e);do if(V=Y.next(),X=Z.next(),!V.done&&!X.done&&!E(V,X))return!1;while(!V.done&&!X.done);return V.done===X.done}}else if(S.Map||S.Set){var tt=w(t),et=w(e);if(T(tt)!==T(et))return!1;if(tt&&et)return E(tt,et)}var nt,rt,ot;for(nt in t)if(a(t,nt)){if(!a(e,nt))return!1;if(rt=t[nt]&&t[nt][nt]===t,ot=e[nt]&&e[nt][nt]===e,rt!==ot)return!1;if(!rt&&!ot&&!E(t[nt],e[nt]))return!1}for(nt in e)if(a(e,nt)){if(!a(t,nt))return!1;if(rt=t[nt]&&t[nt][nt]===t,ot=e[nt]&&e[nt][nt]===e,rt!==ot)return!1;if(!rt&&!ot&&!E(e[nt],t[nt]))return!1}return!0}return!1}},function(t,e){"use strict";var n=Object.prototype.toString,r="function"==typeof Symbol&&"symbol"==typeof Symbol();if(r){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,a=function(t){return"symbol"!=typeof t.valueOf()?!1:u.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return a(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===i.indexOf(t)){i.push(t);for(var e in t)t.hasOwnProperty(e)&&(a["default"].prototype[e]=t[e])}}e.__esModule=!0;var u=n(3),a=r(u),i=[];e["default"]=o,t.exports=e["default"]},function(t,e){var n="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,u="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==u)throw new TypeError(n+e);for(var a=r.call(arguments,1),i=function(){if(this instanceof f){var n=e.apply(this,a.concat(r.call(arguments)));return Object(n)===n?n:this}return e.apply(t,a.concat(r.call(arguments)))},c=Math.max(0,e.length-a.length),l=[],s=0;c>s;s++)l.push("$"+s);var f=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(i);if(e.prototype){var p=function(){};p.prototype=e.prototype,f.prototype=new p,p.prototype=null}return f}},function(t,e,n){var r=n(10);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,n){"use strict";var r=n(6),o=Function.prototype.toString,u=/^\s*function/,a=/^\([^\)]*\) *=>/,i=/^[^=]*=>/;t.exports=function(t){if(!r(t))return!1;var e=o.call(t);return e.length>0&&!u.test(e)&&(a.test(e)||i.test(e))}},function(t,e){"use strict";var n=Boolean.prototype.toString,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Boolean]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";var n=Date.prototype.getDay,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Date]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";t.exports=function(){var t=function(){if("function"!=typeof Map)return null;try{Map.prototype.forEach.call({},function(){})}catch(t){return Map.prototype.forEach}return null}(),e=function(){if("function"!=typeof Set)return null;try{Set.prototype.forEach.call({},function(){})}catch(t){return Set.prototype.forEach}return null}();return{Map:t,Set:e}}},function(t,e,n){"use strict";var r=n(8);t.exports=function(){var t="function"==typeof Symbol&&r(Symbol.iterator)?Symbol.iterator:null;return"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(e){"entries"!==e&&"size"!==e&&Map.prototype[e]===Map.prototype.entries&&(t=e)}),t}},function(t,e){"use strict";var n=Object.prototype.toString,r=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=n.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(r.call(t))}},function(t,e){"use strict";var n=Number.prototype.toString,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Number]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e){"use strict";var n=String.prototype.valueOf,r=function(t){try{return n.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object String]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:a?r(t):o.call(t)===u}},function(t,e){function n(t){return String(t).replace(/"/g,"&quot;")}function r(t){return"[object Array]"===l(t)}function o(t){return"[object Date]"===l(t)}function u(t){return"[object RegExp]"===l(t)}function a(t){return"[object Error]"===l(t)}function i(t){return"[object Symbol]"===l(t)}function c(t,e){return O.call(t,e)}function l(t){return Object.prototype.toString.call(t)}function s(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function f(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1}function p(t){if(!m)return!1;try{return m.call(t),!0}catch(e){}return!1}function y(t){if(!j)return!1;try{return j.call(t),!0}catch(e){}return!1}function h(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function d(t){function e(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(16>e?"0":"")+e.toString(16)}var n=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+n+"'"}var g="function"==typeof Map&&Map.prototype,b=Object.getOwnPropertyDescriptor&&g?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,m=g&&b&&"function"==typeof b.get?b.get:null,v=g&&Map.prototype.forEach,x="function"==typeof Set&&Set.prototype,S=Object.getOwnPropertyDescriptor&&x?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,j=x&&S&&"function"==typeof S.get?S.get:null,T=x&&Set.prototype.forEach;t.exports=function w(t,e,l,g){function b(t,n){return n&&(g=g.slice(),g.push(n)),w(t,e,l+1,g)}e||(e={});var x=void 0===e.depth?5:e.depth;if(void 0===l&&(l=0),l>=x&&x>0&&t&&"object"==typeof t)return"[Object]";if(void 0===g)g=[];else if(f(g,t)>=0)return"[Circular]";if("string"==typeof t)return d(t);if("function"==typeof t){var S=s(t);return"[Function"+(S?": "+S:"")+"]"}if(null===t)return"null";if(i(t)){var O=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+O+")":O}if(h(t)){for(var E="<"+String(t.nodeName).toLowerCase(),M=t.attributes||[],_=0;_<M.length;_++)E+=" "+M[_].name+'="'+n(M[_].value)+'"';return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+String(t.nodeName).toLowerCase()+">"}if(r(t)){if(0===t.length)return"[]";for(var A=Array(t.length),_=0;_<t.length;_++)A[_]=c(t,_)?b(t[_],t):"";return"[ "+A.join(", ")+" ]"}if(a(t)){var B=[];for(var N in t)c(t,N)&&(/[^\w$]/.test(N)?B.push(b(N)+": "+b(t[N])):B.push(N+": "+b(t[N])));return 0===B.length?"["+t+"]":"{ ["+t+"] "+B.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if(p(t)){var B=[];return v.call(t,function(e,n){B.push(b(n,t)+" => "+b(e,t))}),"Map ("+m.call(t)+") {"+B.join(", ")+"}"}if(y(t)){var B=[];return T.call(t,function(e){B.push(b(e,t))}),"Set ("+j.call(t)+") {"+B.join(", ")+"}"}if("object"!=typeof t||o(t)||u(t))return String(t);var A=[],C=[];for(var N in t)c(t,N)&&C.push(N);C.sort();for(var _=0;_<C.length;_++){var N=C[_];/[^\w$]/.test(N)?A.push(b(N)+": "+b(t[N],t)):A.push(N+": "+b(t[N],t))}return 0===A.length?"{}":"{ "+A.join(", ")+" }"};var O=Object.prototype.hasOwnProperty||function(t){return t in this}}])});
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