node-consul-service 1.0.28 → 1.0.29
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
|
@@ -19439,7 +19439,8 @@ function normalizeId(id) {
|
|
|
19439
19439
|
async function dataLink(data, schema) {
|
|
19440
19440
|
const isArray = Array.isArray(data);
|
|
19441
19441
|
const sourceData = isArray ? data : [data];
|
|
19442
|
-
|
|
19442
|
+
// ✅ ننسخ كل عنصر بدون التأثير على الأصل
|
|
19443
|
+
const result = sourceData.map(item => ({ ...item }));
|
|
19443
19444
|
await Promise.all(schema.map(async ({ filed, service, path, headers, cacheGetter }) => {
|
|
19444
19445
|
var _a;
|
|
19445
19446
|
const uniqueIds = Array.from(new Set(sourceData.flatMap(item => {
|
package/dist/index.esm.js
CHANGED
|
@@ -19437,7 +19437,8 @@ function normalizeId(id) {
|
|
|
19437
19437
|
async function dataLink(data, schema) {
|
|
19438
19438
|
const isArray = Array.isArray(data);
|
|
19439
19439
|
const sourceData = isArray ? data : [data];
|
|
19440
|
-
|
|
19440
|
+
// ✅ ننسخ كل عنصر بدون التأثير على الأصل
|
|
19441
|
+
const result = sourceData.map(item => ({ ...item }));
|
|
19441
19442
|
await Promise.all(schema.map(async ({ filed, service, path, headers, cacheGetter }) => {
|
|
19442
19443
|
var _a;
|
|
19443
19444
|
const uniqueIds = Array.from(new Set(sourceData.flatMap(item => {
|