@eventcatalog/sdk 1.4.4 → 1.4.5

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.js CHANGED
@@ -179,7 +179,7 @@ var writeResource = async (catalogDir, resource, options = {
179
179
  }
180
180
  const document = import_gray_matter2.default.stringify(markdown.trim(), frontmatter);
181
181
  await import_promises2.default.mkdir((0, import_path.join)(catalogDir, path), { recursive: true });
182
- await import_promises2.default.writeFile((0, import_path.join)(catalogDir, path, "index.md"), document);
182
+ return await import_promises2.default.writeFile((0, import_path.join)(catalogDir, path, "index.md"), document);
183
183
  };
184
184
  var getResource = async (catalogDir, id, version, options) => {
185
185
  const file = await findFileById(catalogDir, id, version);
@@ -333,7 +333,7 @@ var writeService = (directory) => async (service, options = { path: "" }) => {
333
333
  if (Array.isArray(service.receives)) {
334
334
  resource.receives = uniqueVersions(service.receives);
335
335
  }
336
- return writeResource(directory, resource, { ...options, type: "service" });
336
+ return await writeResource(directory, resource, { ...options, type: "service" });
337
337
  };
338
338
  var writeVersionedService = (directory) => async (service) => {
339
339
  const resource = { ...service };
@@ -424,7 +424,7 @@ var writeDomain = (directory) => async (domain, options = { path: "" }) => {
424
424
  if (Array.isArray(domain.services)) {
425
425
  resource.services = uniqueVersions(domain.services);
426
426
  }
427
- return writeResource(directory, resource, { ...options, type: "domain" });
427
+ return await writeResource(directory, resource, { ...options, type: "domain" });
428
428
  };
429
429
  var versionDomain = (directory) => async (id) => versionResource(directory, id);
430
430
  var rmDomain = (directory) => async (path) => {