@sprucelabs/mercury-client 43.1.8 → 43.1.9
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.
|
@@ -56,7 +56,7 @@ class MercurySocketIoClient {
|
|
|
56
56
|
}
|
|
57
57
|
if (this.shouldReconnect) {
|
|
58
58
|
this.socket?.once('disconnect', async (opts) => {
|
|
59
|
-
this.log.error('Mercury disconnected, reason:', opts);
|
|
59
|
+
this.log.error('Mercury disconnected from', this.host, 'reason:', opts);
|
|
60
60
|
await this.attemptReconnectAfterDelay();
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -87,7 +87,7 @@ class MercurySocketIoClient {
|
|
|
87
87
|
const error = this.mapSocketErrorToSpruceError(err);
|
|
88
88
|
//@ts-ignore
|
|
89
89
|
this.socket?.removeAllListeners();
|
|
90
|
-
this.log.error('Failed to connect to Mercury', error.message);
|
|
90
|
+
this.log.error('Failed to connect to Mercury at', this.host, error.message);
|
|
91
91
|
this.log.error('Connection retries left', `${this.connectionRetriesRemaining}`);
|
|
92
92
|
if (this.connectionRetriesRemaining === 0) {
|
|
93
93
|
reject?.(error);
|
|
@@ -73,7 +73,7 @@ class MercurySocketIoClient {
|
|
|
73
73
|
}
|
|
74
74
|
if (this.shouldReconnect) {
|
|
75
75
|
(_b = this.socket) === null || _b === void 0 ? void 0 : _b.once('disconnect', (opts) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
this.log.error('Mercury disconnected, reason:', opts);
|
|
76
|
+
this.log.error('Mercury disconnected from', this.host, 'reason:', opts);
|
|
77
77
|
yield this.attemptReconnectAfterDelay();
|
|
78
78
|
}));
|
|
79
79
|
}
|
|
@@ -107,7 +107,7 @@ class MercurySocketIoClient {
|
|
|
107
107
|
const error = this.mapSocketErrorToSpruceError(err);
|
|
108
108
|
//@ts-ignore
|
|
109
109
|
(_a = this.socket) === null || _a === void 0 ? void 0 : _a.removeAllListeners();
|
|
110
|
-
this.log.error('Failed to connect to Mercury', error.message);
|
|
110
|
+
this.log.error('Failed to connect to Mercury at', this.host, error.message);
|
|
111
111
|
this.log.error('Connection retries left', `${this.connectionRetriesRemaining}`);
|
|
112
112
|
if (this.connectionRetriesRemaining === 0) {
|
|
113
113
|
reject === null || reject === void 0 ? void 0 : reject(error);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "43.1.
|
|
6
|
+
"version": "43.1.9",
|
|
7
7
|
"files": [
|
|
8
8
|
"build"
|
|
9
9
|
],
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@sprucelabs/esm-postbuild": "^7.0.49",
|
|
73
73
|
"@sprucelabs/jest-json-reporter": "^9.0.71",
|
|
74
74
|
"@sprucelabs/mercury-core-events": "^27.4.45",
|
|
75
|
-
"@sprucelabs/mercury-event-emitter": "^43.1.
|
|
75
|
+
"@sprucelabs/mercury-event-emitter": "^43.1.9",
|
|
76
76
|
"@sprucelabs/mercury-types": "^48.0.142",
|
|
77
77
|
"@sprucelabs/resolve-path-aliases": "^3.0.29",
|
|
78
78
|
"@sprucelabs/semantic-release": "^5.0.2",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "098a94eb0aeb63dddf873fb4502fa31c66e63007"
|
|
112
112
|
}
|