node-consul-service 1.0.35 → 1.0.37

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
@@ -19495,10 +19495,12 @@ async function dataLink(data, schema) {
19495
19495
  });
19496
19496
  }
19497
19497
  // ✅ Validate path
19498
+ console.log(`🚀 ~ schema.map ~ !path.startsWith("/"):`, !path.startsWith("/"));
19499
+ console.log(`🚀 ~ schema.map ~ !path.startsWith("/"):`, path);
19500
+ if (!path.startsWith("/")) {
19501
+ throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
19502
+ }
19498
19503
  if (idsToFetch.length > 0) {
19499
- if (!path.startsWith("/")) {
19500
- throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
19501
- }
19502
19504
  // ✅ Fetch remaining from service
19503
19505
  try {
19504
19506
  const response = await callService(service, {
package/dist/index.esm.js CHANGED
@@ -19493,10 +19493,12 @@ async function dataLink(data, schema) {
19493
19493
  });
19494
19494
  }
19495
19495
  // ✅ Validate path
19496
+ console.log(`🚀 ~ schema.map ~ !path.startsWith("/"):`, !path.startsWith("/"));
19497
+ console.log(`🚀 ~ schema.map ~ !path.startsWith("/"):`, path);
19498
+ if (!path.startsWith("/")) {
19499
+ throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
19500
+ }
19496
19501
  if (idsToFetch.length > 0) {
19497
- if (!path.startsWith("/")) {
19498
- throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
19499
- }
19500
19502
  // ✅ Fetch remaining from service
19501
19503
  try {
19502
19504
  const response = await callService(service, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-consul-service",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",