squiss-ts 5.1.0 → 5.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/Squiss.js +6 -4
- package/package.json +10 -12
package/dist/Squiss.js
CHANGED
|
@@ -194,7 +194,10 @@ class Squiss extends events_1.EventEmitter {
|
|
|
194
194
|
this._inFlight--;
|
|
195
195
|
if (this._paused && this._slotsAvailable()) {
|
|
196
196
|
this._paused = false;
|
|
197
|
-
this._startPoller()
|
|
197
|
+
this._startPoller()
|
|
198
|
+
.catch((e) => {
|
|
199
|
+
this.emit('error', e);
|
|
200
|
+
});
|
|
198
201
|
}
|
|
199
202
|
msg.emit('handled');
|
|
200
203
|
this.emit('handled', msg);
|
|
@@ -439,9 +442,8 @@ class Squiss extends events_1.EventEmitter {
|
|
|
439
442
|
_startPoller() {
|
|
440
443
|
return this._initTimeoutExtender()
|
|
441
444
|
.then(() => this.getQueueUrl())
|
|
442
|
-
.then((queueUrl) =>
|
|
443
|
-
.
|
|
444
|
-
this.emit('error', e);
|
|
445
|
+
.then((queueUrl) => {
|
|
446
|
+
this._getBatch(queueUrl);
|
|
445
447
|
});
|
|
446
448
|
}
|
|
447
449
|
_deleteXMessages(x) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squiss-ts",
|
|
3
|
-
"version": "5.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "High-volume SQS poller",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,36 +48,34 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/PruvoNet/squiss-ts#readme",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/client-s3": "^3.
|
|
52
|
-
"@aws-sdk/client-sqs": "^3.
|
|
53
|
-
"@aws-sdk/types": "^3.
|
|
54
|
-
"linked-list": "
|
|
55
|
-
"semver": "7.4.0",
|
|
51
|
+
"@aws-sdk/client-s3": "^3.359.0",
|
|
52
|
+
"@aws-sdk/client-sqs": "^3.359.0",
|
|
53
|
+
"@aws-sdk/types": "^3.357.0",
|
|
54
|
+
"linked-list": "2.1.0",
|
|
56
55
|
"ts-type-guards": "^0.7.0",
|
|
57
56
|
"uuid": "^9.0.0"
|
|
58
57
|
},
|
|
59
58
|
"devDependencies": {
|
|
60
59
|
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
|
61
|
-
"@types/chai": "^4.3.
|
|
60
|
+
"@types/chai": "^4.3.5",
|
|
62
61
|
"@types/chai-as-promised": "^7.1.5",
|
|
63
62
|
"@types/mocha": "^10.0.1",
|
|
64
|
-
"@types/node": "^14.18.
|
|
63
|
+
"@types/node": "^14.18.48",
|
|
65
64
|
"@types/proxyquire": "^1.3.28",
|
|
66
|
-
"@types/semver": "^7.3.13",
|
|
67
65
|
"@types/uuid": "^9.0.1",
|
|
68
66
|
"chai": "^4.3.7",
|
|
69
67
|
"chai-as-promised": "^7.1.1",
|
|
70
|
-
"delay": "
|
|
68
|
+
"delay": "5.0.0",
|
|
71
69
|
"dirty-chai": "^2.0.1",
|
|
72
70
|
"mocha": "^10.2.0",
|
|
73
71
|
"nyc": "^15.1.0",
|
|
74
72
|
"proxyquire": "^2.1.3",
|
|
75
|
-
"sinon": "^15.0
|
|
73
|
+
"sinon": "^15.1.0",
|
|
76
74
|
"sinon-chai": "^3.7.0",
|
|
77
75
|
"source-map-support": "^0.5.21",
|
|
78
76
|
"ts-node": "^10.9.1",
|
|
79
77
|
"tslint": "^6.1.3",
|
|
80
|
-
"typescript": "^5.
|
|
78
|
+
"typescript": "^5.1.3"
|
|
81
79
|
},
|
|
82
80
|
"nyc": {
|
|
83
81
|
"extends": "@istanbuljs/nyc-config-typescript",
|