Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-serde

Package Overview
Dependencies
2
Maintainers
6
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-serde


Version published
Maintainers
6
Created

Package description

What is @aws-sdk/middleware-serde?

@aws-sdk/middleware-serde is a middleware package for the AWS SDK for JavaScript. It provides serialization and deserialization capabilities for AWS service requests and responses. This middleware is essential for converting data to and from the wire format used by AWS services.

What are @aws-sdk/middleware-serde's main functionalities?

Serialization Middleware

This feature allows you to add serialization logic to the client stack, converting input data into the format required by AWS services.

const { SerdePlugin } = require('@aws-sdk/middleware-serde');
const { HttpRequest } = require('@aws-sdk/protocol-http');

const serializeMiddleware = (next, context) => async (args) => {
  const request = new HttpRequest(args.input);
  // Add serialization logic here
  return next({ ...args, request });
};

const clientStack = [];
clientStack.push(serializeMiddleware);

console.log('Serialization middleware added to client stack.');

Deserialization Middleware

This feature allows you to add deserialization logic to the client stack, converting response data from AWS services into a usable format.

const { SerdePlugin } = require('@aws-sdk/middleware-serde');
const { HttpResponse } = require('@aws-sdk/protocol-http');

const deserializeMiddleware = (next, context) => async (args) => {
  const response = new HttpResponse(args.output);
  // Add deserialization logic here
  return next({ ...args, response });
};

const clientStack = [];
clientStack.push(deserializeMiddleware);

console.log('Deserialization middleware added to client stack.');

Other packages similar to @aws-sdk/middleware-serde

Changelog

Source

3.160.0 (2022-08-29)

Bug Fixes

  • token-providers: move client-sso-oidc in dependencies (#3886) (6e1534b)

Features

  • client-voice-id: Amazon Connect Voice ID now detects voice spoofing. When a prospective fraudster tries to spoof caller audio using audio playback or synthesized speech, Voice ID will return a risk score and outcome to indicate the how likely it is that the voice is spoofed. (bf82531)
  • clients: update client endpoints as of 2022-08-29 (824b4a3)

Readme

Source

@aws-sdk/middleware-serde

NPM version NPM downloads

FAQs

Last updated on 29 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc