Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/middleware-sdk-api-gateway

Package Overview
Dependencies
Maintainers
4
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-sdk-api-gateway - npm Package Compare versions

Comparing version 0.1.0-preview.7 to 1.0.0-alpha.1

6

build/index.d.ts

@@ -1,2 +0,4 @@

import { BuildHandler, BuildHandlerArguments } from "@aws-sdk/types";
export declare function acceptsHeader(next: BuildHandler<any, any>): (args: BuildHandlerArguments<any, any>) => Promise<any>;
import { BuildHandlerOptions, BuildMiddleware, Pluggable } from "@aws-sdk/types";
export declare function acceptsHeaderMiddleware(): BuildMiddleware<any, any>;
export declare const acceptsHeaderMiddlewareOptions: BuildHandlerOptions;
export declare const getAcceptsHeaderPlugin: (unused: any) => Pluggable<any, any>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
function acceptsHeader(next) {
var protocol_http_1 = require("@aws-sdk/protocol-http");
function acceptsHeaderMiddleware() {
var _this = this;
return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
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) {
return [2 /*return*/, next(tslib_1.__assign({}, args, { request: tslib_1.__assign({}, args.request, { headers: tslib_1.__assign({}, args.request.headers, { accepts: "application/json" }) }) }))];
request = args.request;
if (protocol_http_1.HttpRequest.isInstance(request)) {
request.headers = tslib_1.__assign({}, request.headers, { accepts: "application/json" });
}
return [2 /*return*/, next(tslib_1.__assign({}, args, { request: request }))];
});
}); };
}); }; };
}
exports.acceptsHeader = acceptsHeader;
//# sourceMappingURL=index.js.map
exports.acceptsHeaderMiddleware = acceptsHeaderMiddleware;
exports.acceptsHeaderMiddlewareOptions = {
step: "build",
tags: ["SET_ACCEPTS_HEADER", "ACCEPTS_HEADER"],
name: "acceptsHeaderMiddleware"
};
exports.getAcceptsHeaderPlugin = function (unused) { return ({
applyToStack: function (clientStack) {
clientStack.add(acceptsHeaderMiddleware(), exports.acceptsHeaderMiddlewareOptions);
}
}); };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBU0Esd0RBQXFEO0FBRXJELFNBQWdCLHVCQUF1QjtJQUF2QyxpQkFrQkM7SUFqQkMsT0FBTyxVQUNMLElBQStCLElBQ0QsT0FBQSxVQUM5QixJQUFnQzs7O1lBRTFCLE9BQU8sR0FBSyxJQUFJLFFBQVQsQ0FBVTtZQUN2QixJQUFJLDJCQUFXLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxFQUFFO2dCQUNuQyxPQUFPLENBQUMsT0FBTyx3QkFDVixPQUFPLENBQUMsT0FBTyxJQUNsQixPQUFPLEVBQUUsa0JBQWtCLEdBQzVCLENBQUM7YUFDSDtZQUNELHNCQUFPLElBQUksc0JBQ04sSUFBSSxJQUNQLE9BQU8sU0FBQSxJQUNQLEVBQUM7O1NBQ0osRUFkK0IsQ0FjL0IsQ0FBQztBQUNKLENBQUM7QUFsQkQsMERBa0JDO0FBRVksUUFBQSw4QkFBOEIsR0FBd0I7SUFDakUsSUFBSSxFQUFFLE9BQU87SUFDYixJQUFJLEVBQUUsQ0FBQyxvQkFBb0IsRUFBRSxnQkFBZ0IsQ0FBQztJQUM5QyxJQUFJLEVBQUUseUJBQXlCO0NBQ2hDLENBQUM7QUFFVyxRQUFBLHNCQUFzQixHQUFHLFVBQUMsTUFBVyxJQUEwQixPQUFBLENBQUM7SUFDM0UsWUFBWSxFQUFFLFVBQUEsV0FBVztRQUN2QixXQUFXLENBQUMsR0FBRyxDQUFDLHVCQUF1QixFQUFFLEVBQUUsc0NBQTh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YXJncyxcbiAgICAgIHJlcXVlc3RcbiAgICB9KTtcbiAgfTtcbn1cblxuZXhwb3J0IGNvbnN0IGFjY2VwdHNIZWFkZXJNaWRkbGV3YXJlT3B0aW9uczogQnVpbGRIYW5kbGVyT3B0aW9ucyA9IHtcbiAgc3RlcDogXCJidWlsZFwiLFxuICB0YWdzOiBbXCJTRVRfQUNDRVBUU19IRUFERVJcIiwgXCJBQ0NFUFRTX0hFQURFUlwiXSxcbiAgbmFtZTogXCJhY2NlcHRzSGVhZGVyTWlkZGxld2FyZVwiXG59O1xuXG5leHBvcnQgY29uc3QgZ2V0QWNjZXB0c0hlYWRlclBsdWdpbiA9ICh1bnVzZWQ6IGFueSk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiBjbGllbnRTdGFjayA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKGFjY2VwdHNIZWFkZXJNaWRkbGV3YXJlKCksIGFjY2VwdHNIZWFkZXJNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH1cbn0pO1xuIl19

@@ -6,2 +6,41 @@ # Change Log

# [1.0.0-alpha.1](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.1) (2020-01-08)
### 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)
# [0.1.0-preview.7](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@0.1.0-preview.7) (2019-10-30)

@@ -8,0 +47,0 @@

{
"name": "@aws-sdk/middleware-sdk-api-gateway",
"version": "0.1.0-preview.7",
"version": "1.0.0-alpha.1",
"scripts": {

@@ -17,3 +17,4 @@ "prepublishOnly": "tsc",

"dependencies": {
"@aws-sdk/types": "^0.1.0-preview.7",
"@aws-sdk/protocol-http": "^1.0.0-alpha.1",
"@aws-sdk/types": "^1.0.0-alpha.1",
"tslib": "^1.8.0"

@@ -20,0 +21,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc