ac-sqs 2.0.6 → 2.0.8
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/CHANGELOG.md +31 -0
- package/README.md +2 -0
- package/index.js +4 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
<a name="2.0.8"></a>
|
|
2
|
+
|
|
3
|
+
## [2.0.8](https://github.com/admiralcloud/ac-sqs/compare/v2.0.7..v2.0.8) (2024-10-16 13:20:21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fix
|
|
7
|
+
|
|
8
|
+
* **App:** Package updates | MP | [b9ceec9717166b22851618a22292ac5784d9d849](https://github.com/admiralcloud/ac-sqs/commit/b9ceec9717166b22851618a22292ac5784d9d849)
|
|
9
|
+
Package updates
|
|
10
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
11
|
+
<a name="2.0.7"></a>
|
|
12
|
+
|
|
13
|
+
## [2.0.7](https://github.com/admiralcloud/ac-sqs/compare/v2.0.6..v2.0.7) (2024-10-02 04:32:44)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fix
|
|
17
|
+
|
|
18
|
+
* **App:** Added debug option | MP | [4ca1e0155758e98874b81a11e4c2ed491d1f1430](https://github.com/admiralcloud/ac-sqs/commit/4ca1e0155758e98874b81a11e4c2ed491d1f1430)
|
|
19
|
+
If list is configured with debug=true, all SQS operations are logged
|
|
20
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
21
|
+
### Chores
|
|
22
|
+
|
|
23
|
+
* **App:** Package fix | MP | [f5451d1fa4573b69cc523b5a71bee7a8f35d2a38](https://github.com/admiralcloud/ac-sqs/commit/f5451d1fa4573b69cc523b5a71bee7a8f35d2a38)
|
|
24
|
+
Package fix
|
|
25
|
+
Related issues: [admiralcloud/ac-sqs#1](https://github.com/admiralcloud/ac-sqs/issues/1) [admiralcloud/ac-api-server#340](https://github.com/admiralcloud/ac-api-server/issues/340)
|
|
26
|
+
* **App:** Package fix | MP | [8f988ed8010b990d7fde443d49c14718f6c5c6f9](https://github.com/admiralcloud/ac-sqs/commit/8f988ed8010b990d7fde443d49c14718f6c5c6f9)
|
|
27
|
+
Package fix for devDependecies
|
|
28
|
+
Related issues: [admiralcloud/ac-sqs#1](https://github.com/admiralcloud/ac-sqs/issues/1) [admiralcloud/ac-api-server#340](https://github.com/admiralcloud/ac-api-server/issues/340)
|
|
29
|
+
* **App:** Updated packages | MP | [6829c6438bf5352d19e9573bc7f1195218aedd6c](https://github.com/admiralcloud/ac-sqs/commit/6829c6438bf5352d19e9573bc7f1195218aedd6c)
|
|
30
|
+
Updated packages
|
|
31
|
+
Related issues: [undefined/undefined#master](undefined/browse/master)
|
|
1
32
|
<a name="2.0.6"></a>
|
|
2
33
|
|
|
3
34
|
## [2.0.6](https://github.com/admiralcloud/ac-sqs/compare/v2.0.5..v2.0.6) (2024-10-01 13:15:15)
|
package/README.md
CHANGED
|
@@ -38,6 +38,8 @@ Array of AWS SQS lists that will be used by this function. Every item in the lis
|
|
|
38
38
|
+ waitTime -> see AWS SQS for details, defaults to 20
|
|
39
39
|
+ fifo -> set to true, if this is a fifo list
|
|
40
40
|
+ localPrefix -> set your local prefix. See below for more info
|
|
41
|
+
+ debug -> if true, all SQS payloads for that list will be logged (level debug)
|
|
42
|
+
+ throwError -> if true, error will throw otherwise they will only be logged (default)
|
|
41
43
|
|
|
42
44
|
Name should be the plain name of the list. Parameters like fifo or test (in test environment) or localPrefixes (for local development) should not be part of the list name. LocalPrefix can be used if multiple developers work on your project and you want to make sure they all work on their own SQS list without changing the name of all SQS lists in your main project.
|
|
43
45
|
|
package/index.js
CHANGED
|
@@ -69,6 +69,7 @@ class ACSQS {
|
|
|
69
69
|
QueueUrl: await this.getQueueUrl(config),
|
|
70
70
|
AttributeNames: attributes
|
|
71
71
|
}
|
|
72
|
+
if (config.debug) this.logger.debug('ACSQS | getQueueAttributes | Payload %j', sqsParams)
|
|
72
73
|
const command = new GetQueueAttributesCommand(sqsParams)
|
|
73
74
|
try {
|
|
74
75
|
return await this.sqs.send(command)
|
|
@@ -109,6 +110,7 @@ class ACSQS {
|
|
|
109
110
|
if (deDuplicationId) _.set(sqsParams, 'MessageDeduplicationId', deDuplicationId)
|
|
110
111
|
if (delay) _.set(sqsParams, 'DelaySeconds', delay)
|
|
111
112
|
|
|
113
|
+
if (config.debug) this.logger.debug('ACSQS | sendSQSMessage | Payload %j', sqsParams)
|
|
112
114
|
const command = new SendMessageCommand(sqsParams)
|
|
113
115
|
try {
|
|
114
116
|
const response = await this.sqs.send(command)
|
|
@@ -132,6 +134,7 @@ class ACSQS {
|
|
|
132
134
|
VisibilityTimeout: _.get(config, 'visibilityTimeout', 30),
|
|
133
135
|
WaitTimeSeconds: _.get(config, 'waitTime', 20)
|
|
134
136
|
}
|
|
137
|
+
if (config.debug) this.logger.debug('ACSQS | receiveSQSMessages | Payload %j', sqsParams)
|
|
135
138
|
const command = new ReceiveMessageCommand(sqsParams)
|
|
136
139
|
try {
|
|
137
140
|
const result = await this.sqs.send(command)
|
|
@@ -179,6 +182,7 @@ class ACSQS {
|
|
|
179
182
|
QueueUrl: await this.getQueueUrl(config),
|
|
180
183
|
Entries: entries
|
|
181
184
|
}
|
|
185
|
+
if (config.debug) this.logger.debug('ACSQS | deleteSQSMessages | Payload %j', sqsParams)
|
|
182
186
|
const command = new DeleteMessageBatchCommand(sqsParams)
|
|
183
187
|
try {
|
|
184
188
|
const response = await this.sqs.send(command)
|
package/package.json
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
"author": "Mark Poepping (https://www.admiralcloud.com)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "admiralcloud/ac-sqs",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.8",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@aws-sdk/client-s3": "^3.
|
|
9
|
-
"@aws-sdk/client-sqs": "^3.
|
|
10
|
-
"@aws-sdk/credential-providers": "^3.
|
|
8
|
+
"@aws-sdk/client-s3": "^3.670.0",
|
|
9
|
+
"@aws-sdk/client-sqs": "^3.670.0",
|
|
10
|
+
"@aws-sdk/credential-providers": "^3.670.0",
|
|
11
11
|
"lodash": "^4.17.21",
|
|
12
12
|
"uuid": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"ac-semantic-release": "^0.4.3",
|
|
16
16
|
"chai": "^4.5.0",
|
|
17
|
-
"eslint": "^9.
|
|
18
|
-
"mocha": "^10.
|
|
17
|
+
"eslint": "^9.12.0",
|
|
18
|
+
"mocha": "^10.7.3"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"test": "mocha --reporter spec"
|