You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-apply-body-checksum

Package Overview
Dependencies
4
Maintainers
5
Versions
119
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-apply-body-checksum

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-apply-body-checksum/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-apply-body-checksum) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-apply-body-checksu


Version published
Maintainers
5
Created

Package description

What is @aws-sdk/middleware-apply-body-checksum?

@aws-sdk/middleware-apply-body-checksum is a middleware package for the AWS SDK for JavaScript. It is used to automatically apply checksums to the body of requests, ensuring data integrity during transmission.

What are @aws-sdk/middleware-apply-body-checksum's main functionalities?

Apply Checksum to Request Body

This feature demonstrates how to apply a checksum to the body of a request using the @aws-sdk/middleware-apply-body-checksum package. The middleware is added to the S3 client's middleware stack, ensuring that the body of the PutObjectCommand request is checksummed before being sent.

const { S3Client, PutObjectCommand } = require('@aws-sdk/client-s3');
const { applyBodyChecksumMiddleware } = require('@aws-sdk/middleware-apply-body-checksum');

const client = new S3Client({ region: 'us-west-2' });
client.middlewareStack.add(applyBodyChecksumMiddleware(), {
  step: 'build',
  priority: 'high',
});

const command = new PutObjectCommand({
  Bucket: 'example-bucket',
  Key: 'example-object',
  Body: 'Hello, world!',
});

client.send(command).then((response) => {
  console.log('Success', response);
}).catch((error) => {
  console.error('Error', error);
});

Other packages similar to @aws-sdk/middleware-apply-body-checksum

Changelog

Source

3.271.0 (2023-02-14)

Bug Fixes

  • protocol-http: export field types (#4432) (b8320f4)

Features

  • client-appconfig: AWS AppConfig now offers the option to set a version label on hosted configuration versions. Version labels allow you to identify specific hosted configuration versions based on an alternate versioning scheme that you define. (1ffdf34)
  • client-datasync: With this launch, we are giving customers the ability to use older SMB protocol versions, enabling them to use DataSync to copy data to and from their legacy storage arrays. (125850c)
  • client-ec2: With this release customers can turn host maintenance on or off when allocating or modifying a supported dedicated host. Host maintenance is turned on by default for supported hosts. (62c8b91)

Readme

Source

@aws-sdk/middleware-apply-body-checksum

NPM version NPM downloads

This package provides AWS SDK for JavaScript middleware that applies a checksum of the request body as a header.

FAQs

Package last updated on 14 Feb 2023

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc