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 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
- const result = [...sourceData];
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
- const result = [...sourceData];
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 => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-consul-service",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",