@message-queue-toolkit/sns 24.6.1 → 24.7.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/LICENSE +21 -0
- package/README.md +5 -0
- package/package.json +86 -84
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Igor Savin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -740,6 +740,11 @@ SNS consumers use the same options as SQS consumers, plus SNS-specific subscript
|
|
|
740
740
|
concurrentConsumersAmount: 1,
|
|
741
741
|
maxRetryDuration: 345600, // 4 days
|
|
742
742
|
deadLetterQueue: { /* ... */ },
|
|
743
|
+
// SQS ReceiveMessage WaitTimeSeconds, 0–20. Defaults to 20 (full long polling)
|
|
744
|
+
// — cuts empty-receive cost, AWS API churn, and tail latency vs. short polling.
|
|
745
|
+
// Set to 0 to opt into short polling (common in tests asserting on "message
|
|
746
|
+
// was NOT processed", or for niche workloads where per-poll latency dominates).
|
|
747
|
+
consumerPollingWaitTimeSeconds: 20,
|
|
743
748
|
consumerOverrides: { /* ... */ },
|
|
744
749
|
// ... see SQS README for full list
|
|
745
750
|
}
|
package/package.json
CHANGED
|
@@ -1,85 +1,87 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
]
|
|
85
|
-
|
|
2
|
+
"name": "@message-queue-toolkit/sns",
|
|
3
|
+
"version": "24.7.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "SNS adapter for message-queue-toolkit",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22.0.0"
|
|
9
|
+
},
|
|
10
|
+
"maintainers": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Igor Savin",
|
|
13
|
+
"email": "kibertoad@gmail.com"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./dist/index.js",
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@lokalise/node-core": "^14.4.2",
|
|
24
|
+
"sqs-consumer": "^15.0.1"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@aws-sdk/client-sns": "^3.632.0",
|
|
28
|
+
"@aws-sdk/client-sqs": "^3.1034.0",
|
|
29
|
+
"@aws-sdk/client-sts": "^3.632.0",
|
|
30
|
+
"@message-queue-toolkit/core": ">=24.0.0",
|
|
31
|
+
"@message-queue-toolkit/schemas": ">=7.0.0",
|
|
32
|
+
"@message-queue-toolkit/sqs": ">=23.0.0",
|
|
33
|
+
"zod": ">=3.25.76 <5.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@aws-sdk/client-s3": "^3.812.0",
|
|
37
|
+
"@aws-sdk/client-sns": "^3.812.0",
|
|
38
|
+
"@aws-sdk/client-sqs": "^3.1034.0",
|
|
39
|
+
"@biomejs/biome": "^2.3.6",
|
|
40
|
+
"@lokalise/biome-config": "^3.1.0",
|
|
41
|
+
"@lokalise/tsconfig": "^3.0.0",
|
|
42
|
+
"@message-queue-toolkit/core": "*",
|
|
43
|
+
"@message-queue-toolkit/redis-message-deduplication-store": "*",
|
|
44
|
+
"@message-queue-toolkit/s3-payload-store": "*",
|
|
45
|
+
"@types/node": "^25.0.2",
|
|
46
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
47
|
+
"awilix": "^13.0.3",
|
|
48
|
+
"awilix-manager": "^6.1.0",
|
|
49
|
+
"fauxqs": "^2.0.0",
|
|
50
|
+
"ioredis": "^5.7.0",
|
|
51
|
+
"rimraf": "^6.0.1",
|
|
52
|
+
"typescript": "^5.9.3",
|
|
53
|
+
"vitest": "^4.0.15",
|
|
54
|
+
"zod": "^4.1.13",
|
|
55
|
+
"@message-queue-toolkit/sqs": "24.3.0"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/kibertoad/message-queue-toolkit",
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git://github.com/kibertoad/message-queue-toolkit.git"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"message",
|
|
64
|
+
"queue",
|
|
65
|
+
"queues",
|
|
66
|
+
"abstract",
|
|
67
|
+
"common",
|
|
68
|
+
"utils",
|
|
69
|
+
"notification",
|
|
70
|
+
"sns"
|
|
71
|
+
],
|
|
72
|
+
"files": [
|
|
73
|
+
"README.md",
|
|
74
|
+
"LICENSE",
|
|
75
|
+
"dist/*"
|
|
76
|
+
],
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "pnpm run clean && tsc --project tsconfig.build.json",
|
|
79
|
+
"clean": "rimraf dist",
|
|
80
|
+
"test": "vitest",
|
|
81
|
+
"test:coverage": "pnpm run test --coverage",
|
|
82
|
+
"lint": "biome check . && tsc",
|
|
83
|
+
"lint:fix": "biome check --write .",
|
|
84
|
+
"docker:start": "docker compose up -d redis && if [ \"$QUEUE_BACKEND\" = \"localstack\" ]; then docker compose up -d --quiet-pull --wait localstack; fi",
|
|
85
|
+
"docker:stop": "docker compose down"
|
|
86
|
+
}
|
|
87
|
+
}
|