@eventcatalog/sdk 2.5.2 → 2.5.4

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.mjs CHANGED
@@ -400,7 +400,7 @@ import { join as join6, dirname as dirname4, extname } from "path";
400
400
  var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
401
401
  var getServices = (directory) => async (options) => getResources(directory, {
402
402
  type: "services",
403
- ignore: ["**/events/**", "**/commands/**", "**/queries/**", "**/entities/**"],
403
+ ignore: ["**/events/**", "**/commands/**", "**/queries/**", "**/entities/**", "**/subdomains/**/entities/**"],
404
404
  ...options
405
405
  });
406
406
  var writeService = (directory) => async (service, options = {
@@ -773,7 +773,7 @@ var getEventCatalogVersion = async (catalogDir) => {
773
773
  return "unknown";
774
774
  }
775
775
  };
776
- var hydrateResource = async (catalogDir, resources, { attachSchema = false } = {}) => {
776
+ var hydrateResource = async (catalogDir, resources = [], { attachSchema = false } = {}) => {
777
777
  return await Promise.all(
778
778
  resources.map(async (resource) => {
779
779
  const resourcePath = await getResourcePath(catalogDir, resource.id, resource.version);