squiss-ts 5.2.2 → 5.2.3
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 +2 -2
- package/dist/TimeoutExtender.js +3 -1
- package/package.json +20 -13
package/dist/Squiss.js
CHANGED
|
@@ -145,7 +145,7 @@ class Squiss extends events_1.EventEmitter {
|
|
|
145
145
|
}
|
|
146
146
|
/* istanbul ignore if */
|
|
147
147
|
if (!newUrl) {
|
|
148
|
-
throw new Error(
|
|
148
|
+
throw new Error('Failed to get configured SQQ endpoint');
|
|
149
149
|
}
|
|
150
150
|
const parsedQueueUrl = new url_1.URL(this._queueUrl);
|
|
151
151
|
newUrl.pathname = parsedQueueUrl.pathname;
|
|
@@ -490,7 +490,7 @@ class Squiss extends events_1.EventEmitter {
|
|
|
490
490
|
getMessagePromise = (0, gzipUtils_1.compressMessage)(messageStr);
|
|
491
491
|
params.MessageAttributes = params.MessageAttributes || {};
|
|
492
492
|
params.MessageAttributes[gzipUtils_1.GZIP_MARKER] = {
|
|
493
|
-
StringValue:
|
|
493
|
+
StringValue: '1',
|
|
494
494
|
DataType: 'Number',
|
|
495
495
|
};
|
|
496
496
|
}
|
package/dist/TimeoutExtender.js
CHANGED
|
@@ -97,7 +97,9 @@ class TimeoutExtender {
|
|
|
97
97
|
})
|
|
98
98
|
.catch((err) => {
|
|
99
99
|
if (err.name === 'ReceiptHandleIsInvalid' || err.name === 'MessageNotInflight' ||
|
|
100
|
-
err.message.match(/
|
|
100
|
+
err.message.match(/message does not exist or is not available/i) ||
|
|
101
|
+
err.message.match(/the receipt handle has expired/i) ||
|
|
102
|
+
err.message.match(/not a valid receipt handle/i)) {
|
|
101
103
|
this._deleteNode(node);
|
|
102
104
|
node.message.emit('autoExtendFail', err);
|
|
103
105
|
this._squiss.emit('autoExtendFail', { message: node.message, error: err });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squiss-ts",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "High-volume SQS poller",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"compile": "tsc",
|
|
14
14
|
"test": "yarn lint && yarn mocha",
|
|
15
15
|
"cover": "yarn clean && yarn nyc yarn mocha",
|
|
16
|
-
"lint": "
|
|
16
|
+
"lint": "eslint -c .eslintrc.js --ext .ts \"src/**/*.ts\"",
|
|
17
17
|
"benchmark": "tsc --extendedDiagnostics --incremental false",
|
|
18
18
|
"e2e:start": "docker compose -f e2e/docker-compose.yml up &",
|
|
19
19
|
"e2e:stop": "docker compose -f e2e/docker-compose.yml down &"
|
|
@@ -48,25 +48,32 @@
|
|
|
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.
|
|
51
|
+
"@aws-sdk/client-s3": "^3.410.0",
|
|
52
|
+
"@aws-sdk/client-sqs": "^3.410.0",
|
|
53
|
+
"@aws-sdk/types": "^3.410.0",
|
|
54
54
|
"linked-list": "2.1.0",
|
|
55
55
|
"ts-type-guards": "^0.7.0",
|
|
56
|
-
"uuid": "^9.0.
|
|
56
|
+
"uuid": "^9.0.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
|
60
|
-
"@types/chai": "^4.3.
|
|
61
|
-
"@types/chai-as-promised": "^7.1.
|
|
60
|
+
"@types/chai": "^4.3.6",
|
|
61
|
+
"@types/chai-as-promised": "^7.1.6",
|
|
62
62
|
"@types/mocha": "^10.0.1",
|
|
63
63
|
"@types/node": "^16.18.39",
|
|
64
64
|
"@types/proxyquire": "^1.3.28",
|
|
65
|
-
"@types/uuid": "^9.0.
|
|
66
|
-
"
|
|
65
|
+
"@types/uuid": "^9.0.3",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
67
|
+
"@typescript-eslint/parser": "^6.7.0",
|
|
68
|
+
"chai": "^4.3.8",
|
|
67
69
|
"chai-as-promised": "^7.1.1",
|
|
68
70
|
"delay": "5.0.0",
|
|
69
71
|
"dirty-chai": "^2.0.1",
|
|
72
|
+
"eslint": "^8.49.0",
|
|
73
|
+
"eslint-config-prettier": "^9.0.0",
|
|
74
|
+
"eslint-plugin-import": "^2.28.1",
|
|
75
|
+
"eslint-plugin-jsdoc": "^46.6.0",
|
|
76
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
70
77
|
"mocha": "^10.2.0",
|
|
71
78
|
"nyc": "^15.1.0",
|
|
72
79
|
"proxyquire": "^2.1.3",
|
|
@@ -74,8 +81,7 @@
|
|
|
74
81
|
"sinon-chai": "^3.7.0",
|
|
75
82
|
"source-map-support": "^0.5.21",
|
|
76
83
|
"ts-node": "^10.9.1",
|
|
77
|
-
"
|
|
78
|
-
"typescript": "^5.1.6"
|
|
84
|
+
"typescript": "^5.2.2"
|
|
79
85
|
},
|
|
80
86
|
"nyc": {
|
|
81
87
|
"extends": "@istanbuljs/nyc-config-typescript",
|
|
@@ -84,7 +90,8 @@
|
|
|
84
90
|
"exclude": [
|
|
85
91
|
"src/test/**",
|
|
86
92
|
"e2e**",
|
|
87
|
-
"build**"
|
|
93
|
+
"build**",
|
|
94
|
+
".eslintrc.js"
|
|
88
95
|
],
|
|
89
96
|
"reporter": [
|
|
90
97
|
"html",
|