Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-eventstream

Package Overview
Dependencies
2
Maintainers
5
Versions
144
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-eventstream


Version published
Maintainers
5
Created

Package description

What is @aws-sdk/middleware-eventstream?

@aws-sdk/middleware-eventstream is a middleware package for the AWS SDK for JavaScript. It provides functionality to handle event streams, which are used in various AWS services to deliver real-time data. This package is essential for working with services that use event streams, such as AWS Transcribe, AWS Kinesis, and others.

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

Event Stream Handling

This feature allows you to handle event streams by marshalling data into the event stream format. The code sample demonstrates how to create an event stream using the EventStreamMarshaller.

const { EventStreamMarshaller } = require('@aws-sdk/middleware-eventstream');

const marshaller = new EventStreamMarshaller();

const eventStream = marshaller.marshall({
  headers: {},
  body: Buffer.from('example event data')
});

console.log(eventStream);

Event Stream Unmarshalling

This feature allows you to unmarshall event streams back into their original data format. The code sample demonstrates how to unmarshall an event stream using the EventStreamMarshaller.

const { EventStreamMarshaller } = require('@aws-sdk/middleware-eventstream');

const marshaller = new EventStreamMarshaller();

const eventStream = Buffer.from('example event stream');
const event = marshaller.unmarshall(eventStream);

console.log(event);

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

Changelog

Source

3.1.0 (2020-12-23)

Bug Fixes

  • clients: default region and credential provider (#1834) (bc79ab5)
  • clients: populate sdkId in serviceId and default to use arnNamespace as signingName (#1786) (0011af2)
  • clients: remove retry headers for several services (#1789) (fc98d2d)
  • clients: update endpoint provider (#1824) (64d2210)
  • clients: use signing name from auth sigv4 trait (#1835) (e539302)
  • codegen: strip names from enums (#1837) (0711503)
  • lib-storage: cleanup stream listeners to prevent memory leak (3d36682)
  • middleware-user-agent: add middleware to final step of build (#1833) (e7dce39)
  • signature-v4: add secrets to signing key cache key (#1776) (8785ad4)
  • util-waiter: fix compiling error with waiter (#1812) (ca1f0d6), closes #1803
  • log requestId, extendedRequestId, cfId in $metadata (#1819) (f2a47e8)

Features

  • credential-provider-node: use credential_process from profile (#1773) (842e2a0), closes #1772
  • standardize user agent value (#1775) (388b180)
  • cucumber: use waiters in integration tests (#1792) (e151aee)
  • middleware-logger: log clientName, commandName, input, output (#1788) (4f9e56f)

Readme

Source

@aws-sdk/middleware-eventstream

NPM version NPM downloads

FAQs

Last updated on 24 Dec 2020

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