From 1051868438e2a871f18422fee056e764966ddc25 Mon Sep 17 00:00:00 2001 From: Andras Toth Date: Wed, 8 Feb 2017 17:18:29 +0100 Subject: [PATCH] Feat: Receive message attributes --- src/index.js | 3 ++- test/src/index.spec.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e2788a3..cc3c369 100644 --- a/src/index.js +++ b/src/index.js @@ -407,7 +407,8 @@ class Squiss extends EventEmitter { const params = { QueueUrl: queueUrl, MaxNumberOfMessages: this._opts.receiveBatchSize, - WaitTimeSeconds: this._opts.receiveWaitTimeSecs + WaitTimeSeconds: this._opts.receiveWaitTimeSecs, + MessageAttributeNames: ['All'] } if (this._opts.visibilityTimeoutSecs !== undefined) { params.VisibilityTimeout = this._opts.visibilityTimeoutSecs diff --git a/test/src/index.spec.js b/test/src/index.spec.js index 6f84265..571f978 100644 --- a/test/src/index.spec.js +++ b/test/src/index.spec.js @@ -226,7 +226,8 @@ describe('index', () => { QueueUrl: 'foo', MaxNumberOfMessages: 10, WaitTimeSeconds: 20, - VisibilityTimeout: 10 + VisibilityTimeout: 10, + MessageAttributeNames: ['All'] }) }) })