@rsdk/autodoc.protocol 2.4.2 → 2.6.0-next.7
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.6.0-next.7](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.6...v2.6.0-next.7) (2023-07-23)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **@rsdk/common:** add Case static class ([c8dc5b4](https://github.com/R-Vision/rsdk/commit/c8dc5b4e6306093541091c12c698263accbe55c1))
|
|
11
|
+
|
|
12
|
+
# [2.6.0-next.3](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.2...v2.6.0-next.3) (2023-07-07)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @rsdk/autodoc.protocol
|
|
15
|
+
|
|
6
16
|
## [2.4.2](https://github.com/R-Vision/rsdk/compare/v2.4.2-next.0...v2.4.2) (2023-06-16)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @rsdk/autodoc.protocol
|
|
@@ -19,7 +19,7 @@ class Composite {
|
|
|
19
19
|
: [this.items];
|
|
20
20
|
let newNestLevel = nestLevel;
|
|
21
21
|
if (this.title) {
|
|
22
|
-
content.unshift(`${'#'.repeat(nestLevel + 1)} ${
|
|
22
|
+
content.unshift(`${'#'.repeat(nestLevel + 1)} ${common_1.Case.capitalizeWord(this.title)}`);
|
|
23
23
|
newNestLevel += 1;
|
|
24
24
|
}
|
|
25
25
|
const documentItems = content.filter((item) => item && (typeof item === 'string' ? item.length > 0 : !item.isEmpty()));
|
|
@@ -24,7 +24,7 @@ class Table {
|
|
|
24
24
|
return listItem[key].replaceAll(/\|/gi, '\\|');
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
table.unshift(keys.map((key) =>
|
|
27
|
+
table.unshift(keys.map((key) => common_1.Case.capitalizeWord(key)));
|
|
28
28
|
return (0, markdown_table_1.default)(table);
|
|
29
29
|
}
|
|
30
30
|
isEmpty() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/autodoc.protocol",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0-next.7",
|
|
4
4
|
"description": "Sort of autodoc-contract",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@rsdk/common": "^2.
|
|
12
|
-
"@rsdk/metadata": "^2.
|
|
11
|
+
"@rsdk/common": "^2.6.0-next.7",
|
|
12
|
+
"@rsdk/metadata": "^2.6.0-next.7",
|
|
13
13
|
"reflect-metadata": "^0.1.13"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"markdown-table": "2.0.0"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "f1f0dcab638a726e7728ad979232c93adf1cfaf9"
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Case } from '@rsdk/common';
|
|
2
2
|
|
|
3
3
|
import type { DocumentNode } from '../types';
|
|
4
4
|
|
|
@@ -21,7 +21,9 @@ export class Composite implements DocumentNode {
|
|
|
21
21
|
|
|
22
22
|
let newNestLevel = nestLevel;
|
|
23
23
|
if (this.title) {
|
|
24
|
-
content.unshift(
|
|
24
|
+
content.unshift(
|
|
25
|
+
`${'#'.repeat(nestLevel + 1)} ${Case.capitalizeWord(this.title)}`,
|
|
26
|
+
);
|
|
25
27
|
newNestLevel += 1;
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Case } from '@rsdk/common';
|
|
2
2
|
import markdownTable from 'markdown-table';
|
|
3
3
|
|
|
4
4
|
import type { DocumentNode } from '../types';
|
|
@@ -19,7 +19,7 @@ export class Table<T extends Record<string, string>> implements DocumentNode {
|
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
table.unshift(keys.map((key) =>
|
|
22
|
+
table.unshift(keys.map((key) => Case.capitalizeWord(key)));
|
|
23
23
|
|
|
24
24
|
return markdownTable(table);
|
|
25
25
|
}
|