@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.
@@ -255,7 +255,6 @@ var addFileToResource = async (catalogDir, id, file, version) => {
255
255
  const json = JSON.parse(fileContent);
256
256
  fileContent = JSON.stringify(json, null, 2);
257
257
  } catch (error) {
258
- console.error(error);
259
258
  }
260
259
  fsSync2.writeFileSync(join2(dirname2(pathToResource), file.fileName), fileContent);
261
260
  };
@@ -1401,7 +1400,16 @@ var index_default = (path4) => {
1401
1400
  * @param directory - The directory to dump the catalog to
1402
1401
  * @returns A JSON file with the catalog
1403
1402
  */
1404
- dumpCatalog: dumpCatalog(join12(path4))
1403
+ dumpCatalog: dumpCatalog(join12(path4)),
1404
+ /**
1405
+ * ================================
1406
+ * Resources Utils
1407
+ * ================================
1408
+ */
1409
+ /**
1410
+ * Returns the path to a given resource by id and version
1411
+ */
1412
+ getResourcePath
1405
1413
  };
1406
1414
  };
1407
1415