Javascript dependency: Bump axios-mock-adapter from 1.22.0 to 2.0.0 in /web
Bumps axios-mock-adapter from 1.22.0 to 2.0.0.
Release notes
Sourced from axios-mock-adapter's releases.
v2.0.0
Breaking Changes 💥
Drop node versions lower than v18 (ctimmerm/axios-mock-adapter#390)
Change the parameters of the methods to align it to the one of axios. (ctimmerm/axios-mock-adapter#387) The last parameter must be a config object with
{params, headers}instead of just the headers. If you've always only used two parameters, you won't have to change anything.Methods with data param:
mock.onPost(url, data, headers)>mock.onPost(url, data, {params, headers})mock.onPut(url, data, headers)>mock.onPost(url, data, {params, headers})mock.onPatch(url, data, headers)>mock.onPatch(url, data, {params, headers})mock.onAny(url, data, headers)>mock.onAny(url, {data, params, headers})Methods without data param:
mock.onGet(url, {params}, headers)>mock.onGet(url, {params, headers})mock.onDelete(url, {params}, headers)>mock.onDelete(url, {params, headers})mock.onHead(url, {params}, headers)>mock.onHead(url, {params, headers})mock.onOptions(url, {params}, headers)>mock.onOptions(url, {params, headers})An error is reported if one accidentally passes the headers directly instead of `{headers: {}}.
e.g.
Error: Invalid config property Header-test provided to onPatch. Config: {"Header-test":"test-header"}
Commits
113656e2.0.0306e40fSubtract -1 on the delay tests as the setTimeout resolution behaves weird and...ab4bb17Change Date.now() to performance.now()999ef1cTry to fix flaky delay testse68e418Strip out undefined headers during axios header normalization to not cause as...99cf5e9Improve 'Could not find mock for' message by providing headers and params con...f45c074Revert types of onLink, onUnlink and onList617b0c7Add assertions to detect wrong config options of the breaking changed491b04Support axios-like config object with params, headers and data attributes5635cc6Support params comparisons for post and put requests- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)