node-consul-service 1.0.39 → 1.0.40
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 +4 -1
- package/dist/index.esm.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19421,7 +19421,7 @@ async function callService(serviceName, options = {}) {
|
|
|
19421
19421
|
};
|
|
19422
19422
|
}
|
|
19423
19423
|
catch (error) {
|
|
19424
|
-
|
|
19424
|
+
return {
|
|
19425
19425
|
success: false,
|
|
19426
19426
|
message: error.message,
|
|
19427
19427
|
status: (_a = error.response) === null || _a === void 0 ? void 0 : _a.status,
|
|
@@ -19514,6 +19514,9 @@ async function dataLink(data, schema) {
|
|
|
19514
19514
|
}
|
|
19515
19515
|
}
|
|
19516
19516
|
}
|
|
19517
|
+
if (!(response === null || response === void 0 ? void 0 : response.success)) {
|
|
19518
|
+
throw new DataLinkError(service, path, response);
|
|
19519
|
+
}
|
|
19517
19520
|
}
|
|
19518
19521
|
catch (error) {
|
|
19519
19522
|
throw new DataLinkError(service, path, error);
|
package/dist/index.esm.js
CHANGED
|
@@ -19419,7 +19419,7 @@ async function callService(serviceName, options = {}) {
|
|
|
19419
19419
|
};
|
|
19420
19420
|
}
|
|
19421
19421
|
catch (error) {
|
|
19422
|
-
|
|
19422
|
+
return {
|
|
19423
19423
|
success: false,
|
|
19424
19424
|
message: error.message,
|
|
19425
19425
|
status: (_a = error.response) === null || _a === void 0 ? void 0 : _a.status,
|
|
@@ -19512,6 +19512,9 @@ async function dataLink(data, schema) {
|
|
|
19512
19512
|
}
|
|
19513
19513
|
}
|
|
19514
19514
|
}
|
|
19515
|
+
if (!(response === null || response === void 0 ? void 0 : response.success)) {
|
|
19516
|
+
throw new DataLinkError(service, path, response);
|
|
19517
|
+
}
|
|
19515
19518
|
}
|
|
19516
19519
|
catch (error) {
|
|
19517
19520
|
throw new DataLinkError(service, path, error);
|