Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@aws-sdk/middleware-sdk-sqs
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-sdk-sqs/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-sdk-sqs) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-sdk-sqs.svg)](https://www.npmjs.com/packag
@aws-sdk/middleware-sdk-sqs is a middleware package for the AWS SDK for JavaScript (v3) that provides specialized middleware for Amazon Simple Queue Service (SQS). It helps in handling SQS-specific tasks such as message deduplication, message attribute handling, and more.
Message Deduplication
This feature allows you to send messages with deduplication enabled, which is useful for FIFO (First-In-First-Out) queues. The middleware automatically handles deduplication logic.
const { SQSClient, SendMessageCommand } = require('@aws-sdk/client-sqs');
const { applyMiddleware } = require('@aws-sdk/middleware-sdk-sqs');
const client = new SQSClient({ region: 'us-east-1' });
applyMiddleware(client);
const params = {
QueueUrl: 'https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue',
MessageBody: 'Hello, world!',
MessageDeduplicationId: 'unique-id-123',
MessageGroupId: 'group-id-1'
};
const command = new SendMessageCommand(params);
client.send(command).then((data) => {
console.log('Message sent:', data);
}).catch((error) => {
console.error('Error sending message:', error);
});
Message Attribute Handling
This feature allows you to send messages with custom attributes. The middleware helps in managing and sending these attributes along with the message.
const { SQSClient, SendMessageCommand } = require('@aws-sdk/client-sqs');
const { applyMiddleware } = require('@aws-sdk/middleware-sdk-sqs');
const client = new SQSClient({ region: 'us-east-1' });
applyMiddleware(client);
const params = {
QueueUrl: 'https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue',
MessageBody: 'Hello, world!',
MessageAttributes: {
'AttributeOne': {
DataType: 'String',
StringValue: 'ValueOne'
},
'AttributeTwo': {
DataType: 'Number',
StringValue: '123'
}
}
};
const command = new SendMessageCommand(params);
client.send(command).then((data) => {
console.log('Message sent with attributes:', data);
}).catch((error) => {
console.error('Error sending message:', error);
});
@aws-sdk/client-sqs is the main client package for interacting with Amazon SQS. It provides a comprehensive set of methods for sending, receiving, and managing SQS messages and queues. While @aws-sdk/middleware-sdk-sqs focuses on middleware functionalities, @aws-sdk/client-sqs provides the core functionalities for SQS operations.
sqs-consumer is a lightweight library for building SQS-based applications. It simplifies the process of consuming messages from SQS queues and provides features like automatic polling and error handling. Unlike @aws-sdk/middleware-sdk-sqs, which is middleware for the AWS SDK, sqs-consumer is a standalone library focused on message consumption.
sqs-producer is a library for sending messages to SQS queues. It provides a simple API for creating and sending messages. While @aws-sdk/middleware-sdk-sqs offers middleware functionalities for the AWS SDK, sqs-producer is a standalone library focused on message production.
3.410.0 (2023-09-11)
[@aws](https://github.com/aws).auth#sigv4
identity providers for the AWS SDK (#5179) (53ef8f9), closes aws.auth#sigv4 aws.auth#sigv4 aws.auth#sigv4[@http](https://github.com/http)BearerAuth
identity providers (#5169) (4e65c3e)FAQs
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-sdk-sqs/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-sdk-sqs) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-sdk-sqs.svg)](https://www.npmjs.com/packag
The npm package @aws-sdk/middleware-sdk-sqs receives a total of 2,190,867 weekly downloads. As such, @aws-sdk/middleware-sdk-sqs popularity was classified as popular.
We found that @aws-sdk/middleware-sdk-sqs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.