@sprucelabs/mercury-client 43.1.8 → 43.1.10

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.8",
6
+ "version": "43.1.10",
7
7
  "files": [
8
8
  "build"
9
9
  ],
@@ -59,26 +59,26 @@
59
59
  "watch.tsc": "tsc -w"
60
60
  },
61
61
  "dependencies": {
62
- "@sprucelabs/error": "^7.1.38",
63
- "@sprucelabs/schema": "^32.3.13",
64
- "@sprucelabs/spruce-core-schemas": "^41.3.42",
65
- "@sprucelabs/spruce-event-utils": "^41.0.161",
66
- "@sprucelabs/spruce-skill-utils": "^32.1.17",
62
+ "@sprucelabs/error": "^7.1.39",
63
+ "@sprucelabs/schema": "^32.3.17",
64
+ "@sprucelabs/spruce-core-schemas": "^41.3.46",
65
+ "@sprucelabs/spruce-event-utils": "^41.0.166",
66
+ "@sprucelabs/spruce-skill-utils": "^32.1.21",
67
67
  "dotenv": "^17.2.3",
68
68
  "just-clone": "^6.2.0",
69
69
  "socket.io-client": "^4.8.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@sprucelabs/esm-postbuild": "^7.0.49",
73
- "@sprucelabs/jest-json-reporter": "^9.0.71",
74
- "@sprucelabs/mercury-core-events": "^27.4.45",
75
- "@sprucelabs/mercury-event-emitter": "^43.1.8",
76
- "@sprucelabs/mercury-types": "^48.0.142",
77
- "@sprucelabs/resolve-path-aliases": "^3.0.29",
72
+ "@sprucelabs/esm-postbuild": "^7.0.50",
73
+ "@sprucelabs/jest-json-reporter": "^9.0.73",
74
+ "@sprucelabs/mercury-core-events": "^27.4.50",
75
+ "@sprucelabs/mercury-event-emitter": "^43.1.10",
76
+ "@sprucelabs/mercury-types": "^48.0.147",
77
+ "@sprucelabs/resolve-path-aliases": "^3.0.30",
78
78
  "@sprucelabs/semantic-release": "^5.0.2",
79
79
  "@sprucelabs/test": "^10.0.25",
80
- "@sprucelabs/test-utils": "^6.0.117",
81
- "@types/node": "^24.9.1",
80
+ "@sprucelabs/test-utils": "^6.0.120",
81
+ "@types/node": "^24.9.2",
82
82
  "chokidar-cli": "^3.0.0",
83
83
  "eslint": "^9.38.0",
84
84
  "eslint-config-spruce": "^11.2.26",
@@ -108,5 +108,5 @@
108
108
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
109
109
  }
110
110
  },
111
- "gitHead": "964fd499f6fe49c80d2041b8b921650a4c7f30a1"
111
+ "gitHead": "f4a9d60f7644385f2fc8b9c386b8c692dc8b7132"
112
112
  }