Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
aws-sqs-connector
Advanced tools
Tired of all the hassles connecting and polling a Amazon WebService SQS? The solution is here!
npm install --save aws-sqs-connector
With CoffeeScript
SQSConnector = require 'aws-sqs-connector'
Queue = new SQSConnector
credentials: './credentials/aws.json'
queueUrl: 'http://sqs.<REGION>.amazonaws.com/<NUMBER>/queue-name'
With JavaScript
var SQSConnector = require('aws-sqs-connector');
var Queue = new SQSConnector({
credentials: './credentials/aws.json',
queueUrl: 'http://sqs.<REGION>.amazonaws.com/<NUMBER>/queue-name'
});
With CoffeeScript
# Everytime there is a new message, this callback gets executed
Queue.receive (message, fetchNext) ->
# log message
console.log message
# log attributes
console.log message.attributes
# do some processing with the message and then fetch the next message
fetchNext()
With JavaScript
Queue.receive(function(message, fetchNext) {
console.log(message);
console.log(messages.attributes);
fetchNext();
});
send MessageBody, MessageAttributes, Callback
With CoffeeScript
Queue.send 'message body', { responseRequired: true, randomNumber: 1 }, (err, response) ->
console.error(err) if err
console.log response
With JavaScript
Queue.send('message body', { responseRequired: true, randomNumber: 1 }, function(err, response) {
if (err) { console.error(err); }
console.log(response);
});
{
"accessKeyId": "YOUR_ACCESS_KEY_ID",
"secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
"region": "YOUR_REGION"
}
FAQs
Amazon WebService SQS Connector
We found that aws-sqs-connector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.