Skip to content

Commit e80a803

Browse files
Upgrade: [dependabot] - bump @middy/input-output-logger from 7.1.2 to 7.1.3 (#2825)
Bumps [@middy/input-output-logger](https://github.com/middyjs/middy/tree/HEAD/packages/input-output-logger) from 7.1.2 to 7.1.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/middyjs/middy/releases"><code>@​middy/input-output-logger</code>'s releases</a>.</em></p> <blockquote> <h2>7.1.3</h2> <h2>What's Changed</h2> <ul> <li>validator: Fix type definition regression (<a href="https://github.com/middyjs/middy/tree/HEAD/packages/input-output-logger/issues/1580">#1580</a>)</li> <li>http-multipart-body-parser, http-urlencode-body-parser, http-urlencode-path-parser, http-security-headers: Fix HTTP status code handling in type definitions and runtime</li> <li>Performance improvements across core and multiple middleware packages (core, event-normalizer, http-content-encoding, http-cors, http-error-handler, http-header-normalizer, http-security-headers, input-output-logger, secrets-manager, ssm, util, and others)</li> <li>Add missing type definitions for http-content-negotiation, service-discovery, sts, secrets-manager, ws-router</li> <li>Improve type definitions across core, cloudformation-router, http-router, http-event-normalizer, s3-object-response, sqs-partial-batch-failure, warmup, error-logger, and others</li> <li>Simplify s3-object-response type definitions</li> <li>Add comprehensive type tests across all packages</li> </ul> <ul> <li>chore(deps): bump github/codeql-action from 4.32.3 to 4.32.4 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot] in <a href="https://redirect.github.com/middyjs/middy/pull/1574">middyjs/middy#1574</a></li> <li>chore(deps): bump aquasecurity/trivy-action from 0.34.0 to 0.34.1 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot] in <a href="https://redirect.github.com/middyjs/middy/pull/1575">middyjs/middy#1575</a></li> <li>chore(deps): bump actions/attest-build-provenance from 3.2.0 to 4.1.0 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot] in <a href="https://redirect.github.com/middyjs/middy/pull/1573">middyjs/middy#1573</a></li> <li>chore(deps): bump actions/download-artifact from 7.0.0 to 8.0.0 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot] in <a href="https://redirect.github.com/middyjs/middy/pull/1576">middyjs/middy#1576</a></li> <li>chore(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot] in <a href="https://redirect.github.com/middyjs/middy/pull/1577">middyjs/middy#1577</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/middyjs/middy/compare/7.1.2...7.1.3">https://github.com/middyjs/middy/compare/7.1.2...7.1.3</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/middyjs/middy/commit/bc2e9ee880812a7207c80f78a750bcabd3a2d997"><code>bc2e9ee</code></a> chore: version bump</li> <li><a href="https://github.com/middyjs/middy/commit/9d97cc28157812c69fc02753d2f2823fdbf9e32a"><code>9d97cc2</code></a> fix: small perf improvements</li> <li><a href="https://github.com/middyjs/middy/commit/fa5d737d2c4f5d6966e017ab0dbdb57634e82774"><code>fa5d737</code></a> fix: small perf improvement</li> <li><a href="https://github.com/middyjs/middy/commit/ce763cde3ffea42e30a9db9158b7cff2e1fc533b"><code>ce763cd</code></a> chore: pref improvements</li> <li><a href="https://github.com/middyjs/middy/commit/e424b5dd1d0c244ef24877c91b5741de97b8e182"><code>e424b5d</code></a> docs: typo</li> <li><a href="https://github.com/middyjs/middy/commit/221c03baf795f9b0f0830febb657cddef84a3861"><code>221c03b</code></a> fix: small perf boost</li> <li><a href="https://github.com/middyjs/middy/commit/a5270087ed747c4f2c38e462668cde16a04110df"><code>a527008</code></a> chore: remove gitHead</li> <li><a href="https://github.com/middyjs/middy/commit/336dbaad7b5dded316ee4f533f5826913aac76f7"><code>336dbaa</code></a> test: add in more type tests</li> <li><a href="https://github.com/middyjs/middy/commit/f7da36a5842c207ef58bbc06a0e4d1e96e77402f"><code>f7da36a</code></a> chore: clean up tests naming</li> <li><a href="https://github.com/middyjs/middy/commit/6c01568dc98d84d359b716fbea23806d010f2ad8"><code>6c01568</code></a> chore: clean up test naming</li> <li>Additional commits viewable in <a href="https://github.com/middyjs/middy/commits/7.1.3/packages/input-output-logger">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@middy/input-output-logger&package-manager=npm_and_yarn&previous-version=7.1.2&new-version=7.1.3)](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 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: tstephen-nhs <231503406+tstephen-nhs@users.noreply.github.com>
1 parent 4556a70 commit e80a803

23 files changed

Lines changed: 46 additions & 44 deletions

File tree

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/capabilityStatement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@aws-lambda-powertools/commons": "^2.31.0",
1818
"@aws-lambda-powertools/logger": "^2.31.0",
1919
"@middy/core": "^7.1.2",
20-
"@middy/input-output-logger": "^7.1.2",
20+
"@middy/input-output-logger": "^7.1.3",
2121
"@nhs/fhir-middy-error-handler": "^2.1.75"
2222
},
2323
"devDependencies": {

packages/capabilityStatement/src/capabilityStatement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const handler = middy(lambdaHandler)
3232
.use(
3333
inputOutputLogger({
3434
logger: (request) => {
35-
logger.info(request)
35+
logger.info("inputOutputLogger request", {request})
3636
}
3737
})
3838
)

packages/checkPrescriptionStatusUpdates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@aws-sdk/lib-dynamodb": "^3.1003.0",
2121
"@middy/core": "^7.1.2",
2222
"@middy/http-header-normalizer": "^7.1.3",
23-
"@middy/input-output-logger": "^7.1.2",
23+
"@middy/input-output-logger": "^7.1.3",
2424
"@psu-common/middyErrorHandler": "^1.0.0"
2525
},
2626
"devDependencies": {

packages/checkPrescriptionStatusUpdates/src/checkPrescriptionStatusUpdates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const handler = middy(lambdaHandler)
106106
.use(
107107
inputOutputLogger({
108108
logger: (request) => {
109-
logger.info(request)
109+
logger.info("inputOutputLogger request", {request})
110110
}
111111
})
112112
)

packages/cpsuLambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@aws-sdk/util-dynamodb": "^3.991.0",
2121
"@middy/core": "^7.1.2",
2222
"@middy/http-header-normalizer": "^7.1.3",
23-
"@middy/input-output-logger": "^7.1.2",
23+
"@middy/input-output-logger": "^7.1.3",
2424
"@middy/validator": "6.4.1",
2525
"json-schema-to-ts": "^3.1.1",
2626
"pratica": "^2.3.0",

packages/cpsuLambda/src/middleware.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ export const MIDDLEWARE: Record<string, MiddlewareGenerator> = {
1515
inputOutputLogger: (logger) =>
1616
inputOutputLogger({
1717
logger: (request) => {
18-
if (request.response) {
19-
logger.debug(request)
18+
const response = (request as {response?: unknown} | null | undefined)?.response
19+
if (response === undefined) {
20+
logger.info("inputOutputLogger request", {request})
2021
} else {
21-
logger.info(request)
22+
logger.debug("inputOutputLogger response", {response})
2223
}
2324
}
2425
}),

packages/gsul/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@aws-sdk/lib-dynamodb": "^3.1003.0",
2121
"@aws-sdk/util-dynamodb": "^3.991.0",
2222
"@middy/core": "^7.1.2",
23-
"@middy/input-output-logger": "^7.1.2",
23+
"@middy/input-output-logger": "^7.1.3",
2424
"@middy/validator": "6.4.1",
2525
"@psu-common/middyErrorHandler": "^1.0.0",
2626
"json-schema-to-ts": "^3.1.1"

packages/gsul/src/getStatusUpdates.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ export const handler = middy(lambdaHandler)
110110
.use(
111111
inputOutputLogger({
112112
logger: (request) => {
113-
if (request.response) {
114-
logger.info(request.response)
113+
const response = (request as {response?: unknown} | null | undefined)?.response
114+
if (response === undefined) {
115+
logger.info("inputOutputLogger request", {request})
115116
} else {
116-
logger.info(request)
117+
logger.info("inputOutputLogger response", {response})
117118
}
118119
}
119120
})

packages/nhsNotifyLambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@aws-lambda-powertools/parameters": "^2.31.0",
2121
"@aws-sdk/client-ssm": "^3.1000.0",
2222
"@middy/core": "^7.1.2",
23-
"@middy/input-output-logger": "^7.1.2",
23+
"@middy/input-output-logger": "^7.1.3",
2424
"@nhs/fhir-middy-error-handler": "^2.1.75",
2525
"axios": "^1.13.6",
2626
"axios-retry": "^4.5.0",

0 commit comments

Comments
 (0)