@imqueue/core 2.0.5 → 2.0.6
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/package.json +17 -17
- package/src/UDPClusterManager.js +4 -1
- package/debug.d.ts +0 -1
- package/debug_getter.d.ts +0 -9
- package/debug_listener.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imqueue/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Simple JSON-based messaging queue for inter service communication",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"message-queue",
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"json-message"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
+
"benchmark": "node benchmark -c $(( $(nproc) - 2 )) -m 100000",
|
|
14
15
|
"prepare": "./node_modules/.bin/tsc",
|
|
15
|
-
"test": "./node_modules/.bin/tsc && ./node_modules/.bin/nyc mocha && ./node_modules/.bin/nyc report --reporter=text-lcov
|
|
16
|
+
"test": "./node_modules/.bin/tsc && ./node_modules/.bin/nyc mocha && ./node_modules/.bin/nyc report --reporter=text-lcov",
|
|
16
17
|
"test-fast": "./node_modules/.bin/tsc && ./node_modules/.bin/nyc mocha && /usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/coverage/index.html', { wait: false }))\"",
|
|
17
18
|
"test-local": "export COVERALLS_REPO_TOKEN=$IMQ_COVERALLS_TOKEN && npm test && /usr/bin/env node -e \"import('open').then(open => open.default('https://coveralls.io/github/imqueue/imq', { wait: false }))\"",
|
|
18
19
|
"test-dev": "npm run test && npm run clean-js && npm run clean-typedefs && npm run clean-maps",
|
|
@@ -37,37 +38,36 @@
|
|
|
37
38
|
"author": "imqueue.com <support@imqueue.com> (https://imqueue.com)",
|
|
38
39
|
"license": "GPL-3.0-only",
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"ioredis": "^5.
|
|
41
|
+
"ioredis": "^5.7.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@eslint/js": "^9.
|
|
44
|
+
"@eslint/js": "^9.33.0",
|
|
44
45
|
"@types/chai": "^5.2.2",
|
|
45
46
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
46
47
|
"@types/mocha": "^10.0.0",
|
|
47
48
|
"@types/mock-require": "^3.0.0",
|
|
48
|
-
"@types/node": "^24.
|
|
49
|
+
"@types/node": "^24.2.1",
|
|
49
50
|
"@types/sinon": "^17.0.4",
|
|
50
51
|
"@types/yargs": "^17.0.33",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
52
|
-
"@typescript-eslint/parser": "^8.
|
|
53
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
54
|
-
"chai": "^5.2.
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"eslint": "^
|
|
58
|
-
"eslint-plugin-jsdoc": "^51.3.1",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
53
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
54
|
+
"@typescript-eslint/typescript-estree": "^8.39.0",
|
|
55
|
+
"chai": "^5.2.1",
|
|
56
|
+
"coveralls-next": "^5.0.0",
|
|
57
|
+
"eslint": "^9.33.0",
|
|
58
|
+
"eslint-plugin-jsdoc": "^52.0.4",
|
|
59
59
|
"mocha": "^11.7.1",
|
|
60
60
|
"mocha-lcov-reporter": "^1.3.0",
|
|
61
61
|
"mock-require": "^3.0.3",
|
|
62
62
|
"nyc": "^17.1.0",
|
|
63
|
-
"open": "^10.
|
|
63
|
+
"open": "^10.2.0",
|
|
64
64
|
"reflect-metadata": "^0.2.2",
|
|
65
65
|
"sinon": "^21.0.0",
|
|
66
66
|
"source-map-support": "^0.5.21",
|
|
67
67
|
"ts-node": "^10.9.2",
|
|
68
|
-
"typedoc": "^0.28.
|
|
69
|
-
"typescript": "^5.
|
|
70
|
-
"yargs": "^
|
|
68
|
+
"typedoc": "^0.28.9",
|
|
69
|
+
"typescript": "^5.9.2",
|
|
70
|
+
"yargs": "^18.0.0"
|
|
71
71
|
},
|
|
72
72
|
"main": "index.js",
|
|
73
73
|
"typescript": {
|
package/src/UDPClusterManager.js
CHANGED
|
@@ -166,7 +166,10 @@ class UDPClusterManager extends ClusterManager_1.ClusterManager {
|
|
|
166
166
|
if (typeof socket.close === 'function') {
|
|
167
167
|
socket.removeAllListeners();
|
|
168
168
|
socket.close(() => {
|
|
169
|
-
|
|
169
|
+
// unref may be missing or not a function on mocked sockets
|
|
170
|
+
if (socket && typeof socket.unref === 'function') {
|
|
171
|
+
socket.unref();
|
|
172
|
+
}
|
|
170
173
|
if (socketKey
|
|
171
174
|
&& UDPClusterManager.sockets[socketKey]) {
|
|
172
175
|
delete UDPClusterManager.sockets[socketKey];
|
package/debug.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/debug_getter.d.ts
DELETED
package/debug_listener.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|