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


Version published
Weekly downloads
260K
increased by2.08%
Maintainers
5
Created
Weekly downloads
 

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.198.0 (2022-10-27)

Bug Fixes

  • scripts: use since origin/main for ci (#4101) (1335bfb)
  • types: make logger.trace an optional function (#4110) (7d95b34)
  • update eventStreamPayloadHandler to also get prior signature from query string (#4100) (d6d9e10)

Features

  • client-ec2: Feature supports the replacement of instance root volume using an updated AMI without requiring customers to stop their instance. (c980e67)
  • client-fms: Add support NetworkFirewall Managed Rule Group Override flag in GetViolationDetails API (7586f6e)
  • client-glue: Added support for custom datatypes when using custom csv classifier. (3711a1f)
  • client-sagemaker: This change allows customers to provide a custom entrypoint script for the docker container to be run while executing training jobs, and provide custom arguments to the entrypoint script. (4978352)
  • client-wafv2: This release adds the following: Challenge rule action, to silently verify client browsers; rule group rule action override to any valid rule action, not just Count; token sharing between protected applications for challenge/CAPTCHA token; targeted rules option for Bot Control managed rule group. (2d06b27)
  • clients: update client endpoints as of 2022-10-27 (6eafddf)
  • endpoint: log endpoint decisions at debug level (#4106) (d600213)

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

Last updated on 27 Oct 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