node-consul-service 1.0.36 → 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
@@ -19497,10 +19497,10 @@ async function dataLink(data, schema) {
19497
19497
  // ✅ Validate path
19498
19498
  console.log(`🚀 ~ schema.map ~ !path.startsWith("/"):`, !path.startsWith("/"));
19499
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
+ }
19500
19503
  if (idsToFetch.length > 0) {
19501
- if (!path.startsWith("/")) {
19502
- throw new DataLinkError(service, path, new Error(`Invalid path: "${path}". Path must start with "/"`));
19503
- }
19504
19504
  // ✅ Fetch remaining from service
19505
19505
  try {
19506
19506
  const response = await callService(service, {
package/dist/index.esm.js CHANGED
@@ -19495,10 +19495,10 @@ async function dataLink(data, schema) {
19495
19495
  // ✅ Validate path
19496
19496
  console.log(`🚀 ~ schema.map ~ !path.startsWith("/"):`, !path.startsWith("/"));
19497
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
+ }
19498
19501
  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
19502
  // ✅ Fetch remaining from service
19503
19503
  try {
19504
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.36",
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",