@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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -608,7 +608,7 @@ import chalk from "chalk";
|
|
|
608
608
|
// package.json
|
|
609
609
|
var package_default = {
|
|
610
610
|
name: "@eventcatalog/generator-openapi",
|
|
611
|
-
version: "4.0.
|
|
611
|
+
version: "4.0.6",
|
|
612
612
|
description: "OpenAPI generator for EventCatalog",
|
|
613
613
|
scripts: {
|
|
614
614
|
build: "tsup",
|
|
@@ -1516,7 +1516,8 @@ var getInstalledVersionOfPackage = (packageName) => {
|
|
|
1516
1516
|
const PROJECT_DIR = process.env.PROJECT_DIR || process.cwd();
|
|
1517
1517
|
const pkg = fs.readFileSync(path2.join(PROJECT_DIR, "package.json"), "utf8");
|
|
1518
1518
|
const json = JSON.parse(pkg);
|
|
1519
|
-
|
|
1519
|
+
const version = json.dependencies[packageName];
|
|
1520
|
+
return version?.replace(/[\^~><=]/g, "");
|
|
1520
1521
|
} catch (error) {
|
|
1521
1522
|
return null;
|
|
1522
1523
|
}
|