Update sinon and proxyquire (#8027)

* Use sinon@8.1.1
* Use proxyquire@2.1.3
* Move sinon mocking out of global scope into hooks
feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 4f3fc95d50
commit 7f3cf07f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      package.json
  2. 24
      ui/app/components/ui/button-group/tests/button-group-component.test.js
  3. 22
      ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-component.test.js
  4. 19
      ui/app/pages/send/send-content/send-dropdown-list/tests/send-dropdown-list-component.test.js
  5. 27
      ui/app/pages/send/send-footer/tests/send-footer-component.test.js
  6. 23
      ui/app/pages/send/send-header/tests/send-header-component.test.js
  7. 32
      ui/app/pages/send/tests/send-component.test.js
  8. 155
      yarn.lock

@ -250,7 +250,7 @@
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"nyc": "^15.0.0", "nyc": "^15.0.0",
"polyfill-crypto.getrandomvalues": "^1.0.0", "polyfill-crypto.getrandomvalues": "^1.0.0",
"proxyquire": "2.0.1", "proxyquire": "^2.1.3",
"qs": "^6.2.0", "qs": "^6.2.0",
"qunitjs": "^2.4.1", "qunitjs": "^2.4.1",
"react-devtools": "^4.4.0", "react-devtools": "^4.4.0",
@ -266,7 +266,7 @@
"serve-handler": "^6.1.2", "serve-handler": "^6.1.2",
"sesify": "^4.2.1", "sesify": "^4.2.1",
"sesify-viz": "^3.0.5", "sesify-viz": "^3.0.5",
"sinon": "^5.0.0", "sinon": "^8.1.1",
"source-map": "^0.7.2", "source-map": "^0.7.2",
"source-map-explorer": "^2.0.1", "source-map-explorer": "^2.0.1",
"string.prototype.matchall": "^4.0.2", "string.prototype.matchall": "^4.0.2",

@ -4,21 +4,23 @@ import { shallow } from 'enzyme'
import sinon from 'sinon' import sinon from 'sinon'
import ButtonGroup from '../button-group.component.js' import ButtonGroup from '../button-group.component.js'
const childButtonSpies = { describe('ButtonGroup Component', function () {
onClick: sinon.spy(), let wrapper
}
sinon.spy(ButtonGroup.prototype, 'handleButtonClick') const childButtonSpies = {
sinon.spy(ButtonGroup.prototype, 'renderButtons') onClick: sinon.spy(),
}
const mockButtons = [ const mockButtons = [
<button onClick={childButtonSpies.onClick} key="a"><div className="mockClass" /></button>, <button onClick={childButtonSpies.onClick} key="a"><div className="mockClass" /></button>,
<button onClick={childButtonSpies.onClick} key="b"></button>, <button onClick={childButtonSpies.onClick} key="b"></button>,
<button onClick={childButtonSpies.onClick} key="c"></button>, <button onClick={childButtonSpies.onClick} key="c"></button>,
] ]
describe('ButtonGroup Component', function () { before(function () {
let wrapper sinon.spy(ButtonGroup.prototype, 'handleButtonClick')
sinon.spy(ButtonGroup.prototype, 'renderButtons')
})
beforeEach(function () { beforeEach(function () {
wrapper = shallow(( wrapper = shallow((
@ -39,6 +41,10 @@ describe('ButtonGroup Component', function () {
ButtonGroup.prototype.renderButtons.resetHistory() ButtonGroup.prototype.renderButtons.resetHistory()
}) })
after(function () {
sinon.restore()
})
describe('componentDidUpdate', function () { describe('componentDidUpdate', function () {
it('should set the activeButtonIndex to the updated newActiveButtonIndex', function () { it('should set the activeButtonIndex to the updated newActiveButtonIndex', function () {
assert.equal(wrapper.state('activeButtonIndex'), 1) assert.equal(wrapper.state('activeButtonIndex'), 1)

@ -4,18 +4,20 @@ import { shallow } from 'enzyme'
import sinon from 'sinon' import sinon from 'sinon'
import AmountMaxButton from '../amount-max-button.component.js' import AmountMaxButton from '../amount-max-button.component.js'
const propsMethodSpies = { describe('AmountMaxButton Component', function () {
let wrapper
let instance
const propsMethodSpies = {
setAmountToMax: sinon.spy(), setAmountToMax: sinon.spy(),
setMaxModeTo: sinon.spy(), setMaxModeTo: sinon.spy(),
} }
const MOCK_EVENT = { preventDefault: () => {} }
sinon.spy(AmountMaxButton.prototype, 'setMaxAmount') const MOCK_EVENT = { preventDefault: () => {} }
describe('AmountMaxButton Component', function () { before(function () {
let wrapper sinon.spy(AmountMaxButton.prototype, 'setMaxAmount')
let instance })
beforeEach(function () { beforeEach(function () {
wrapper = shallow(( wrapper = shallow((
@ -43,6 +45,10 @@ describe('AmountMaxButton Component', function () {
AmountMaxButton.prototype.setMaxAmount.resetHistory() AmountMaxButton.prototype.setMaxAmount.resetHistory()
}) })
after(function () {
sinon.restore()
})
describe('setMaxAmount', function () { describe('setMaxAmount', function () {
it('should call setAmountToMax with the correct params', function () { it('should call setAmountToMax with the correct params', function () {

@ -3,18 +3,19 @@ import assert from 'assert'
import { shallow } from 'enzyme' import { shallow } from 'enzyme'
import sinon from 'sinon' import sinon from 'sinon'
import SendDropdownList from '../send-dropdown-list.component.js' import SendDropdownList from '../send-dropdown-list.component.js'
import AccountListItem from '../../../account-list-item/account-list-item.container' import AccountListItem from '../../../account-list-item/account-list-item.container'
const propsMethodSpies = { describe('SendDropdownList Component', function () {
let wrapper
const propsMethodSpies = {
closeDropdown: sinon.spy(), closeDropdown: sinon.spy(),
onSelect: sinon.spy(), onSelect: sinon.spy(),
} }
sinon.spy(SendDropdownList.prototype, 'getListItemIcon')
describe('SendDropdownList Component', function () { before(function () {
let wrapper sinon.spy(SendDropdownList.prototype, 'getListItemIcon')
})
beforeEach(function () { beforeEach(function () {
wrapper = shallow(( wrapper = shallow((
@ -37,6 +38,10 @@ describe('SendDropdownList Component', function () {
SendDropdownList.prototype.getListItemIcon.resetHistory() SendDropdownList.prototype.getListItemIcon.resetHistory()
}) })
after(function () {
sinon.restore()
})
describe('getListItemIcon', function () { describe('getListItemIcon', function () {
it('should return check icon if the passed addresses are the same', function () { it('should return check icon if the passed addresses are the same', function () {
assert.deepEqual( assert.deepEqual(

@ -4,25 +4,26 @@ import { shallow } from 'enzyme'
import sinon from 'sinon' import sinon from 'sinon'
import { CONFIRM_TRANSACTION_ROUTE, DEFAULT_ROUTE } from '../../../../helpers/constants/routes' import { CONFIRM_TRANSACTION_ROUTE, DEFAULT_ROUTE } from '../../../../helpers/constants/routes'
import SendFooter from '../send-footer.component.js' import SendFooter from '../send-footer.component.js'
import PageContainerFooter from '../../../../components/ui/page-container/page-container-footer' import PageContainerFooter from '../../../../components/ui/page-container/page-container-footer'
const propsMethodSpies = { describe('SendFooter Component', function () {
let wrapper
const propsMethodSpies = {
addToAddressBookIfNew: sinon.spy(), addToAddressBookIfNew: sinon.spy(),
clearSend: sinon.spy(), clearSend: sinon.spy(),
sign: sinon.spy(), sign: sinon.spy(),
update: sinon.spy(), update: sinon.spy(),
} }
const historySpies = { const historySpies = {
push: sinon.spy(), push: sinon.spy(),
} }
const MOCK_EVENT = { preventDefault: () => {} } const MOCK_EVENT = { preventDefault: () => {} }
sinon.spy(SendFooter.prototype, 'onCancel')
sinon.spy(SendFooter.prototype, 'onSubmit')
describe('SendFooter Component', function () { before(function () {
let wrapper sinon.spy(SendFooter.prototype, 'onCancel')
sinon.spy(SendFooter.prototype, 'onSubmit')
})
beforeEach(function () { beforeEach(function () {
wrapper = shallow(( wrapper = shallow((
@ -62,6 +63,10 @@ describe('SendFooter Component', function () {
SendFooter.prototype.onSubmit.resetHistory() SendFooter.prototype.onSubmit.resetHistory()
}) })
after(function () {
sinon.restore()
})
describe('onCancel', function () { describe('onCancel', function () {
it('should call clearSend', function () { it('should call clearSend', function () {
assert.equal(propsMethodSpies.clearSend.callCount, 0) assert.equal(propsMethodSpies.clearSend.callCount, 0)

@ -4,20 +4,21 @@ import { shallow } from 'enzyme'
import sinon from 'sinon' import sinon from 'sinon'
import { DEFAULT_ROUTE } from '../../../../helpers/constants/routes' import { DEFAULT_ROUTE } from '../../../../helpers/constants/routes'
import SendHeader from '../send-header.component.js' import SendHeader from '../send-header.component.js'
import PageContainerHeader from '../../../../components/ui/page-container/page-container-header' import PageContainerHeader from '../../../../components/ui/page-container/page-container-header'
const propsMethodSpies = { describe('SendHeader Component', function () {
let wrapper
const propsMethodSpies = {
clearSend: sinon.spy(), clearSend: sinon.spy(),
} }
const historySpies = { const historySpies = {
push: sinon.spy(), push: sinon.spy(),
} }
sinon.spy(SendHeader.prototype, 'onClose')
describe('SendHeader Component', function () { before(function () {
let wrapper sinon.spy(SendHeader.prototype, 'onClose')
})
beforeEach(function () { beforeEach(function () {
wrapper = shallow(( wrapper = shallow((
@ -35,6 +36,10 @@ describe('SendHeader Component', function () {
SendHeader.prototype.onClose.resetHistory() SendHeader.prototype.onClose.resetHistory()
}) })
after(function () {
sinon.restore()
})
describe('onClose', function () { describe('onClose', function () {
it('should call clearSend', function () { it('should call clearSend', function () {
assert.equal(propsMethodSpies.clearSend.callCount, 0) assert.equal(propsMethodSpies.clearSend.callCount, 0)

@ -10,11 +10,14 @@ import SendHeader from '../send-header/send-header.container'
import SendContent from '../send-content/send-content.container' import SendContent from '../send-content/send-content.container'
import SendFooter from '../send-footer/send-footer.container' import SendFooter from '../send-footer/send-footer.container'
const mockBasicGasEstimates = { describe('Send Component', function () {
let wrapper
const mockBasicGasEstimates = {
blockTime: 'mockBlockTime', blockTime: 'mockBlockTime',
} }
const propsMethodSpies = { const propsMethodSpies = {
updateAndSetGasLimit: sinon.spy(), updateAndSetGasLimit: sinon.spy(),
updateSendErrors: sinon.spy(), updateSendErrors: sinon.spy(),
updateSendTokenBalance: sinon.spy(), updateSendTokenBalance: sinon.spy(),
@ -22,22 +25,21 @@ const propsMethodSpies = {
fetchBasicGasEstimates: sinon.stub().returns(Promise.resolve(mockBasicGasEstimates)), fetchBasicGasEstimates: sinon.stub().returns(Promise.resolve(mockBasicGasEstimates)),
fetchGasEstimates: sinon.spy(), fetchGasEstimates: sinon.spy(),
updateToNicknameIfNecessary: sinon.spy(), updateToNicknameIfNecessary: sinon.spy(),
} }
const utilsMethodStubs = { const utilsMethodStubs = {
getAmountErrorObject: sinon.stub().returns({ amount: 'mockAmountError' }), getAmountErrorObject: sinon.stub().returns({ amount: 'mockAmountError' }),
getGasFeeErrorObject: sinon.stub().returns({ gasFee: 'mockGasFeeError' }), getGasFeeErrorObject: sinon.stub().returns({ gasFee: 'mockGasFeeError' }),
doesAmountErrorRequireUpdate: sinon.stub().callsFake(obj => obj.balance !== obj.prevBalance), doesAmountErrorRequireUpdate: sinon.stub().callsFake(obj => obj.balance !== obj.prevBalance),
} }
const SendTransactionScreen = proxyquire('../send.component.js', { const SendTransactionScreen = proxyquire('../send.component.js', {
'./send.utils': utilsMethodStubs, './send.utils': utilsMethodStubs,
}).default }).default
sinon.spy(SendTransactionScreen.prototype, 'componentDidMount') before(function () {
sinon.spy(SendTransactionScreen.prototype, 'updateGas') sinon.spy(SendTransactionScreen.prototype, 'componentDidMount')
sinon.spy(SendTransactionScreen.prototype, 'updateGas')
describe('Send Component', function () { })
let wrapper
beforeEach(function () { beforeEach(function () {
wrapper = shallow(( wrapper = shallow((
@ -89,6 +91,10 @@ describe('Send Component', function () {
propsMethodSpies.updateToNicknameIfNecessary.resetHistory() propsMethodSpies.updateToNicknameIfNecessary.resetHistory()
}) })
after(function () {
sinon.restore()
})
it('should call componentDidMount', function () { it('should call componentDidMount', function () {
assert(SendTransactionScreen.prototype.componentDidMount.calledOnce) assert(SendTransactionScreen.prototype.componentDidMount.calledOnce)
}) })

@ -1979,35 +1979,34 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow== integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==
"@sinonjs/commons@^1.0.2": "@sinonjs/commons@^1", "@sinonjs/commons@^1.6.0", "@sinonjs/commons@^1.7.0":
version "1.3.0" version "1.7.0"
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.3.0.tgz#50a2754016b6f30a994ceda6d9a0a8c36adda849" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.7.0.tgz#f90ffc52a2e519f018b13b6c4da03cbff36ebed6"
integrity sha512-j4ZwhaHmwsCb4DlDOIWnI5YyKDNMoNThsmwEpfHx6a1EpsGZ9qYLxP++LMlmBRjtGptGHFsGItJ768snllFWpA== integrity sha512-qbk9AP+cZUsKdW1GJsBpxPKFmCJ0T8swwzVje3qFd+AkQb74Q/tiuzrdfFg8AD2g5HH/XbE/I8Uc1KYHVYWfhg==
dependencies: dependencies:
type-detect "4.0.8" type-detect "4.0.8"
"@sinonjs/formatio@^2.0.0": "@sinonjs/formatio@^4.0.1":
version "2.0.0" version "4.0.1"
resolved "https://registry.yarnpkg.com/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" resolved "https://registry.yarnpkg.com/@sinonjs/formatio/-/formatio-4.0.1.tgz#50ac1da0c3eaea117ca258b06f4f88a471668bdb"
integrity sha512-ls6CAMA6/5gG+O/IdsBcblvnd8qcO/l1TYoNeAzp3wcISOxlPXQEus0mLcdwazEkWjaBdaJ3TaxmNgCLWwvWzg== integrity sha512-asIdlLFrla/WZybhm0C8eEzaDNNrzymiTqHMeJl6zPW2881l3uuVRpm0QlRQEjqYWv6CcKMGYME3LbrLJsORBw==
dependencies:
samsam "1.3.0"
"@sinonjs/formatio@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@sinonjs/formatio/-/formatio-3.1.0.tgz#6ac9d1eb1821984d84c4996726e45d1646d8cce5"
integrity sha512-ZAR2bPHOl4Xg6eklUGpsdiIJ4+J1SNag1DHHrG/73Uz/nVwXqjgUtRPLoS+aVyieN9cSbc0E4LsU984tWcDyNg==
dependencies: dependencies:
"@sinonjs/samsam" "^2 || ^3" "@sinonjs/commons" "^1"
"@sinonjs/samsam" "^4.2.0"
"@sinonjs/samsam@^2 || ^3": "@sinonjs/samsam@^4.2.0", "@sinonjs/samsam@^4.2.2":
version "3.1.0" version "4.2.2"
resolved "https://registry.yarnpkg.com/@sinonjs/samsam/-/samsam-3.1.0.tgz#38146f7be732de96f9f599d7247d71e349bf4bdb" resolved "https://registry.yarnpkg.com/@sinonjs/samsam/-/samsam-4.2.2.tgz#0f6cb40e467865306d8a20a97543a94005204e23"
integrity sha512-IXio+GWY+Q8XUjHUOgK7wx8fpvr7IFffgyXb1bnJFfX3001KmHt35Zq4tp7MXZyjJPCLPuadesDYNk41LYtVjw== integrity sha512-z9o4LZUzSD9Hl22zV38aXNykgFeVj8acqfFabCY6FY83n/6s/XwNJyYYldz6/9lBJanpno9h+oL6HTISkviweA==
dependencies: dependencies:
"@sinonjs/commons" "^1.0.2" "@sinonjs/commons" "^1.6.0"
array-from "^2.1.1"
lodash.get "^4.4.2" lodash.get "^4.4.2"
type-detect "^4.0.8"
"@sinonjs/text-encoding@^0.7.1":
version "0.7.1"
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"
integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==
"@stablelib/utf8@^0.10.1": "@stablelib/utf8@^0.10.1":
version "0.10.1" version "0.10.1"
@ -3766,11 +3765,6 @@ array-flatten@1.1.1:
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=
array-from@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/array-from/-/array-from-2.1.1.tgz#cfe9d8c26628b9dc5aecc62a9f5d8f1f352c1195"
integrity sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=
array-includes@^3.0.3: array-includes@^3.0.3:
version "3.0.3" version "3.0.3"
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d"
@ -8748,11 +8742,16 @@ diff-sequences@^24.9.0:
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5"
integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew== integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==
diff@3.3.1, diff@^3.1.0: diff@3.3.1:
version "3.3.1" version "3.3.1"
resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1.tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75" resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1.tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75"
integrity sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww== integrity sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==
diff@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
diffie-hellman@^5.0.0: diffie-hellman@^5.0.0:
version "5.0.2" version "5.0.2"
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e"
@ -18338,10 +18337,12 @@ logplease@^1.2.14, logplease@~1.2.14, logplease@~1.2.15:
resolved "https://registry.yarnpkg.com/logplease/-/logplease-1.2.15.tgz#3da442e93751a5992cc19010a826b08d0293c48a" resolved "https://registry.yarnpkg.com/logplease/-/logplease-1.2.15.tgz#3da442e93751a5992cc19010a826b08d0293c48a"
integrity sha512-jLlHnlsPSJjpwUfcNyUxXCl33AYg2cHhIf9QhGL2T4iPT0XPB+xP1LRKFPgIg1M/sg9kAJvy94w9CzBNrfnstA== integrity sha512-jLlHnlsPSJjpwUfcNyUxXCl33AYg2cHhIf9QhGL2T4iPT0XPB+xP1LRKFPgIg1M/sg9kAJvy94w9CzBNrfnstA==
lolex@^2.2.0, lolex@^2.3.2: lolex@^5.0.1, lolex@^5.1.2:
version "2.3.2" version "5.1.2"
resolved "https://registry.yarnpkg.com/lolex/-/lolex-2.3.2.tgz#85f9450425103bf9e7a60668ea25dc43274ca807" resolved "https://registry.yarnpkg.com/lolex/-/lolex-5.1.2.tgz#953694d098ce7c07bc5ed6d0e42bc6c0c6d5a367"
integrity sha512-A5pN2tkFj7H0dGIAM6MFvHKMJcPnjZsOMvR7ujCjfgW5TbV6H9vb1PgxLtHvjqNZTHsUolz+6/WEO0N1xNx2ng== integrity sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==
dependencies:
"@sinonjs/commons" "^1.7.0"
long@^4.0.0: long@^4.0.0:
version "4.0.0" version "4.0.0"
@ -19269,7 +19270,7 @@ module-deps@^6.0.0:
version "1.0.4" version "1.0.4"
resolved "git+https://git@github.com/kumavis/module-name-from-path.git#fd9c592663a1af6cc48b1be7b8045ea547fca79a" resolved "git+https://git@github.com/kumavis/module-name-from-path.git#fd9c592663a1af6cc48b1be7b8045ea547fca79a"
module-not-found-error@^1.0.0: module-not-found-error@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/module-not-found-error/-/module-not-found-error-1.0.1.tgz#cf8b4ff4f29640674d6cdd02b0e3bc523c2bbdc0" resolved "https://registry.yarnpkg.com/module-not-found-error/-/module-not-found-error-1.0.1.tgz#cf8b4ff4f29640674d6cdd02b0e3bc523c2bbdc0"
integrity sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA= integrity sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=
@ -19679,16 +19680,17 @@ nice-try@^1.0.4:
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
nise@^1.2.0: nise@^3.0.1:
version "1.4.8" version "3.0.1"
resolved "https://registry.yarnpkg.com/nise/-/nise-1.4.8.tgz#ce91c31e86cf9b2c4cac49d7fcd7f56779bfd6b0" resolved "https://registry.yarnpkg.com/nise/-/nise-3.0.1.tgz#0659982af515e5aac15592226246243e8da0013d"
integrity sha512-kGASVhuL4tlAV0tvA34yJYZIVihrUt/5bDwpp4tTluigxUr2bBlJeDXmivb6NuEdFkqvdv/Ybb9dm16PSKUhtw== integrity sha512-fYcH9y0drBGSoi88kvhpbZEsenX58Yr+wOJ4/Mi1K4cy+iGP/a73gNoyNhu5E9QxPdgTlVChfIaAlnyOy/gHUA==
dependencies: dependencies:
"@sinonjs/formatio" "^3.1.0" "@sinonjs/commons" "^1.7.0"
"@sinonjs/formatio" "^4.0.1"
"@sinonjs/text-encoding" "^0.7.1"
just-extend "^4.0.2" just-extend "^4.0.2"
lolex "^2.3.2" lolex "^5.0.1"
path-to-regexp "^1.7.0" path-to-regexp "^1.7.0"
text-encoding "^0.6.4"
no-case@^2.2.0: no-case@^2.2.0:
version "2.3.2" version "2.3.2"
@ -22372,14 +22374,14 @@ proxy-from-env@^1.0.0:
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee" resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee"
integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4= integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=
proxyquire@2.0.1: proxyquire@^2.1.3:
version "2.0.1" version "2.1.3"
resolved "https://registry.yarnpkg.com/proxyquire/-/proxyquire-2.0.1.tgz#958d732be13d21d374cc2256645a5ff97c76a669" resolved "https://registry.yarnpkg.com/proxyquire/-/proxyquire-2.1.3.tgz#2049a7eefa10a9a953346a18e54aab2b4268df39"
integrity sha512-fQr3VQrbdzHrdaDn3XuisVoJlJNDJizHAvUXw9IuXRR8BpV2x0N7LsCxrpJkeKfPbNjiNU/V5vc008cI0TmzzQ== integrity sha512-BQWfCqYM+QINd+yawJz23tbBM40VIGXOdDw3X344KcclI/gtBbdWF6SlQ4nK/bYhF9d27KYug9WzljHC6B9Ysg==
dependencies: dependencies:
fill-keys "^1.0.2" fill-keys "^1.0.2"
module-not-found-error "^1.0.0" module-not-found-error "^1.0.1"
resolve "~1.5.0" resolve "^1.11.1"
prr@~1.0.1: prr@~1.0.1:
version "1.0.1" version "1.0.1"
@ -24375,41 +24377,27 @@ resolve@1.3.2:
dependencies: dependencies:
path-parse "^1.0.5" path-parse "^1.0.5"
resolve@^1.1.4, resolve@^1.1.5, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.4.0, resolve@~1.4.0: resolve@~1.4.0:
version "1.4.0" version "1.4.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86"
integrity sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q== integrity sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==
dependencies: dependencies:
path-parse "^1.0.5" path-parse "^1.0.5"
resolve@^1.10.0, resolve@^1.11.0, resolve@^1.8.1, resolve@~1.11.1: resolve@~1.11.1:
version "1.11.1" version "1.11.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e"
integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==
dependencies: dependencies:
path-parse "^1.0.6" path-parse "^1.0.6"
resolve@^1.12.0: resolve@^1.1.4, resolve@^1.1.5, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0, resolve@^1.8.1, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.12.0:
version "1.14.1" version "1.15.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.1.tgz#9e018c540fcf0c427d678b9931cbf45e984bcaff" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8"
integrity sha512-fn5Wobh4cxbLzuHaE+nphztHy43/b++4M6SsGFC2gB8uYwf0C8LcarfCz1un7UTW8OFQg9iNjZ4xpcFVGebDPg== integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==
dependencies:
path-parse "^1.0.6"
resolve@^1.3.2, resolve@^1.5.0:
version "1.12.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==
dependencies: dependencies:
path-parse "^1.0.6" path-parse "^1.0.6"
resolve@~1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
integrity sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==
dependencies:
path-parse "^1.0.5"
responselike@1.0.2, responselike@^1.0.2: responselike@1.0.2, responselike@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
@ -24695,11 +24683,6 @@ safe-regex@^1.1.0:
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
samsam@1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.3.0.tgz#8d1d9350e25622da30de3e44ba692b5221ab7c50"
integrity sha512-1HwIYD/8UlOtFS3QO3w7ey+SdSDFE4HRNLZoZRYVQefrOY3l17epswImeB1ijgJFQJodIaHcwkp3r/myBjFVbg==
sane@^4.0.3: sane@^4.0.3:
version "4.1.0" version "4.1.0"
resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded"
@ -25393,18 +25376,18 @@ single-line-log@^1.1.2:
dependencies: dependencies:
string-width "^1.0.1" string-width "^1.0.1"
sinon@^5.0.0: sinon@^8.1.1:
version "5.0.1" version "8.1.1"
resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.0.1.tgz#e399e00b30df53abf816f16cfc8f3aa0a480ada2" resolved "https://registry.yarnpkg.com/sinon/-/sinon-8.1.1.tgz#21fffd5ad0a2d072a8aa7f8a3cf7ed2ced497497"
integrity sha512-xhPMTWl8dusKsa/4Px+K0FCHsAhcpxjMurofDzPr6BF1I5C2G6r4JLIaHKSOcMnXkt7X4Md0OZgJuuIqlw9ieA== integrity sha512-E+tWr3acRdoe1nXbHMu86SSqA1WGM7Yw3jZRLvlCMnXwTHP8lgFFVn5BnKnF26uc5SfZ3D7pA9sN7S3Y2jG4Ew==
dependencies: dependencies:
"@sinonjs/formatio" "^2.0.0" "@sinonjs/commons" "^1.7.0"
diff "^3.1.0" "@sinonjs/formatio" "^4.0.1"
lodash.get "^4.4.2" "@sinonjs/samsam" "^4.2.2"
lolex "^2.2.0" diff "^4.0.2"
nise "^1.2.0" lolex "^5.1.2"
supports-color "^5.1.0" nise "^3.0.1"
type-detect "^4.0.5" supports-color "^7.1.0"
sisteransi@^1.0.3: sisteransi@^1.0.3:
version "1.0.4" version "1.0.4"
@ -26676,7 +26659,7 @@ supports-color@^4.0.0, supports-color@^4.5.0:
dependencies: dependencies:
has-flag "^2.0.0" has-flag "^2.0.0"
supports-color@^5.1.0, supports-color@^5.2.0, supports-color@^5.3.0, supports-color@^5.4.0: supports-color@^5.2.0, supports-color@^5.3.0, supports-color@^5.4.0:
version "5.5.0" version "5.5.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
@ -27660,7 +27643,7 @@ type-detect@0.1.1:
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822"
integrity sha1-C6XsKohWQORw6k6FBZcZANrFiCI= integrity sha1-C6XsKohWQORw6k6FBZcZANrFiCI=
type-detect@4.0.8: type-detect@4.0.8, type-detect@^4.0.8:
version "4.0.8" version "4.0.8"
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
@ -27670,7 +27653,7 @@ type-detect@^1.0.0:
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2"
integrity sha1-diIXzAbbJY7EiQihKY6LlRIejqI= integrity sha1-diIXzAbbJY7EiQihKY6LlRIejqI=
type-detect@^4.0.0, type-detect@^4.0.5: type-detect@^4.0.0:
version "4.0.5" version "4.0.5"
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.5.tgz#d70e5bc81db6de2a381bcaca0c6e0cbdc7635de2" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.5.tgz#d70e5bc81db6de2a381bcaca0c6e0cbdc7635de2"
integrity sha512-N9IvkQslUGYGC24RkJk1ba99foK6TkwC2FHAEBlQFBP0RxQZS8ZpJuAZcwiY/w9ZJHFQb1aOXBI60OdxhTrwEQ== integrity sha512-N9IvkQslUGYGC24RkJk1ba99foK6TkwC2FHAEBlQFBP0RxQZS8ZpJuAZcwiY/w9ZJHFQb1aOXBI60OdxhTrwEQ==

Loading…
Cancel
Save