Skip to content

Commit

Permalink
Bump node-mocks-http from 1.15.1 to 1.16.0 (#2031)
Browse files Browse the repository at this point in the history
Bumps [node-mocks-http](https://github.com/eugef/node-mocks-http) from
1.15.1 to 1.16.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/eugef/node-mocks-http/blob/master/HISTORY.md">node-mocks-http's
changelog</a>.</em></p>
<blockquote>
<h2>v 1.16.0</h2>
<ul>
<li>Add appendHeader to MockResponse [Issue <a
href="https://redirect.github.com/eugef/node-mocks-http/issues/306">#306</a>]<a
href="https://redirect.github.com/eugef/node-mocks-http/pull/306">306</a>.</li>
<li>Add Fetch API types as accepted mock parameters [Issue <a
href="https://redirect.github.com/eugef/node-mocks-http/issues/291">#291</a>]<a
href="https://redirect.github.com/eugef/node-mocks-http/pull/291">291</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eugef/node-mocks-http/commit/40e0e7595703da44cc752767e18e3b51f41efcfe"><code>40e0e75</code></a>
Release 1.16.0</li>
<li><a
href="https://github.com/eugef/node-mocks-http/commit/3a87b4263adc6f1ed8ff5257872e79f8abf174a0"><code>3a87b42</code></a>
Add appendHeader to MockResponse (<a
href="https://redirect.github.com/eugef/node-mocks-http/issues/306">#306</a>)</li>
<li><a
href="https://github.com/eugef/node-mocks-http/commit/845ca9301817676eefb53a33e868172e7de8c667"><code>845ca93</code></a>
Add Fetch API types as accepted mock parameters (<a
href="https://redirect.github.com/eugef/node-mocks-http/issues/291">#291</a>)</li>
<li><a
href="https://github.com/eugef/node-mocks-http/commit/73487d1f7bc90d43343145b7254f126c166bc333"><code>73487d1</code></a>
Bump braces from 3.0.2 to 3.0.3 (<a
href="https://redirect.github.com/eugef/node-mocks-http/issues/303">#303</a>)</li>
<li>See full diff in <a
href="https://github.com/eugef/node-mocks-http/compare/v1.15.1...v1.16.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=node-mocks-http&package-manager=npm_and_yarn&previous-version=1.15.1&new-version=1.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robin Tail <robin_tail@me.com>
  • Loading branch information
dependabot[bot] and RobinTail committed Sep 9, 2024
1 parent 325f033 commit 575ea87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
},
"dependencies": {
"ansis": "^3.2.0",
"node-mocks-http": "^1.15.1",
"node-mocks-http": "^1.16.0",
"openapi3-ts": "^4.4.0",
"ramda": "^0.30.1"
},
Expand Down
5 changes: 3 additions & 2 deletions src/testing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Request } from "express";
import { Request, Response } from "express";
import { FlatObject, getInput } from "./common-helpers";
import { CommonConfig } from "./config-type";
import { AbstractEndpoint } from "./endpoint";
Expand All @@ -20,7 +20,8 @@ export const makeRequestMock = <REQ extends RequestOptions>(props?: REQ) => {
return mock as typeof mock & REQ;
};

export const makeResponseMock = (opt?: ResponseOptions) => createResponse(opt);
export const makeResponseMock = (opt?: ResponseOptions) =>
createResponse<Response>(opt);

export const makeLoggerMock = <LOG extends FlatObject>(loggerProps?: LOG) => {
const logs: Record<keyof AbstractLogger, unknown[]> = {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2635,10 +2635,10 @@ node-emoji@^2.1.3:
emojilib "^2.4.0"
skin-tone "^2.0.0"

node-mocks-http@^1.15.1:
version "1.15.1"
resolved "https://registry.yarnpkg.com/node-mocks-http/-/node-mocks-http-1.15.1.tgz#668591d5fd5af6d927e3c8bed0e2214a8d9f8d47"
integrity sha512-X/GpUpNNiPDYUeUD183W8V4OW6OHYWI29w/QDyb+c/GzOfVEAlo6HjbW9++eXT2aV2lGg+uS+XqTD2q0pNREQA==
node-mocks-http@^1.16.0:
version "1.16.0"
resolved "https://registry.yarnpkg.com/node-mocks-http/-/node-mocks-http-1.16.0.tgz#c54c75fce7b7bec9afed9a00606d3c69e9ae8dc4"
integrity sha512-jmDjsr87ugnZ4nqBeX8ccMB1Fn04qc5Fz45XgrneJerWGV0VqS+wpu/zVkwv8LDAYHljDy5FzNvRJaOzEW9Dyw==
dependencies:
"@types/express" "^4.17.21"
"@types/node" "*"
Expand Down

0 comments on commit 575ea87

Please sign in to comment.