sqs-consumer 7.5.0 → 8.0.0
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.
- package/.github/workflows/cla.yml +5 -0
- package/dist/types.d.ts +2 -2
- package/package.json +4 -4
- package/src/consumer.ts +3 -2
- package/src/types.ts +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SQSClient, Message } from '@aws-sdk/client-sqs';
|
|
1
|
+
import { SQSClient, Message, QueueAttributeName } from '@aws-sdk/client-sqs';
|
|
2
2
|
export interface ConsumerOptions {
|
|
3
3
|
/**
|
|
4
4
|
* The SQS queue URL.
|
|
@@ -9,7 +9,7 @@ export interface ConsumerOptions {
|
|
|
9
9
|
* `['All', 'ApproximateFirstReceiveTimestamp', 'ApproximateReceiveCount']`).
|
|
10
10
|
* @defaultvalue `[]`
|
|
11
11
|
*/
|
|
12
|
-
attributeNames?:
|
|
12
|
+
attributeNames?: QueueAttributeName[];
|
|
13
13
|
/**
|
|
14
14
|
* List of message attributes to retrieve (i.e. `['name', 'address']`).
|
|
15
15
|
* @defaultvalue `[]`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sqs-consumer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Build SQS-based Node applications without the boilerplate",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
"p-event": "^4.2.0",
|
|
56
56
|
"prettier": "^3.0.3",
|
|
57
57
|
"sinon": "^17.0.0",
|
|
58
|
-
"sqs-producer": "^
|
|
58
|
+
"sqs-producer": "^4.0.0",
|
|
59
59
|
"ts-node": "^10.9.1",
|
|
60
60
|
"typedoc": "^0.25.2",
|
|
61
61
|
"typescript": "^5.2.2"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aws-sdk/client-sqs": "^3.
|
|
64
|
+
"@aws-sdk/client-sqs": "^3.447.0",
|
|
65
65
|
"debug": "^4.3.4"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@aws-sdk/client-sqs": "^3.
|
|
68
|
+
"@aws-sdk/client-sqs": "^3.447.0"
|
|
69
69
|
},
|
|
70
70
|
"mocha": {
|
|
71
71
|
"spec": "test/tests/**/**/*.test.ts",
|
package/src/consumer.ts
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
DeleteMessageBatchCommandInput,
|
|
14
14
|
ReceiveMessageCommand,
|
|
15
15
|
ReceiveMessageCommandInput,
|
|
16
|
-
ReceiveMessageCommandOutput
|
|
16
|
+
ReceiveMessageCommandOutput,
|
|
17
|
+
QueueAttributeName
|
|
17
18
|
} from '@aws-sdk/client-sqs';
|
|
18
19
|
|
|
19
20
|
import { ConsumerOptions, StopOptions, UpdatableOptions } from './types';
|
|
@@ -43,7 +44,7 @@ export class Consumer extends TypedEventEmitter {
|
|
|
43
44
|
private postReceiveMessageCallback?: () => Promise<void>;
|
|
44
45
|
private sqs: SQSClient;
|
|
45
46
|
private handleMessageTimeout: number;
|
|
46
|
-
private attributeNames:
|
|
47
|
+
private attributeNames: QueueAttributeName[];
|
|
47
48
|
private messageAttributeNames: string[];
|
|
48
49
|
private shouldDeleteMessages: boolean;
|
|
49
50
|
private batchSize: number;
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SQSClient, Message } from '@aws-sdk/client-sqs';
|
|
1
|
+
import { SQSClient, Message, QueueAttributeName } from '@aws-sdk/client-sqs';
|
|
2
2
|
|
|
3
3
|
export interface ConsumerOptions {
|
|
4
4
|
/**
|
|
@@ -10,7 +10,7 @@ export interface ConsumerOptions {
|
|
|
10
10
|
* `['All', 'ApproximateFirstReceiveTimestamp', 'ApproximateReceiveCount']`).
|
|
11
11
|
* @defaultvalue `[]`
|
|
12
12
|
*/
|
|
13
|
-
attributeNames?:
|
|
13
|
+
attributeNames?: QueueAttributeName[];
|
|
14
14
|
/**
|
|
15
15
|
* List of message attributes to retrieve (i.e. `['name', 'address']`).
|
|
16
16
|
* @defaultvalue `[]`
|