node-consul-service 1.0.62 → 1.0.63
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 +3 -0
- package/dist/index.esm.js +3 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19194,7 +19194,9 @@ async function getCachedAndUncachedItems(ids, cacheGetter) {
|
|
|
19194
19194
|
async function dataLink(data, schema) {
|
|
19195
19195
|
const isArray = Array.isArray(data);
|
|
19196
19196
|
const sourceData = isArray ? data : [data];
|
|
19197
|
+
console.log("🚀 ~ dataLink ~ sourceData:", sourceData);
|
|
19197
19198
|
const result = sourceData.map((item) => ({ ...item }));
|
|
19199
|
+
console.log("🚀 ~ dataLink ~ result:", result);
|
|
19198
19200
|
for (const { field, service, path, headers, cacheGetter } of schema) {
|
|
19199
19201
|
const allIds = Array.from(new Set(sourceData.flatMap((item) => extractIdsFromField(item, field))));
|
|
19200
19202
|
if (allIds.length === 0)
|
|
@@ -19208,6 +19210,7 @@ async function dataLink(data, schema) {
|
|
|
19208
19210
|
}
|
|
19209
19211
|
}
|
|
19210
19212
|
}
|
|
19213
|
+
console.log("🚀 ~ dataLink ~ result:", result);
|
|
19211
19214
|
for (const item of result) {
|
|
19212
19215
|
applyResolvedValues(item, field, cacheMap);
|
|
19213
19216
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -19192,7 +19192,9 @@ async function getCachedAndUncachedItems(ids, cacheGetter) {
|
|
|
19192
19192
|
async function dataLink(data, schema) {
|
|
19193
19193
|
const isArray = Array.isArray(data);
|
|
19194
19194
|
const sourceData = isArray ? data : [data];
|
|
19195
|
+
console.log("🚀 ~ dataLink ~ sourceData:", sourceData);
|
|
19195
19196
|
const result = sourceData.map((item) => ({ ...item }));
|
|
19197
|
+
console.log("🚀 ~ dataLink ~ result:", result);
|
|
19196
19198
|
for (const { field, service, path, headers, cacheGetter } of schema) {
|
|
19197
19199
|
const allIds = Array.from(new Set(sourceData.flatMap((item) => extractIdsFromField(item, field))));
|
|
19198
19200
|
if (allIds.length === 0)
|
|
@@ -19206,6 +19208,7 @@ async function dataLink(data, schema) {
|
|
|
19206
19208
|
}
|
|
19207
19209
|
}
|
|
19208
19210
|
}
|
|
19211
|
+
console.log("🚀 ~ dataLink ~ result:", result);
|
|
19209
19212
|
for (const item of result) {
|
|
19210
19213
|
applyResolvedValues(item, field, cacheMap);
|
|
19211
19214
|
}
|