-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency axios-mock-adapter to v2 #854
Conversation
4e454f0
to
1687951
Compare
Quality Gate passed for 'Pay Transparency backend-external'Issues Measures |
Quality Gate passed for 'Pay Transparency Frontend'Issues Measures |
Quality Gate passed for 'Pay Transparency Backend'Issues Measures |
Quality Gate passed for 'Pay Transparency doc-gen-service'Issues Measures |
Quality Gate passed for 'Pay Transparency admin-frontend'Issues Measures |
This PR contains the following updates:
^1.22.0
->^2.0.0
Release Notes
ctimmerm/axios-mock-adapter (axios-mock-adapter)
v2.1.0
Compare Source
v2.0.0
Compare Source
Breaking Changes 💥
Drop node versions lower than v18 (https://github.com/ctimmerm/axios-mock-adapter/pull/390)
Change the parameters of the methods to align it to the one of axios. (https://github.com/ctimmerm/axios-mock-adapter/pull/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"}
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: