@aws-sdk/middleware-sdk-api-gateway
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3
import { BuildHandlerOptions, BuildMiddleware, Pluggable } from "@aws-sdk/types"; | ||
export declare function acceptsHeaderMiddleware(): BuildMiddleware<any, any>; | ||
export declare const acceptsHeaderMiddlewareOptions: BuildHandlerOptions; | ||
export declare function acceptHeaderMiddleware(): BuildMiddleware<any, any>; | ||
export declare const acceptHeaderMiddlewareOptions: BuildHandlerOptions; | ||
export declare const getAcceptsHeaderPlugin: (unused: any) => Pluggable<any, any>; |
@@ -5,3 +5,3 @@ "use strict"; | ||
var protocol_http_1 = require("@aws-sdk/protocol-http"); | ||
function acceptsHeaderMiddleware() { | ||
function acceptHeaderMiddleware() { | ||
var _this = this; | ||
@@ -13,3 +13,3 @@ return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
if (protocol_http_1.HttpRequest.isInstance(request)) { | ||
request.headers = tslib_1.__assign({}, request.headers, { accepts: "application/json" }); | ||
request.headers = tslib_1.__assign({}, request.headers, { accept: "application/json" }); | ||
} | ||
@@ -20,13 +20,13 @@ return [2 /*return*/, next(tslib_1.__assign({}, args, { request: request }))]; | ||
} | ||
exports.acceptsHeaderMiddleware = acceptsHeaderMiddleware; | ||
exports.acceptsHeaderMiddlewareOptions = { | ||
exports.acceptHeaderMiddleware = acceptHeaderMiddleware; | ||
exports.acceptHeaderMiddlewareOptions = { | ||
step: "build", | ||
tags: ["SET_ACCEPTS_HEADER", "ACCEPTS_HEADER"], | ||
name: "acceptsHeaderMiddleware" | ||
tags: ["SET_ACCEPT_HEADER", "ACCEPT_HEADER"], | ||
name: "acceptHeaderMiddleware" | ||
}; | ||
exports.getAcceptsHeaderPlugin = function (unused) { return ({ | ||
applyToStack: function (clientStack) { | ||
clientStack.add(acceptsHeaderMiddleware(), exports.acceptsHeaderMiddlewareOptions); | ||
clientStack.add(acceptHeaderMiddleware(), exports.acceptHeaderMiddlewareOptions); | ||
} | ||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GRIYW5kbGVyQXJndW1lbnRzPGFueT5cbiAgKTogUHJvbWlzZTxCdWlsZEhhbmRsZXJPdXRwdXQ8T3V0cHV0Pj4gPT4ge1xuICAgIGxldCB7IHJlcXVlc3QgfSA9IGFyZ3M7XG4gICAgaWYgKEh0dHBSZXF1ZXN0LmlzSW5zdGFuY2UocmVxdWVzdCkpIHtcbiAgICAgIHJlcXVlc3QuaGVhZGVycyA9IHtcbiAgICAgICAgLi4ucmVxdWVzdC5oZWFkZXJzLFxuICAgICAgICBhY2NlcHQ6IFwiYXBwbGljYXRpb24vanNvblwiXG4gICAgICB9O1xuICAgIH1cbiAgICByZXR1cm4gbmV4dCh7XG4gICAgICAuLi5hcmdzLFxuICAgICAgcmVxdWVzdFxuICAgIH0pO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgYWNjZXB0SGVhZGVyTWlkZGxld2FyZU9wdGlvbnM6IEJ1aWxkSGFuZGxlck9wdGlvbnMgPSB7XG4gIHN0ZXA6IFwiYnVpbGRcIixcbiAgdGFnczogW1wiU0VUX0FDQ0VQVF9IRUFERVJcIiwgXCJBQ0NFUFRfSEVBREVSXCJdLFxuICBuYW1lOiBcImFjY2VwdEhlYWRlck1pZGRsZXdhcmVcIlxufTtcblxuZXhwb3J0IGNvbnN0IGdldEFjY2VwdHNIZWFkZXJQbHVnaW4gPSAodW51c2VkOiBhbnkpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogY2xpZW50U3RhY2sgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChhY2NlcHRIZWFkZXJNaWRkbGV3YXJlKCksIGFjY2VwdEhlYWRlck1pZGRsZXdhcmVPcHRpb25zKTtcbiAgfVxufSk7XG4iXX0= |
@@ -6,2 +6,50 @@ # Change Log | ||
# [1.0.0-alpha.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-sdk-api-gateway@0.1.0-preview.2...@aws-sdk/middleware-sdk-api-gateway@1.0.0-alpha.3) (2020-01-10) | ||
### Bug Fixes | ||
* accept header typo ([#703](https://github.com/aws/aws-sdk-js-v3/issues/703)) ([b8a8a84](https://github.com/aws/aws-sdk-js-v3/commit/b8a8a84)) | ||
# 0.9.0 (2020-01-09) | ||
### Bug Fixes | ||
* acceptsHeader plugin param ([#568](https://github.com/aws/aws-sdk-js-v3/issues/568)) ([8d7c337](https://github.com/aws/aws-sdk-js-v3/commit/8d7c337)) | ||
* add protocol-http dependency to apig mw ([#659](https://github.com/aws/aws-sdk-js-v3/issues/659)) ([6be2920](https://github.com/aws/aws-sdk-js-v3/commit/6be2920)) | ||
# 0.6.0 (2019-10-30) | ||
# 0.3.0 (2019-09-09) | ||
### Features | ||
* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed)) | ||
# 0.2.0 (2019-07-12) | ||
### Features | ||
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c)) | ||
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab)) | ||
# 0.1.0 (2019-04-19) | ||
# [1.0.0-alpha.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-sdk-api-gateway@0.1.0-preview.2...@aws-sdk/middleware-sdk-api-gateway@1.0.0-alpha.2) (2020-01-09) | ||
@@ -8,0 +56,0 @@ |
{ | ||
"name": "@aws-sdk/middleware-sdk-api-gateway", | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0-alpha.3", | ||
"scripts": { | ||
@@ -17,3 +17,3 @@ "prepublishOnly": "tsc", | ||
"dependencies": { | ||
"@aws-sdk/protocol-http": "^1.0.0-alpha.2", | ||
"@aws-sdk/protocol-http": "^1.0.0-alpha.3", | ||
"@aws-sdk/types": "^1.0.0-alpha.2", | ||
@@ -20,0 +20,0 @@ "tslib": "^1.8.0" |
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
23932