@aws-sdk/middleware-sdk-api-gateway
Advanced tools
Comparing version 1.0.0-gamma.8 to 1.0.0-rc.1
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-rc.1](https://github.com/aws/aws-sdk-js-v3/compare/v1.0.0-gamma.11...v1.0.0-rc.1) (2020-10-19) | ||
### Features | ||
* ready for release candidate ([#1578](https://github.com/aws/aws-sdk-js-v3/issues/1578)) ([519f66c](https://github.com/aws/aws-sdk-js-v3/commit/519f66c6388b91d0bd750a511e6d1af56196835e)) | ||
# [1.0.0-gamma.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-sdk-api-gateway@1.0.0-gamma.7...@aws-sdk/middleware-sdk-api-gateway@1.0.0-gamma.8) (2020-10-07) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAcceptHeaderPlugin = exports.acceptHeaderMiddlewareOptions = exports.acceptHeaderMiddleware = void 0; | ||
var tslib_1 = require("tslib"); | ||
var protocol_http_1 = require("@aws-sdk/protocol-http"); | ||
const protocol_http_1 = require("@aws-sdk/protocol-http"); | ||
function acceptHeaderMiddleware() { | ||
var _this = this; | ||
return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var request; | ||
return tslib_1.__generator(this, function (_a) { | ||
request = args.request; | ||
if (protocol_http_1.HttpRequest.isInstance(request)) { | ||
request.headers = tslib_1.__assign(tslib_1.__assign({}, request.headers), { accept: "application/json" }); | ||
} | ||
return [2 /*return*/, next(tslib_1.__assign(tslib_1.__assign({}, args), { request: request }))]; | ||
return (next) => async (args) => { | ||
const { request } = args; | ||
if (protocol_http_1.HttpRequest.isInstance(request)) { | ||
request.headers = { | ||
...request.headers, | ||
accept: "application/json", | ||
}; | ||
} | ||
return next({ | ||
...args, | ||
request, | ||
}); | ||
}); }; }; | ||
}; | ||
} | ||
@@ -26,7 +27,7 @@ exports.acceptHeaderMiddleware = acceptHeaderMiddleware; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
exports.getAcceptHeaderPlugin = function (unused) { return ({ | ||
applyToStack: function (clientStack) { | ||
exports.getAcceptHeaderPlugin = (unused) => ({ | ||
applyToStack: (clientStack) => { | ||
clientStack.add(acceptHeaderMiddleware(), exports.acceptHeaderMiddlewareOptions); | ||
}, | ||
}); }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdEQUFxRDtBQVdyRCxTQUFnQixzQkFBc0I7SUFBdEMsaUJBZ0JDO0lBZkMsT0FBTyxVQUFnQyxJQUErQixJQUFnQyxPQUFBLFVBQ3BHLElBQWdDOzs7WUFFeEIsT0FBTyxHQUFLLElBQUksUUFBVCxDQUFVO1lBQ3pCLElBQUksMkJBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQUU7Z0JBQ25DLE9BQU8sQ0FBQyxPQUFPLHlDQUNWLE9BQU8sQ0FBQyxPQUFPLEtBQ2xCLE1BQU0sRUFBRSxrQkFBa0IsR0FDM0IsQ0FBQzthQUNIO1lBQ0Qsc0JBQU8sSUFBSSx1Q0FDTixJQUFJLEtBQ1AsT0FBTyxTQUFBLElBQ1AsRUFBQzs7U0FDSixFQWRxRyxDQWNyRyxDQUFDO0FBQ0osQ0FBQztBQWhCRCx3REFnQkM7QUFFWSxRQUFBLDZCQUE2QixHQUF3QjtJQUNoRSxJQUFJLEVBQUUsT0FBTztJQUNiLElBQUksRUFBRSxDQUFDLG1CQUFtQixFQUFFLGVBQWUsQ0FBQztJQUM1QyxJQUFJLEVBQUUsd0JBQXdCO0NBQy9CLENBQUM7QUFFRiw2REFBNkQ7QUFDaEQsUUFBQSxxQkFBcUIsR0FBRyxVQUFDLE1BQVcsSUFBME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C1lc2xpbnQvbm8tdW51c2VkLXZhcnNcbmV4cG9ydCBjb25zdCBnZXRBY2NlcHRIZWFkZXJQbHVnaW4gPSAodW51c2VkOiBhbnkpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKGFjY2VwdEhlYWRlck1pZGRsZXdhcmUoKSwgYWNjZXB0SGVhZGVyTWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0= |
{ | ||
"name": "@aws-sdk/middleware-sdk-api-gateway", | ||
"version": "1.0.0-gamma.8", | ||
"version": "1.0.0-rc.1", | ||
"scripts": { | ||
@@ -21,4 +21,4 @@ "prepublishOnly": "yarn build:cjs && yarn build:es", | ||
"dependencies": { | ||
"@aws-sdk/protocol-http": "1.0.0-gamma.8", | ||
"@aws-sdk/types": "1.0.0-gamma.7", | ||
"@aws-sdk/protocol-http": "1.0.0-rc.1", | ||
"@aws-sdk/types": "1.0.0-rc.1", | ||
"tslib": "^1.8.0" | ||
@@ -30,3 +30,6 @@ }, | ||
"typescript": "~4.0.2" | ||
}, | ||
"engines": { | ||
"node": ">= 10.0.0" | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": false, | ||
"downlevelIteration": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], | ||
"rootDir": "./src", | ||
"outDir": "./dist/cjs", | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"baseUrl": "." | ||
@@ -15,0 +6,0 @@ }, |
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": false, | ||
"downlevelIteration": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], | ||
"rootDir": "./src", | ||
"outDir": "./dist/es", | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"baseUrl": "." | ||
@@ -15,0 +7,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
52885
122
+ Added@aws-sdk/protocol-http@1.0.0-rc.1(transitive)
+ Added@aws-sdk/types@1.0.0-rc.1(transitive)
- Removed@aws-sdk/protocol-http@1.0.0-gamma.8(transitive)
- Removed@aws-sdk/types@1.0.0-gamma.7(transitive)
Updated@aws-sdk/types@1.0.0-rc.1