@eventcatalog/generator-openapi 4.0.5 → 4.0.6

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
@@ -619,7 +619,7 @@ var import_chalk = __toESM(require("chalk"));
619
619
  // package.json
620
620
  var package_default = {
621
621
  name: "@eventcatalog/generator-openapi",
622
- version: "4.0.5",
622
+ version: "4.0.6",
623
623
  description: "OpenAPI generator for EventCatalog",
624
624
  scripts: {
625
625
  build: "tsup",
@@ -1527,7 +1527,8 @@ var getInstalledVersionOfPackage = (packageName) => {
1527
1527
  const PROJECT_DIR = process.env.PROJECT_DIR || process.cwd();
1528
1528
  const pkg = import_fs.default.readFileSync(import_path2.default.join(PROJECT_DIR, "package.json"), "utf8");
1529
1529
  const json = JSON.parse(pkg);
1530
- return json.dependencies[packageName];
1530
+ const version = json.dependencies[packageName];
1531
+ return version?.replace(/[\^~><=]/g, "");
1531
1532
  } catch (error) {
1532
1533
  return null;
1533
1534
  }