@eventcatalog/generator-openapi 7.4.2 → 7.4.3
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 +30 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -25
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2833,7 +2833,7 @@ var import_node_path = require("path");
|
|
|
2833
2833
|
// package.json
|
|
2834
2834
|
var package_default = {
|
|
2835
2835
|
name: "@eventcatalog/generator-openapi",
|
|
2836
|
-
version: "7.4.
|
|
2836
|
+
version: "7.4.3",
|
|
2837
2837
|
description: "OpenAPI generator for EventCatalog",
|
|
2838
2838
|
scripts: {
|
|
2839
2839
|
build: "tsup",
|
|
@@ -2897,31 +2897,34 @@ var getInstalledVersionOfPackage = (packageName) => {
|
|
|
2897
2897
|
async function checkForPackageUpdate(packageName) {
|
|
2898
2898
|
const installedVersion = getInstalledVersionOfPackage(packageName);
|
|
2899
2899
|
if (!installedVersion || installedVersion === "latest") return;
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2900
|
+
try {
|
|
2901
|
+
const pkg = { name: packageName, version: installedVersion };
|
|
2902
|
+
const updateNotifierModule = await import("update-notifier");
|
|
2903
|
+
const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
|
|
2904
|
+
const info = await notifier.fetchInfo();
|
|
2905
|
+
if (info?.type !== "latest") {
|
|
2906
|
+
const message2 = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
|
|
2906
2907
|
Run npm i ${packageName} to update`;
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2908
|
+
console.log(
|
|
2909
|
+
boxen(message2, {
|
|
2910
|
+
padding: 1,
|
|
2911
|
+
margin: 1,
|
|
2912
|
+
align: "center",
|
|
2913
|
+
borderColor: "yellow",
|
|
2914
|
+
borderStyle: {
|
|
2915
|
+
topLeft: " ",
|
|
2916
|
+
topRight: " ",
|
|
2917
|
+
bottomLeft: " ",
|
|
2918
|
+
bottomRight: " ",
|
|
2919
|
+
right: " ",
|
|
2920
|
+
top: "-",
|
|
2921
|
+
bottom: "-",
|
|
2922
|
+
left: " "
|
|
2923
|
+
}
|
|
2924
|
+
})
|
|
2925
|
+
);
|
|
2926
|
+
}
|
|
2927
|
+
} catch (error) {
|
|
2925
2928
|
}
|
|
2926
2929
|
}
|
|
2927
2930
|
|
|
@@ -3066,6 +3069,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
3066
3069
|
await writeService(
|
|
3067
3070
|
{
|
|
3068
3071
|
...service,
|
|
3072
|
+
name: serviceSpec.name || service.name,
|
|
3073
|
+
summary: serviceSpec.summary || service.summary,
|
|
3069
3074
|
badges: serviceBadges || service.badges,
|
|
3070
3075
|
markdown: serviceMarkdown,
|
|
3071
3076
|
specifications: serviceSpecifications,
|