Check to see if the catalog has a version for the given data store (e.g. database, cache, etc.).
@example
import utils from'@eventcatalog/utils'; const{ dataStoreHasVersion }=utils('/path/to/eventcatalog'); // returns true if version is found for the given data store and version (supports semver) awaitdataStoreHasVersion('orders-db','0.0.1'); awaitdataStoreHasVersion('orders-db','latest'); awaitdataStoreHasVersion('orders-db','0.0.x');
Check to see if the catalog has a version for the given data store (e.g. database, cache, etc.).