@aws-sdk/middleware-sdk-api-gateway
Advanced tools
Comparing version 3.577.0 to 3.580.0
@@ -32,8 +32,8 @@ "use strict"; | ||
return (next) => async (args) => { | ||
var _a; | ||
const { request } = args; | ||
if (import_protocol_http.HttpRequest.isInstance(request)) { | ||
request.headers = { | ||
...request.headers, | ||
accept: "application/json" | ||
}; | ||
if (((_a = request.headers) == null ? void 0 : _a.accept) === void 0) { | ||
request.headers.accept = "application/json"; | ||
} | ||
} | ||
@@ -40,0 +40,0 @@ return next({ |
@@ -6,6 +6,5 @@ import { HttpRequest } from "@smithy/protocol-http"; | ||
if (HttpRequest.isInstance(request)) { | ||
request.headers = { | ||
...request.headers, | ||
accept: "application/json", | ||
}; | ||
if (request.headers?.accept === undefined) { | ||
request.headers.accept = "application/json"; | ||
} | ||
} | ||
@@ -12,0 +11,0 @@ return next({ |
{ | ||
"name": "@aws-sdk/middleware-sdk-api-gateway", | ||
"version": "3.577.0", | ||
"version": "3.580.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17030
97