Socket
Socket
Sign inDemoInstall

sqs-consumer

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqs-consumer - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

7

index.js

@@ -17,6 +17,7 @@ 'use strict';

function SQSError(message) {
this.name = 'SQSError';
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = (message || '');
}
SQSError.prototype = Error.prototype;
util.inherits(SQSError, Error);

@@ -155,3 +156,3 @@ function validate(options) {

if (err) {
if (err.name === 'SQSError') {
if (err.name === SQSError.name) {
consumer.emit('error', err);

@@ -158,0 +159,0 @@ } else {

{
"name": "sqs-consumer",
"version": "3.1.2",
"version": "3.1.3",
"description": "Build SQS-based Node applications without the boilerplate",

@@ -32,3 +32,3 @@ "main": "index.js",

"mocha": "^2.0.1",
"codeclimate-test-reporter": "0.3.0",
"codeclimate-test-reporter": "0.3.1",
"sinon": "^1.10.3"

@@ -35,0 +35,0 @@ },

@@ -64,5 +64,13 @@ # sqs-consumer

// ...
done();
},
sqs: new AWS.SQS()
});
app.on('error', function (err) {
console.log(err.message);
});
app.start();
```

@@ -69,0 +77,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc