squiss-ts 5.2.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.
Files changed (2) hide show
  1. package/dist/Squiss.js +6 -4
  2. package/package.json +5 -5
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) => this._getBatch(queueUrl))
443
- .catch((e) => {
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.2.0",
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,9 +48,9 @@
48
48
  },
49
49
  "homepage": "https://github.com/PruvoNet/squiss-ts#readme",
50
50
  "dependencies": {
51
- "@aws-sdk/client-s3": "^3.342.0",
52
- "@aws-sdk/client-sqs": "^3.342.0",
53
- "@aws-sdk/types": "^3.342.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
54
  "linked-list": "2.1.0",
55
55
  "ts-type-guards": "^0.7.0",
56
56
  "uuid": "^9.0.0"
@@ -75,7 +75,7 @@
75
75
  "source-map-support": "^0.5.21",
76
76
  "ts-node": "^10.9.1",
77
77
  "tslint": "^6.1.3",
78
- "typescript": "^5.0.4"
78
+ "typescript": "^5.1.3"
79
79
  },
80
80
  "nyc": {
81
81
  "extends": "@istanbuljs/nyc-config-typescript",