sqs-consumer
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "sqs-consumer", | ||
"version": "1.0.0", | ||
"description": "Create applications that pull tasks from an SQS queue", | ||
"version": "1.0.1", | ||
"description": "Build SQS-based Node applications without the boilerplate", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -30,3 +30,2 @@ # sqs-consumer | ||
* The queue is polled continuously for messages using [long polling](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html). | ||
* Messages are received one at a time. | ||
* Messages are deleted from the queue once `done()` is called. | ||
@@ -43,6 +42,6 @@ * Calling `done(err)` with an error object will cause the message to be left on the queue. An [SQS redrive policy](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) can be used to move messages that cannot be processed to a dead letter queue. | ||
* `queueUrl` - _String_ - the SQS queue URL | ||
* `region` - _String_ - the AWS region | ||
* `handleMessage` - _Function_ - a function to be called whenever a message is receieved. Receives an SQS message object as its first argument and a function to call when the message has been handled as its second argument (i.e. `handleMessage(message, done)`). | ||
* `waitTime` - _Number_ - time in milliseconds to wait after recieving a message before requesting another one. This enables you to throttle the rate at which messages will be received. (default `100`); | ||
* `queueUrl` - _String_ - The SQS queue URL | ||
* `region` - _String_ - The AWS region | ||
* `handleMessage` - _Function_ - A function to be called whenever a message is receieved. Receives an SQS message object as its first argument and a function to call when the message has been handled as its second argument (i.e. `handleMessage(message, done)`). | ||
* `waitTime` - _Number_ - An optional time in milliseconds to wait after recieving a message before requesting another one. This enables you to throttle the rate at which messages will be received. (default `100`); | ||
* `sqs` - _Object_ - An optional [AWS SQS](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html) object to use if you need to configure the client manually | ||
@@ -49,0 +48,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9147
59
1