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

@aws-sdk/middleware-serde

Package Overview
Dependencies
Maintainers
5
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-serde - npm Package Compare versions

Comparing version 1.0.0-gamma.6 to 1.0.0-gamma.7

jest.config.js

11

CHANGELOG.md

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

# [1.0.0-gamma.7](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-serde@1.0.0-gamma.6...@aws-sdk/middleware-serde@1.0.0-gamma.7) (2020-09-15)
### Bug Fixes
* move logging of input/output and req/res to serde ([#1526](https://github.com/aws/aws-sdk-js-v3/issues/1526)) ([b6675b6](https://github.com/aws/aws-sdk-js-v3/commit/b6675b60feca715d3b0379bc1aff1945ee9d74c0))
# [1.0.0-gamma.6](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-serde@1.0.0-gamma.5...@aws-sdk/middleware-serde@1.0.0-gamma.6) (2020-09-01)

@@ -8,0 +19,0 @@

2

dist/cjs/deserializerMiddleware.d.ts
import { DeserializeMiddleware, ResponseDeserializer } from "@aws-sdk/types";
export declare function deserializerMiddleware<Input extends object, Output extends object, RuntimeUtils = any>(options: RuntimeUtils, deserializer: ResponseDeserializer<any, any, RuntimeUtils>): DeserializeMiddleware<Input, Output>;
export declare const deserializerMiddleware: <Input extends object, Output extends object, RuntimeUtils = any>(options: RuntimeUtils, deserializer: ResponseDeserializer<any, any, RuntimeUtils>) => DeserializeMiddleware<Input, Output>;

@@ -5,23 +5,32 @@ "use strict";

var tslib_1 = require("tslib");
function deserializerMiddleware(options, deserializer) {
var _this = this;
return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
var response, parsed;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, next(args)];
case 1:
response = (_a.sent()).response;
return [4 /*yield*/, deserializer(response, options)];
case 2:
parsed = _a.sent();
return [2 /*return*/, {
response: response,
output: parsed,
}];
}
});
}); }; };
}
exports.deserializerMiddleware = deserializerMiddleware;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFRQSxTQUFnQixzQkFBc0IsQ0FDcEMsT0FBcUIsRUFDckIsWUFBMEQ7SUFGNUQsaUJBY0M7SUFWQyxPQUFPLFVBQUMsSUFBdUMsSUFBd0MsT0FBQSxVQUNyRixJQUF3Qzs7Ozt3QkFFbkIscUJBQU0sSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFBOztvQkFBN0IsUUFBUSxHQUFLLENBQUEsU0FBZ0IsQ0FBQSxTQUFyQjtvQkFDRCxxQkFBTSxZQUFZLENBQUMsUUFBUSxFQUFFLE9BQU8sQ0FBQyxFQUFBOztvQkFBOUMsTUFBTSxHQUFHLFNBQXFDO29CQUNwRCxzQkFBTzs0QkFDTCxRQUFRLFVBQUE7NEJBQ1IsTUFBTSxFQUFFLE1BQWdCO3lCQUN6QixFQUFDOzs7U0FDSCxFQVRzRixDQVN0RixDQUFDO0FBQ0osQ0FBQztBQWRELHdEQWNDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRGVzZXJpYWxpemVIYW5kbGVyLFxuICBEZXNlcmlhbGl6ZUhhbmRsZXJBcmd1bWVudHMsXG4gIERlc2VyaWFsaXplSGFuZGxlck91dHB1dCxcbiAgRGVzZXJpYWxpemVNaWRkbGV3YXJlLFxuICBSZXNwb25zZURlc2VyaWFsaXplcixcbn0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBkZXNlcmlhbGl6ZXJNaWRkbGV3YXJlPElucHV0IGV4dGVuZHMgb2JqZWN0LCBPdXRwdXQgZXh0ZW5kcyBvYmplY3QsIFJ1bnRpbWVVdGlscyA9IGFueT4oXG4gIG9wdGlvbnM6IFJ1bnRpbWVVdGlscyxcbiAgZGVzZXJpYWxpemVyOiBSZXNwb25zZURlc2VyaWFsaXplcjxhbnksIGFueSwgUnVudGltZVV0aWxzPlxuKTogRGVzZXJpYWxpemVNaWRkbGV3YXJlPElucHV0LCBPdXRwdXQ+IHtcbiAgcmV0dXJuIChuZXh0OiBEZXNlcmlhbGl6ZUhhbmRsZXI8SW5wdXQsIE91dHB1dD4pOiBEZXNlcmlhbGl6ZUhhbmRsZXI8SW5wdXQsIE91dHB1dD4gPT4gYXN5bmMgKFxuICAgIGFyZ3M6IERlc2VyaWFsaXplSGFuZGxlckFyZ3VtZW50czxJbnB1dD5cbiAgKTogUHJvbWlzZTxEZXNlcmlhbGl6ZUhhbmRsZXJPdXRwdXQ8T3V0cHV0Pj4gPT4ge1xuICAgIGNvbnN0IHsgcmVzcG9uc2UgfSA9IGF3YWl0IG5leHQoYXJncyk7XG4gICAgY29uc3QgcGFyc2VkID0gYXdhaXQgZGVzZXJpYWxpemVyKHJlc3BvbnNlLCBvcHRpb25zKTtcbiAgICByZXR1cm4ge1xuICAgICAgcmVzcG9uc2UsXG4gICAgICBvdXRwdXQ6IHBhcnNlZCBhcyBPdXRwdXQsXG4gICAgfTtcbiAgfTtcbn1cbiJdfQ==
exports.deserializerMiddleware = function (options, deserializer) { return function (next, context) { return function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
var logger, outputFilterSensitiveLog, response, parsed, $metadata, outputWithoutMetadata;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
return [4 /*yield*/, next(args)];
case 1:
response = (_a.sent()).response;
if (typeof (logger === null || logger === void 0 ? void 0 : logger.debug) === "function") {
logger.debug({
httpResponse: response,
});
}
return [4 /*yield*/, deserializer(response, options)];
case 2:
parsed = _a.sent();
$metadata = parsed.$metadata, outputWithoutMetadata = tslib_1.__rest(parsed, ["$metadata"]);
if (typeof (logger === null || logger === void 0 ? void 0 : logger.info) === "function") {
logger.info({
output: outputFilterSensitiveLog(outputWithoutMetadata),
});
}
return [2 /*return*/, {
response: response,
output: parsed,
}];
}
});
}); }; }; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFTYSxRQUFBLHNCQUFzQixHQUFHLFVBQ3BDLE9BQXFCLEVBQ3JCLFlBQTBELElBQ2pCLE9BQUEsVUFDekMsSUFBdUMsRUFDdkMsT0FBZ0MsSUFDTSxPQUFBLFVBQ3RDLElBQXdDOzs7OztnQkFFaEMsTUFBTSxHQUErQixPQUFPLE9BQXRDLEVBQUUsd0JBQXdCLEdBQUssT0FBTyx5QkFBWixDQUFhO2dCQUVoQyxxQkFBTSxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUE7O2dCQUE3QixRQUFRLEdBQUssQ0FBQSxTQUFnQixDQUFBLFNBQXJCO2dCQUVoQixJQUFJLFFBQU8sTUFBTSxhQUFOLE1BQU0sdUJBQU4sTUFBTSxDQUFFLEtBQUssQ0FBQSxLQUFLLFVBQVUsRUFBRTtvQkFDdkMsTUFBTSxDQUFDLEtBQUssQ0FBQzt3QkFDWCxZQUFZLEVBQUUsUUFBUTtxQkFDdkIsQ0FBQyxDQUFDO2lCQUNKO2dCQUVjLHFCQUFNLFlBQVksQ0FBQyxRQUFRLEVBQUUsT0FBTyxDQUFDLEVBQUE7O2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RwdXRXaXRob3V0TWV0YWRhdGEpLFxuICAgIH0pO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICByZXNwb25zZSxcbiAgICBvdXRwdXQ6IHBhcnNlZCBhcyBPdXRwdXQsXG4gIH07XG59O1xuIl19
import { EndpointBearer, RequestSerializer, SerializeMiddleware } from "@aws-sdk/types";
export declare function serializerMiddleware<Input extends object, Output extends object, RuntimeUtils extends EndpointBearer>(options: RuntimeUtils, serializer: RequestSerializer<any, RuntimeUtils>): SerializeMiddleware<Input, Output>;
export declare const serializerMiddleware: <Input extends object, Output extends object, RuntimeUtils extends EndpointBearer>(options: RuntimeUtils, serializer: RequestSerializer<any, RuntimeUtils>) => SerializeMiddleware<Input, Output>;

@@ -5,17 +5,25 @@ "use strict";

var tslib_1 = require("tslib");
function serializerMiddleware(options, serializer) {
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) {
switch (_a.label) {
case 0: return [4 /*yield*/, serializer(args.input, options)];
case 1:
request = _a.sent();
return [2 /*return*/, next(tslib_1.__assign(tslib_1.__assign({}, args), { request: request }))];
}
});
}); }; };
}
exports.serializerMiddleware = serializerMiddleware;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplck1pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyaWFsaXplck1pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQVNBLFNBQWdCLG9CQUFvQixDQUNsQyxPQUFxQixFQUNyQixVQUFnRDtJQUZsRCxpQkFhQztJQVRDLE9BQU8sVUFBQyxJQUFxQyxJQUFzQyxPQUFBLFVBQ2pGLElBQXNDOzs7O3dCQUV0QixxQkFBTSxVQUFVLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxPQUFPLENBQUMsRUFBQTs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vcHRpb25zKTtcbiAgICByZXR1cm4gbmV4dCh7XG4gICAgICAuLi5hcmdzLFxuICAgICAgcmVxdWVzdCxcbiAgICB9KTtcbiAgfTtcbn1cbiJdfQ==
exports.serializerMiddleware = function (options, serializer) { return function (next, context) { return function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
var logger, inputFilterSensitiveLog, request;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
logger = context.logger, inputFilterSensitiveLog = context.inputFilterSensitiveLog;
if (typeof (logger === null || logger === void 0 ? void 0 : logger.info) === "function") {
logger.info({
input: inputFilterSensitiveLog(args.input),
});
}
return [4 /*yield*/, serializer(args.input, options)];
case 1:
request = _a.sent();
if (typeof (logger === null || logger === void 0 ? void 0 : logger.debug) === "function") {
logger.debug({
httpRequest: request,
});
}
return [2 /*return*/, next(tslib_1.__assign(tslib_1.__assign({}, args), { request: request }))];
}
});
}); }; }; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplck1pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyaWFsaXplck1pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQVVhLFFBQUEsb0JBQW9CLEdBQUcsVUFDbEMsT0FBcUIsRUFDckIsVUFBZ0QsSUFDVCxPQUFBLFVBQ3ZDLElBQXFDLEVBQ3JDLE9BQWdDLElBQ0ksT0FBQSxVQUNwQyxJQUFzQzs7Ozs7Z0JBRTlCLE1BQU0sR0FBOEIsT0FBTyxPQUFyQyxFQUFFLHVCQUF1QixHQUFLLE9BQU8sd0JBQVosQ0FBYTtnQkFFcEQsSUFBSSxRQUFPLE1BQU0sYUFBTixNQUFNLHVCQUFOLE1BQU0sQ0FBRSxJQUFJLENBQUEsS0FBSyxVQUFVLEVBQUU7b0JBQ3RDLE1BQU0sQ0FBQyxJQUFJLENB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cXVlc3RTZXJpYWxpemVyPGFueSwgUnVudGltZVV0aWxzPlxuKTogU2VyaWFsaXplTWlkZGxld2FyZTxJbnB1dCwgT3V0cHV0PiA9PiAoXG4gIG5leHQ6IFNlcmlhbGl6ZUhhbmRsZXI8SW5wdXQsIE91dHB1dD4sXG4gIGNvbnRleHQ6IEhhbmRsZXJFeGVjdXRpb25Db250ZXh0XG4pOiBTZXJpYWxpemVIYW5kbGVyPElucHV0LCBPdXRwdXQ+ID0+IGFzeW5jIChcbiAgYXJnczogU2VyaWFsaXplSGFuZGxlckFyZ3VtZW50czxJbnB1dD5cbik6IFByb21pc2U8U2VyaWFsaXplSGFuZGxlck91dHB1dDxPdXRwdXQ+PiA9PiB7XG4gIGNvbnN0IHsgbG9nZ2VyLCBpbnB1dEZpbHRlclNlbnNpdGl2ZUxvZyB9ID0gY29udGV4dDtcblxuICBpZiAodHlwZW9mIGxvZ2dlcj8uaW5mbyA9PT0gXCJmdW5jdGlvblwiKSB7XG4gICAgbG9nZ2VyLmluZm8oe1xuICAgICAgaW5wdXQ6IGlucHV0RmlsdGVyU2Vuc2l0aXZlTG9nKGFyZ3MuaW5wdXQpLFxuICAgIH0pO1xuICB9XG5cbiAgY29uc3QgcmVxdWVzdCA9IGF3YWl0IHNlcmlhbGl6ZXIoYXJncy5pbnB1dCwgb3B0aW9ucyk7XG5cbiAgaWYgKHR5cGVvZiBsb2dnZXI/LmRlYnVnID09PSBcImZ1bmN0aW9uXCIpIHtcbiAgICBsb2dnZXIuZGVidWcoe1xuICAgICAgaHR0cFJlcXVlc3Q6IHJlcXVlc3QsXG4gICAgfSk7XG4gIH1cblxuICByZXR1cm4gbmV4dCh7XG4gICAgLi4uYXJncyxcbiAgICByZXF1ZXN0LFxuICB9KTtcbn07XG4iXX0=
import { DeserializeMiddleware, ResponseDeserializer } from "@aws-sdk/types";
export declare function deserializerMiddleware<Input extends object, Output extends object, RuntimeUtils = any>(options: RuntimeUtils, deserializer: ResponseDeserializer<any, any, RuntimeUtils>): DeserializeMiddleware<Input, Output>;
export declare const deserializerMiddleware: <Input extends object, Output extends object, RuntimeUtils = any>(options: RuntimeUtils, deserializer: ResponseDeserializer<any, any, RuntimeUtils>) => DeserializeMiddleware<Input, Output>;

@@ -1,22 +0,32 @@

import { __awaiter, __generator } from "tslib";
export function deserializerMiddleware(options, deserializer) {
var _this = this;
return function (next) { return function (args) { return __awaiter(_this, void 0, void 0, function () {
var response, parsed;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, next(args)];
case 1:
response = (_a.sent()).response;
return [4 /*yield*/, deserializer(response, options)];
case 2:
parsed = _a.sent();
return [2 /*return*/, {
response: response,
output: parsed,
}];
}
});
}); }; };
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFRQSxNQUFNLFVBQVUsc0JBQXNCLENBQ3BDLE9BQXFCLEVBQ3JCLFlBQTBEO0lBRjVELGlCQWNDO0lBVkMsT0FBTyxVQUFDLElBQXVDLElBQXdDLE9BQUEsVUFDckYsSUFBd0M7Ozs7d0JBRW5CLHFCQUFNLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBQTs7b0JBQTdCLFFBQVEsR0FBSyxDQUFBLFNBQWdCLENBQUEsU0FBckI7b0JBQ0QscUJBQU0sWUFBWSxDQUFDLFFBQVEsRUFBRSxPQUFPLENBQUMsRUFBQTs7b0JBQTlDLE1BQU0sR0FBRyxTQUFxQztvQkFDcEQsc0JBQU87NEJBQ0wsUUFBUSxVQUFBOzRCQUNSLE1BQU0sRUFBRSxNQUFnQjt5QkFDekIsRUFBQzs7O1NBQ0gsRUFUc0YsQ0FTdEYsQ0FBQztBQUN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Il19
import { __awaiter, __generator, __rest } from "tslib";
export var deserializerMiddleware = function (options, deserializer) { return function (next, context) { return function (args) { return __awaiter(void 0, void 0, void 0, function () {
var logger, outputFilterSensitiveLog, response, parsed, $metadata, outputWithoutMetadata;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
return [4 /*yield*/, next(args)];
case 1:
response = (_a.sent()).response;
if (typeof (logger === null || logger === void 0 ? void 0 : logger.debug) === "function") {
logger.debug({
httpResponse: response,
});
}
return [4 /*yield*/, deserializer(response, options)];
case 2:
parsed = _a.sent();
$metadata = parsed.$metadata, outputWithoutMetadata = __rest(parsed, ["$metadata"]);
if (typeof (logger === null || logger === void 0 ? void 0 : logger.info) === "function") {
logger.info({
output: outputFilterSensitiveLog(outputWithoutMetadata),
});
}
return [2 /*return*/, {
response: response,
output: parsed,
}];
}
});
}); }; }; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFTQSxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRyxVQUNwQyxPQUFxQixFQUNyQixZQUEwRCxJQUNqQixPQUFBLFVBQ3pDLElBQXVDLEVBQ3ZDLE9BQWdDLElBQ00sT0FBQSxVQUN0QyxJQUF3Qzs7Ozs7Z0JBRWhDLE1BQU0sR0FBK0IsT0FBTyxPQUF0QyxFQUFFLHdCQUF3QixHQUFLLE9BQU8seUJBQVosQ0FBYTtnQkFFaEMscUJBQU0sSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFBOztnQkFBN0IsUUFBUSxHQUFLLENBQUEsU0FBZ0IsQ0FBQSxTQUFyQjtnQkFFa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cy1zZGstanMtdjMvaXNzdWVzLzE0OTBcbiAgY29uc3QgeyAkbWV0YWRhdGEsIC4uLm91dHB1dFdpdGhvdXRNZXRhZGF0YSB9ID0gcGFyc2VkO1xuXG4gIGlmICh0eXBlb2YgbG9nZ2VyPy5pbmZvID09PSBcImZ1bmN0aW9uXCIpIHtcbiAgICBsb2dnZXIuaW5mbyh7XG4gICAgICBvdXRwdXQ6IG91dHB1dEZpbHRlclNlbnNpdGl2ZUxvZyhvdXRwdXRXaXRob3V0TWV0YWRhdGEpLFxuICAgIH0pO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICByZXNwb25zZSxcbiAgICBvdXRwdXQ6IHBhcnNlZCBhcyBPdXRwdXQsXG4gIH07XG59O1xuIl19
import { EndpointBearer, RequestSerializer, SerializeMiddleware } from "@aws-sdk/types";
export declare function serializerMiddleware<Input extends object, Output extends object, RuntimeUtils extends EndpointBearer>(options: RuntimeUtils, serializer: RequestSerializer<any, RuntimeUtils>): SerializeMiddleware<Input, Output>;
export declare const serializerMiddleware: <Input extends object, Output extends object, RuntimeUtils extends EndpointBearer>(options: RuntimeUtils, serializer: RequestSerializer<any, RuntimeUtils>) => SerializeMiddleware<Input, Output>;
import { __assign, __awaiter, __generator } from "tslib";
export function serializerMiddleware(options, serializer) {
var _this = this;
return function (next) { return function (args) { return __awaiter(_this, void 0, void 0, function () {
var request;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, serializer(args.input, options)];
case 1:
request = _a.sent();
return [2 /*return*/, next(__assign(__assign({}, args), { request: request }))];
}
});
}); }; };
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplck1pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyaWFsaXplck1pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQVNBLE1BQU0sVUFBV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cbiAgICBhcmdzOiBTZXJpYWxpemVIYW5kbGVyQXJndW1lbnRzPElucHV0PlxuICApOiBQcm9taXNlPFNlcmlhbGl6ZUhhbmRsZXJPdXRwdXQ8T3V0cHV0Pj4gPT4ge1xuICAgIGNvbnN0IHJlcXVlc3QgPSBhd2FpdCBzZXJpYWxpemVyKGFyZ3MuaW5wdXQsIG9wdGlvbnMpO1xuICAgIHJldHVybiBuZXh0KHtcbiAgICAgIC4uLmFyZ3MsXG4gICAgICByZXF1ZXN0LFxuICAgIH0pO1xuICB9O1xufVxuIl19
export var serializerMiddleware = function (options, serializer) { return function (next, context) { return function (args) { return __awaiter(void 0, void 0, void 0, function () {
var logger, inputFilterSensitiveLog, request;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
logger = context.logger, inputFilterSensitiveLog = context.inputFilterSensitiveLog;
if (typeof (logger === null || logger === void 0 ? void 0 : logger.info) === "function") {
logger.info({
input: inputFilterSensitiveLog(args.input),
});
}
return [4 /*yield*/, serializer(args.input, options)];
case 1:
request = _a.sent();
if (typeof (logger === null || logger === void 0 ? void 0 : logger.debug) === "function") {
logger.debug({
httpRequest: request,
});
}
return [2 /*return*/, next(__assign(__assign({}, args), { request: request }))];
}
});
}); }; }; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplck1pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyaWFsaXplck1pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQVVBLE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLFVBQ2xDLE9BQXFCLEVBQ3JCLFVBQWdELElBQ1QsT0FBQSxVQUN2QyxJQUFxQyxFQUNyQyxPQUFnQyxJQUNJLE9BQUEsVUFDcEMsSUFBc0M7Ozs7O2dCQUU5QixNQUFNLEdBQThCLE9BQU8sT0FBckMsRUFBRSx1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uICAgIC4uLmFyZ3MsXG4gICAgcmVxdWVzdCxcbiAgfSk7XG59O1xuIl19
{
"name": "@aws-sdk/middleware-serde",
"version": "1.0.0-gamma.6",
"version": "1.0.0-gamma.7",
"scripts": {

@@ -5,0 +5,0 @@ "prepublishOnly": "yarn build:cjs && yarn build:es",

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