@postman-enricher/core 1.2.9 → 1.2.11
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.
|
@@ -13,14 +13,17 @@ export function addDescriptions(collection, config) {
|
|
|
13
13
|
return collection;
|
|
14
14
|
// 1. Update collection-level info
|
|
15
15
|
if (config.collection) {
|
|
16
|
-
const collectionKey = Object.keys(config.collection).find((key) => collection.info.name.includes(key));
|
|
16
|
+
const collectionKey = Object.keys(config.collection).find((key) => collection.info.name.toLowerCase().includes(key.toLowerCase()));
|
|
17
17
|
if (collectionKey) {
|
|
18
18
|
const collectionConfig = config.collection[collectionKey];
|
|
19
19
|
if (collectionConfig.name) {
|
|
20
20
|
collection.info.name = collectionConfig.name;
|
|
21
21
|
}
|
|
22
22
|
if (collectionConfig.description) {
|
|
23
|
-
collection.info.description =
|
|
23
|
+
collection.info.description = {
|
|
24
|
+
content: collectionConfig.description,
|
|
25
|
+
type: 'text/markdown',
|
|
26
|
+
};
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postman-enricher/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
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.11"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@anolilab/semantic-release-pnpm": "^3.0.0",
|