sqs-producer 3.1.3 → 3.2.1
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/dist/producer.js +1 -1
- package/package.json +7 -7
- package/src/producer.ts +1 -1
package/dist/producer.js
CHANGED
|
@@ -11,7 +11,7 @@ class Producer {
|
|
|
11
11
|
this.batchSize = options.batchSize || 10;
|
|
12
12
|
this.sqs =
|
|
13
13
|
options.sqs ||
|
|
14
|
-
new client_sqs_1.SQSClient(Object.assign(Object.assign({}, options), { region: options.region || 'eu-west-1' }));
|
|
14
|
+
new client_sqs_1.SQSClient(Object.assign(Object.assign({}, options), { region: options.region || process.env.AWS_REGION || 'eu-west-1' }));
|
|
15
15
|
}
|
|
16
16
|
async queueSize() {
|
|
17
17
|
const command = new client_sqs_1.GetQueueAttributesCommand({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sqs-producer",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Enqueues messages onto a given SQS queue",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
"@types/chai": "^4.3.5",
|
|
42
42
|
"@types/debug": "^4.1.8",
|
|
43
43
|
"@types/mocha": "^10.0.1",
|
|
44
|
-
"@types/node": "^
|
|
44
|
+
"@types/node": "^20.4.1",
|
|
45
45
|
"@types/sinon": "^10.0.15",
|
|
46
46
|
"chai": "^4.3.7",
|
|
47
|
-
"eslint": "^8.
|
|
47
|
+
"eslint": "^8.44.0",
|
|
48
48
|
"eslint-config-iplayer-ts": "^4.1.1",
|
|
49
49
|
"eslint-config-prettier": "^8.8.0",
|
|
50
50
|
"mocha": "^10.2.0",
|
|
51
51
|
"nyc": "^15.1.0",
|
|
52
|
-
"prettier": "^
|
|
52
|
+
"prettier": "^3.0.0",
|
|
53
53
|
"sinon": "^15.2.0",
|
|
54
54
|
"ts-node": "^10.9.1",
|
|
55
|
-
"typescript": "^5.1.
|
|
55
|
+
"typescript": "^5.1.6"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@aws-sdk/client-sqs": "^3.
|
|
58
|
+
"@aws-sdk/client-sqs": "^3.363.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@aws-sdk/client-sqs": "^3.
|
|
61
|
+
"@aws-sdk/client-sqs": "^3.363.0"
|
|
62
62
|
},
|
|
63
63
|
"mocha": {
|
|
64
64
|
"spec": "test/**/**/*.test.ts",
|