@postman-enricher/core 1.2.11 → 1.2.12
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.
|
@@ -32,17 +32,24 @@ export function addDescriptions(collection, config) {
|
|
|
32
32
|
walkCollection(collection.item, (item) => {
|
|
33
33
|
if (isFolder(item)) {
|
|
34
34
|
const folderKey = item.name?.toLowerCase();
|
|
35
|
+
let descriptionText;
|
|
35
36
|
// Try exact match first
|
|
36
37
|
if (config.folders && config.folders[folderKey]) {
|
|
37
|
-
|
|
38
|
+
descriptionText = config.folders[folderKey];
|
|
38
39
|
}
|
|
39
40
|
// Try without special characters
|
|
40
41
|
else {
|
|
41
42
|
const cleanKey = folderKey?.replace(/[{}:]/g, '');
|
|
42
43
|
if (config.folders && cleanKey && config.folders[cleanKey]) {
|
|
43
|
-
|
|
44
|
+
descriptionText = config.folders[cleanKey];
|
|
44
45
|
}
|
|
45
46
|
}
|
|
47
|
+
if (descriptionText) {
|
|
48
|
+
item.description = {
|
|
49
|
+
content: descriptionText,
|
|
50
|
+
type: 'text/markdown',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
46
53
|
}
|
|
47
54
|
});
|
|
48
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postman-enricher/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "Core enrichment logic for Postman Enricher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"openapi-to-postmanv2": "^5.5.0",
|
|
19
19
|
"yaml": "^2.8.1",
|
|
20
|
-
"@postman-enricher/shared": "^1.2.
|
|
20
|
+
"@postman-enricher/shared": "^1.2.12"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@anolilab/semantic-release-pnpm": "^3.0.0",
|