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.4 to 1.14.0

13

CHANGES.md

@@ -1,6 +0,15 @@

## [HEAD]
## [v1.14.0]
- Added `toBeGreaterThanOrEqualTo` and `toBeLessThanOrEqualTo` ([#11] and [#59])
[v1.14.0]: https://github.com/mjackson/expect/compare/v1.13.4...v1.14.0
[#11]: https://github.com/mjackson/expect/issues/11
[#59]: https://github.com/mjackson/expect/issues/59
## [v1.13.4]
> Dec 16, 2015
- Fixed comparing two arrays of nested objects when the first items are not equal ([#53])
[HEAD]: https://github.com/mjackson/expect/compare/latest...HEAD
[v1.13.4]: https://github.com/mjackson/expect/compare/v1.13.3...v1.13.4
[#53]: https://github.com/mjackson/expect/issues/53

@@ -7,0 +16,0 @@

@@ -149,2 +149,12 @@ 'use strict';

Expectation.prototype.toBeLessThanOrEqualTo = function toBeLessThanOrEqualTo(value, message) {
_assert2['default'](typeof this.actual === 'number', 'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number');
_assert2['default'](typeof value === 'number', 'The "value" argument in toBeLessThanOrEqualTo(value) must be a number');
_assert2['default'](this.actual <= value, message || 'Expected %s to be less than or equal to %s', this.actual, value);
return this;
};
Expectation.prototype.toBeGreaterThan = function toBeGreaterThan(value, message) {

@@ -160,2 +170,12 @@ _assert2['default'](typeof this.actual === 'number', 'The "actual" argument in expect(actual).toBeGreaterThan() must be a number');

Expectation.prototype.toBeGreaterThanOrEqualTo = function toBeGreaterThanOrEqualTo(value, message) {
_assert2['default'](typeof this.actual === 'number', 'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number');
_assert2['default'](typeof value === 'number', 'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number');
_assert2['default'](this.actual >= value, message || 'Expected %s to be greater than or equal to %s', this.actual, value);
return this;
};
Expectation.prototype.toInclude = function toInclude(value, compareValues, message) {

@@ -162,0 +182,0 @@ _assert2['default'](_TestUtils.isArray(this.actual) || typeof this.actual === 'string', 'The "actual" argument in expect(actual).toInclude() must be an array or a string');

@@ -70,2 +70,6 @@ 'use strict';

spy.reset = function () {
spy.calls = [];
};
spy.restore = spy.destroy = restore;

@@ -72,0 +76,0 @@

@@ -224,2 +224,23 @@ import isEqual from 'is-equal'

toBeLessThanOrEqualTo(value, message) {
assert(
typeof this.actual === 'number',
'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number'
)
assert(
typeof value === 'number',
'The "value" argument in toBeLessThanOrEqualTo(value) must be a number'
)
assert(
this.actual <= value,
(message || 'Expected %s to be less than or equal to %s'),
this.actual,
value
)
return this
}
toBeGreaterThan(value, message) {

@@ -246,2 +267,23 @@ assert(

toBeGreaterThanOrEqualTo(value, message) {
assert(
typeof this.actual === 'number',
'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'
)
assert(
typeof value === 'number',
'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'
)
assert(
this.actual >= value,
(message || 'Expected %s to be greater than or equal to %s'),
this.actual,
value
)
return this
}
toInclude(value, compareValues, message) {

@@ -386,3 +428,3 @@ assert(

}
}

@@ -389,0 +431,0 @@

@@ -59,2 +59,6 @@ import assert from './assert'

spy.reset = function () {
spy.calls = []
}
spy.restore = spy.destroy = restore

@@ -61,0 +65,0 @@

2

package.json
{
"name": "expect",
"version": "1.13.4",
"version": "1.14.0",
"description": "Write better assertions",

@@ -5,0 +5,0 @@ "main": "lib/index",

# expect [![Travis][build-badge]][build] [![npm package][npm-badge]][npm]
[build-badge]: https://img.shields.io/travis/mjackson/expect/master.svg?style=flat-square
[build]: https://travis-ci.org/mjackson/expect
[npm-badge]: https://img.shields.io/npm/v/expect.svg?style=flat-square
[npm]: https://www.npmjs.org/package/expect
[expect](https://github.com/mjackson/expect) lets you write better assertions.

@@ -155,4 +161,4 @@

```js
expect(new User).toBeA(User)
expect(new Asset).toBeAn(Asset)
expect(new Asset).toNotBeA(User)
expect(new User).toNotBeAn(Asset)
```

@@ -168,3 +174,4 @@

```js
expect(2).toBeA('number')
expect('a string').toNotBeA('number')
expect(2).toNotBeAn('object')
```

@@ -193,2 +200,12 @@

### toBeLessThanOrEqualTo
> `expect(number).toBeLessThanOrEqualTo(value, [message])`<br>
Asserts the given `number` is less than or equal to `value`.
```js
expect(2).toBeLessThanOrEqualTo(3)
```
### toBeGreaterThan

@@ -205,2 +222,12 @@

### toBeGreaterThanOrEqualTo
> `expect(number).toBeGreaterThanOrEqualTo(value, [message])`<br>
Asserts the given `number` is greater than or equal to `value`.
```js
expect(3).toBeGreaterThanOrEqualTo(2)
```
### toInclude

@@ -252,2 +279,32 @@

### (spy) toHaveBeenCalled
> `expect(spy).toHaveBeenCalled([message])`
Asserts the given `spy` function has been called at least once.
```js
expect(spy).toHaveBeenCalled()
```
### (spy) toNotHaveBeenCalled
> `expect(spy).toNotHaveBeenCalled([message])`
Asserts the given `spy` function has *not* been called.
```js
expect(spy).toNotHaveBeenCalled()
```
### (spy) toHaveBeenCalledWith
> `expect(spy).toHaveBeenCalledWith(...args)`
Asserts the given `spy` function has been called with the expected arguments.
```js
expect(spy).toHaveBeenCalledWith('foo', 'bar')
```
## Chaining Assertions

@@ -310,3 +367,3 @@

expect.spyOn(video, 'play')
var spy = expect.spyOn(video, 'play')
video.play()

@@ -394,2 +451,8 @@

### reset
> `spy.reset()`
Clears out all saved calls to the spy.
## Extending expect

@@ -415,3 +478,4 @@

- [expect-jsx](https://github.com/algolia/expect-jsx) Add things like `expect(ReactComponent).toEqualJSX(<TestComponent prop="yes" />)`
- [expect-element](https://github.com/mjackson/expect-element) Adds assertions that are useful for DOM elements
- [expect-jsx](https://github.com/algolia/expect-jsx) Adds things like `expect(ReactComponent).toEqualJSX(<TestComponent prop="yes" />)`

@@ -421,7 +485,1 @@ ## Issues

Please file issues on the [issue tracker on GitHub](https://github.com/mjackson/expect/issues).
[build-badge]: https://img.shields.io/travis/mjackson/expect/master.svg?style=flat-square
[build]: https://travis-ci.org/mjackson/expect
[npm-badge]: https://img.shields.io/npm/v/expect.svg?style=flat-square
[npm]: https://www.npmjs.org/package/expect

@@ -243,2 +243,12 @@ (function webpackUniversalModuleDefinition(root, factory) {

Expectation.prototype.toBeLessThanOrEqualTo = function toBeLessThanOrEqualTo(value, message) {
_assert2['default'](typeof this.actual === 'number', 'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number');
_assert2['default'](typeof value === 'number', 'The "value" argument in toBeLessThanOrEqualTo(value) must be a number');
_assert2['default'](this.actual <= value, message || 'Expected %s to be less than or equal to %s', this.actual, value);
return this;
};
Expectation.prototype.toBeGreaterThan = function toBeGreaterThan(value, message) {

@@ -254,2 +264,12 @@ _assert2['default'](typeof this.actual === 'number', 'The "actual" argument in expect(actual).toBeGreaterThan() must be a number');

Expectation.prototype.toBeGreaterThanOrEqualTo = function toBeGreaterThanOrEqualTo(value, message) {
_assert2['default'](typeof this.actual === 'number', 'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number');
_assert2['default'](typeof value === 'number', 'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number');
_assert2['default'](this.actual >= value, message || 'Expected %s to be greater than or equal to %s', this.actual, value);
return this;
};
Expectation.prototype.toInclude = function toInclude(value, compareValues, message) {

@@ -1257,2 +1277,6 @@ _assert2['default'](_TestUtils.isArray(this.actual) || typeof this.actual === 'string', 'The "actual" argument in expect(actual).toInclude() must be an array or a string');

spy.reset = function () {
spy.calls = [];
};
spy.restore = spy.destroy = restore;

@@ -1259,0 +1283,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(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}}])});
!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.toBeLessThanOrEqualTo=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeLessThanOrEqualTo(value) must be a number'),s["default"](this.actual<=t,e||"Expected %s to be less than or equal to %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.toBeGreaterThanOrEqualTo=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'),s["default"](this.actual>=t,e||"Expected %s to be greater than or equal to %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.reset=function(){a.calls=[]},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)(),T=Object.getPrototypeOf;T||(T="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 j=Array.isArray||function(t){return"[object Array]"===o.call(t)},O=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},E=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 w(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 B=y(t),_=y(e);if(B||_)return B&&_&&String(t)===String(e);var A=l(t),N=l(e);if(A||N)return A&&N&&+t===+e;var C=p(t),F=p(e);if(C||F)return C&&F&&String(t)===String(e);var q=j(t),L=j(e);if(q||L){if(!q||!L)return!1;if(t.length!==e.length)return!1;if(String(t)!==String(e))return!1;for(var P=t.length-1,D=!0;D&&P>=0;)D=a(t,P)&&a(e,P)&&w(t[P],e[P]),P-=1;return D}var G=h(t),H=h(e);if(G!==H)return!1;if(G&&H)return v.call(t)===v.call(e);var R=s(t),$=s(e);if(R!==$)return!1;var z=i(t),I=i(e);if(z!==I)return!1;if(d(t)||d(e)){if(m&&!w(t.name,e.name))return!1;if(!w(t.length,e.length))return!1;var W=O(String(t)),k=O(String(e));return w(W,k)?!0:R||z?w(W,k):w(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(T(t)!==T(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&&!w(V,X))return!1;while(!V.done&&!X.done);return V.done===X.done}}else if(S.Map||S.Set){var tt=E(t),et=E(e);if(j(tt)!==j(et))return!1;if(tt&&et)return w(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&&!w(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&&!w(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(!T)return!1;try{return T.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,T=x&&S&&"function"==typeof S.get?S.get:null,j=x&&Set.prototype.forEach;t.exports=function E(t,e,l,g){function b(t,n){return n&&(g=g.slice(),g.push(n)),E(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 w="<"+String(t.nodeName).toLowerCase(),M=t.attributes||[],B=0;B<M.length;B++)w+=" "+M[B].name+'="'+n(M[B].value)+'"';return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+String(t.nodeName).toLowerCase()+">"}if(r(t)){if(0===t.length)return"[]";for(var _=Array(t.length),B=0;B<t.length;B++)_[B]=c(t,B)?b(t[B],t):"";return"[ "+_.join(", ")+" ]"}if(a(t)){var A=[];for(var N in t)c(t,N)&&(/[^\w$]/.test(N)?A.push(b(N)+": "+b(t[N])):A.push(N+": "+b(t[N])));return 0===A.length?"["+t+"]":"{ ["+t+"] "+A.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if(p(t)){var A=[];return v.call(t,function(e,n){A.push(b(n,t)+" => "+b(e,t))}),"Map ("+m.call(t)+") {"+A.join(", ")+"}"}if(y(t)){var A=[];return j.call(t,function(e){A.push(b(e,t))}),"Set ("+T.call(t)+") {"+A.join(", ")+"}"}if("object"!=typeof t||o(t)||u(t))return String(t);var _=[],C=[];for(var N in t)c(t,N)&&C.push(N);C.sort();for(var B=0;B<C.length;B++){var N=C[B];/[^\w$]/.test(N)?_.push(b(N)+": "+b(t[N],t)):_.push(N+": "+b(t[N],t))}return 0===_.length?"{}":"{ "+_.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