node-consul-service 1.0.35 → 1.0.36

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,6 +19495,8 @@ 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);
19498
19500
  if (idsToFetch.length > 0) {
19499
19501
  if (!path.startsWith("/")) {
19500
19502
  throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
package/dist/index.esm.js CHANGED
@@ -19493,6 +19493,8 @@ 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);
19496
19498
  if (idsToFetch.length > 0) {
19497
19499
  if (!path.startsWith("/")) {
19498
19500
  throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
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.36",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",