sqs-consumer
Advanced tools
Comparing version 7.1.0-canary.1 to 7.1.0-canary.2
@@ -64,2 +64,3 @@ "use strict"; | ||
this.stopped = false; | ||
this.emit('started'); | ||
this.poll(); | ||
@@ -66,0 +67,0 @@ } |
@@ -154,2 +154,6 @@ /// <reference types="node" /> | ||
/** | ||
* Fired when the consumer starts its work.. | ||
*/ | ||
started: []; | ||
/** | ||
* Fired when the consumer finally stops its work. | ||
@@ -156,0 +160,0 @@ */ |
@@ -20,3 +20,3 @@ "use strict"; | ||
once(event, listener) { | ||
return super.on(event, listener); | ||
return super.once(event, listener); | ||
} | ||
@@ -23,0 +23,0 @@ /** |
{ | ||
"name": "sqs-consumer", | ||
"version": "7.1.0-canary.1", | ||
"version": "7.1.0-canary.2", | ||
"description": "Build SQS-based Node applications without the boilerplate", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -134,3 +134,3 @@ # sqs-consumer | ||
You can [find out more about this here](https://bbc.github.io/sqs-consumer/public/classes/Consumer.html#updateOption). | ||
You can [find out more about this here](https://bbc.github.io/sqs-consumer/classes/Consumer.html#updateOption). | ||
@@ -137,0 +137,0 @@ ### Events |
@@ -101,2 +101,3 @@ import { | ||
this.stopped = false; | ||
this.emit('started'); | ||
this.poll(); | ||
@@ -103,0 +104,0 @@ } |
@@ -157,2 +157,6 @@ import { SQSClient, Message } from '@aws-sdk/client-sqs'; | ||
/** | ||
* Fired when the consumer starts its work.. | ||
*/ | ||
started: []; | ||
/** | ||
* Fired when the consumer finally stops its work. | ||
@@ -188,3 +192,3 @@ */ | ||
): this { | ||
return super.on(event, listener); | ||
return super.once(event, listener); | ||
} | ||
@@ -191,0 +195,0 @@ /** |
96460
1880