node-consul-service 1.0.56 → 1.0.57
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/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19051,7 +19051,7 @@ async function callService(serviceName, options = {}) {
|
|
|
19051
19051
|
success: false,
|
|
19052
19052
|
message: error.message,
|
|
19053
19053
|
status: (_a = error.response) === null || _a === void 0 ? void 0 : _a.status,
|
|
19054
|
-
code: (_c = (_b = error.response) === null || _b === void 0 ? void 0 : _b.code) !== null && _c !== void 0 ? _c : "",
|
|
19054
|
+
code: (_c = (_b = error.response) === null || _b === void 0 ? void 0 : _b.data.code) !== null && _c !== void 0 ? _c : "",
|
|
19055
19055
|
data: (_d = error.response) === null || _d === void 0 ? void 0 : _d.data,
|
|
19056
19056
|
};
|
|
19057
19057
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -19049,7 +19049,7 @@ async function callService(serviceName, options = {}) {
|
|
|
19049
19049
|
success: false,
|
|
19050
19050
|
message: error.message,
|
|
19051
19051
|
status: (_a = error.response) === null || _a === void 0 ? void 0 : _a.status,
|
|
19052
|
-
code: (_c = (_b = error.response) === null || _b === void 0 ? void 0 : _b.code) !== null && _c !== void 0 ? _c : "",
|
|
19052
|
+
code: (_c = (_b = error.response) === null || _b === void 0 ? void 0 : _b.data.code) !== null && _c !== void 0 ? _c : "",
|
|
19053
19053
|
data: (_d = error.response) === null || _d === void 0 ? void 0 : _d.data,
|
|
19054
19054
|
};
|
|
19055
19055
|
}
|