sqs-consumer 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,7 @@ export declare class Consumer extends TypedEventEmitter {
34
34
  /**
35
35
  * Stop polling the queue for messages (pre existing requests will still be made until concluded).
36
36
  */
37
- stop(options: StopOptions): void;
37
+ stop(options?: StopOptions): void;
38
38
  /**
39
39
  * Returns the current polling state of the consumer: `true` if it is actively polling, `false` if it is not.
40
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sqs-consumer",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Build SQS-based Node applications without the boilerplate",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/consumer.ts CHANGED
@@ -102,7 +102,7 @@ export class Consumer extends TypedEventEmitter {
102
102
  /**
103
103
  * Stop polling the queue for messages (pre existing requests will still be made until concluded).
104
104
  */
105
- public stop(options: StopOptions): void {
105
+ public stop(options?: StopOptions): void {
106
106
  if (this.stopped) {
107
107
  debug('Consumer was already stopped');
108
108
  return;