@eventcatalog/sdk 2.3.5 → 2.3.7

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
@@ -251,7 +251,6 @@ var addFileToResource = async (catalogDir, id, file, version) => {
251
251
  const json = JSON.parse(fileContent);
252
252
  fileContent = JSON.stringify(json, null, 2);
253
253
  } catch (error) {
254
- console.error(error);
255
254
  }
256
255
  fsSync2.writeFileSync(join2(dirname2(pathToResource), file.fileName), fileContent);
257
256
  };
@@ -1484,7 +1483,16 @@ var index_default = (path4) => {
1484
1483
  * @param directory - The directory to dump the catalog to
1485
1484
  * @returns A JSON file with the catalog
1486
1485
  */
1487
- dumpCatalog: dumpCatalog(join13(path4))
1486
+ dumpCatalog: dumpCatalog(join13(path4)),
1487
+ /**
1488
+ * ================================
1489
+ * Resources Utils
1490
+ * ================================
1491
+ */
1492
+ /**
1493
+ * Returns the path to a given resource by id and version
1494
+ */
1495
+ getResourcePath
1488
1496
  };
1489
1497
  };
1490
1498
  export {