node-consul-service 1.0.56 → 1.0.58
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 +2 -1
- package/dist/index.esm.js +2 -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
|
}
|
|
@@ -19164,6 +19164,7 @@ async function dataLink(data, schema) {
|
|
|
19164
19164
|
}
|
|
19165
19165
|
for (const item of result) {
|
|
19166
19166
|
const value = getValueByPath(item, field);
|
|
19167
|
+
console.log("🚀 ~ dataLink ~ value:", value);
|
|
19167
19168
|
if (typeof value === "string") {
|
|
19168
19169
|
if (value.includes(",")) {
|
|
19169
19170
|
const ids = value.split(",").map((v) => normalizeId(v.trim()));
|
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
|
}
|
|
@@ -19162,6 +19162,7 @@ async function dataLink(data, schema) {
|
|
|
19162
19162
|
}
|
|
19163
19163
|
for (const item of result) {
|
|
19164
19164
|
const value = getValueByPath(item, field);
|
|
19165
|
+
console.log("🚀 ~ dataLink ~ value:", value);
|
|
19165
19166
|
if (typeof value === "string") {
|
|
19166
19167
|
if (value.includes(",")) {
|
|
19167
19168
|
const ids = value.split(",").map((v) => normalizeId(v.trim()));
|