@cparra/apexdocs 2.8.1 → 2.8.2

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Cesar Parra
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Cesar Parra
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,11 +1,11 @@
1
- # SampleClassWithoutModifier
2
-
3
- `ISTEST`
4
- ## Methods
5
- ### `static thisIsAClassWithoutAModifier()`
6
-
7
- `ISTEST`
8
-
9
- This is a test method
10
-
11
- ---
1
+ # SampleClassWithoutModifier
2
+
3
+ `ISTEST`
4
+ ## Methods
5
+ ### `static thisIsAClassWithoutAModifier()`
6
+
7
+ `ISTEST`
8
+
9
+ This is a test method
10
+
11
+ ---
@@ -1,10 +1,10 @@
1
- # GroupedClass
2
-
3
- Uses a block style apex doc
4
-
5
-
6
- **Group** Main
7
-
8
-
9
- **Test Class** [SampleClass](/Main/SampleClass.md)
10
-
1
+ # GroupedClass
2
+
3
+ Uses a block style apex doc
4
+
5
+
6
+ **Group** Main
7
+
8
+
9
+ **Test Class** [SampleClass](/Main/SampleClass.md)
10
+
@@ -1 +1 @@
1
- # AnotherInterface
1
+ # AnotherInterface
@@ -1,78 +1,78 @@
1
- # ChildClass
2
-
3
- **Inheritance**
4
-
5
- [GrandparentClass](/Misc-Group/GrandparentClass.md)
6
- >
7
- [ParentClass](/Misc-Group/ParentClass.md)
8
- >
9
- ChildClass
10
-
11
-
12
- **Implemented types**
13
-
14
- [SampleInterface](/Sample-Interfaces/SampleInterface.md)
15
-
16
- ## Fields
17
-
18
- ### `protectedGrandParentField` → `String`
19
-
20
- *Inherited*
21
-
22
- ### `protectedString` → `String`
23
-
24
- *Inherited*
25
-
26
- This is a protected string, use carefully.
27
-
28
- ### `publicString` → `String`
29
-
30
- *Inherited*
31
-
32
- ---
33
- ## Properties
34
-
35
- ### `AProp` → `String`
36
-
37
- *Inherited*
38
-
39
- ---
40
- ## Methods
41
- ### `doSomething()`
42
- ### `override overridableMethodOverridden()`
43
-
44
- This method was overridden.
45
-
46
- #### Return
47
-
48
- **Type**
49
-
50
- String
51
-
52
- **Description**
53
-
54
- A String.
55
-
56
- ### `execute()`
57
-
58
- Executes the command.
59
-
60
- ### `getValue()`
61
-
62
- Returns a value based on the executed command.
63
-
64
- #### Return
65
-
66
- **Type**
67
-
68
- String
69
-
70
- **Description**
71
-
72
- The value
73
-
74
- ### `overridableMethod()`
75
-
76
- *Inherited*
77
-
78
- ---
1
+ # ChildClass
2
+
3
+ **Inheritance**
4
+
5
+ [GrandparentClass](/Misc-Group/GrandparentClass.md)
6
+ >
7
+ [ParentClass](/Misc-Group/ParentClass.md)
8
+ >
9
+ ChildClass
10
+
11
+
12
+ **Implemented types**
13
+
14
+ [SampleInterface](/Sample-Interfaces/SampleInterface.md)
15
+
16
+ ## Fields
17
+
18
+ ### `protectedGrandParentField` → `String`
19
+
20
+ *Inherited*
21
+
22
+ ### `protectedString` → `String`
23
+
24
+ *Inherited*
25
+
26
+ This is a protected string, use carefully.
27
+
28
+ ### `publicString` → `String`
29
+
30
+ *Inherited*
31
+
32
+ ---
33
+ ## Properties
34
+
35
+ ### `AProp` → `String`
36
+
37
+ *Inherited*
38
+
39
+ ---
40
+ ## Methods
41
+ ### `doSomething()`
42
+ ### `override overridableMethodOverridden()`
43
+
44
+ This method was overridden.
45
+
46
+ #### Return
47
+
48
+ **Type**
49
+
50
+ String
51
+
52
+ **Description**
53
+
54
+ A String.
55
+
56
+ ### `execute()`
57
+
58
+ Executes the command.
59
+
60
+ ### `getValue()`
61
+
62
+ Returns a value based on the executed command.
63
+
64
+ #### Return
65
+
66
+ **Type**
67
+
68
+ String
69
+
70
+ **Description**
71
+
72
+ The value
73
+
74
+ ### `overridableMethod()`
75
+
76
+ *Inherited*
77
+
78
+ ---
@@ -1,13 +1,13 @@
1
- # GrandparentClass
2
- ## Fields
3
-
4
- ### `protectedGrandParentField` → `String`
5
-
6
-
7
- ---
8
- ## Properties
9
-
10
- ### `AProp` → `String`
11
-
12
-
13
- ---
1
+ # GrandparentClass
2
+ ## Fields
3
+
4
+ ### `protectedGrandParentField` → `String`
5
+
6
+
7
+ ---
8
+ ## Properties
9
+
10
+ ### `AProp` → `String`
11
+
12
+
13
+ ---
@@ -1,33 +1,33 @@
1
- # InterfaceWithInheritance
2
-
3
- **Extended types**
4
-
5
- [SampleInterface](/Sample-Interfaces/SampleInterface.md)
6
- ,
7
- [AnotherInterface](/Misc-Group/AnotherInterface.md)
8
- ## Methods
9
- ### `execute()`
10
-
11
- *Inherited*
12
-
13
-
14
- Executes the command.
15
-
16
- ### `getValue()`
17
-
18
- *Inherited*
19
-
20
-
21
- Returns a value based on the executed command.
22
-
23
- #### Return
24
-
25
- **Type**
26
-
27
- String
28
-
29
- **Description**
30
-
31
- The value
32
-
33
- ---
1
+ # InterfaceWithInheritance
2
+
3
+ **Extended types**
4
+
5
+ [SampleInterface](/Sample-Interfaces/SampleInterface.md)
6
+ ,
7
+ [AnotherInterface](/Misc-Group/AnotherInterface.md)
8
+ ## Methods
9
+ ### `execute()`
10
+
11
+ *Inherited*
12
+
13
+
14
+ Executes the command.
15
+
16
+ ### `getValue()`
17
+
18
+ *Inherited*
19
+
20
+
21
+ Returns a value based on the executed command.
22
+
23
+ #### Return
24
+
25
+ **Type**
26
+
27
+ String
28
+
29
+ **Description**
30
+
31
+ The value
32
+
33
+ ---
@@ -1,37 +1,37 @@
1
- # ParentClass
2
-
3
- **Inheritance**
4
-
5
- [GrandparentClass](/Misc-Group/GrandparentClass.md)
6
- >
7
- ParentClass
8
-
9
- ## Fields
10
-
11
- ### `privateString` → `String`
12
-
13
-
14
- ### `protectedGrandParentField` → `String`
15
-
16
- *Inherited*
17
-
18
- ### `protectedString` → `String`
19
-
20
-
21
- This is a protected string, use carefully.
22
-
23
- ### `publicString` → `String`
24
-
25
-
26
- ---
27
- ## Properties
28
-
29
- ### `AProp` → `String`
30
-
31
- *Inherited*
32
-
33
- ---
34
- ## Methods
35
- ### `overridableMethod()`
36
- ### `overridableMethodOverridden()`
37
- ---
1
+ # ParentClass
2
+
3
+ **Inheritance**
4
+
5
+ [GrandparentClass](/Misc-Group/GrandparentClass.md)
6
+ >
7
+ ParentClass
8
+
9
+ ## Fields
10
+
11
+ ### `privateString` → `String`
12
+
13
+
14
+ ### `protectedGrandParentField` → `String`
15
+
16
+ *Inherited*
17
+
18
+ ### `protectedString` → `String`
19
+
20
+
21
+ This is a protected string, use carefully.
22
+
23
+ ### `publicString` → `String`
24
+
25
+
26
+ ---
27
+ ## Properties
28
+
29
+ ### `AProp` → `String`
30
+
31
+ *Inherited*
32
+
33
+ ---
34
+ ## Methods
35
+ ### `overridableMethod()`
36
+ ### `overridableMethodOverridden()`
37
+ ---
@@ -1,11 +1,11 @@
1
- # SampleClassWithoutModifier
2
-
3
- `ISTEST`
4
- ## Methods
5
- ### `static thisIsAClassWithoutAModifier()`
6
-
7
- `ISTEST`
8
-
9
- This is a test method
10
-
11
- ---
1
+ # SampleClassWithoutModifier
2
+
3
+ `ISTEST`
4
+ ## Methods
5
+ ### `static thisIsAClassWithoutAModifier()`
6
+
7
+ `ISTEST`
8
+
9
+ This is a test method
10
+
11
+ ---
package/docs/README.md CHANGED
@@ -1,42 +1,42 @@
1
- # Classes
2
- ## Misc Group
3
-
4
- ### [AnotherInterface](/Misc-Group/AnotherInterface.md)
5
-
6
-
7
- ### [ChildClass](/Misc-Group/ChildClass.md)
8
-
9
-
10
- ### [GrandparentClass](/Misc-Group/GrandparentClass.md)
11
-
12
-
13
- ### [InterfaceWithInheritance](/Misc-Group/InterfaceWithInheritance.md)
14
-
15
-
16
- ### [ParentClass](/Misc-Group/ParentClass.md)
17
-
18
-
19
- ### [SampleClassWithoutModifier](/Misc-Group/SampleClassWithoutModifier.md)
20
-
21
- ## Main
22
-
23
- ### [GroupedClass](/Main/GroupedClass.md)
24
-
25
- Uses a block style apex doc
26
-
27
-
28
-
29
- ### [SampleClass](/Main/SampleClass.md)
30
-
31
- This is a class description. This class relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md)
32
- But this [ClassThatDoesNotExist](ClassThatDoesNotExist) does not exist.
33
- You can also link using this syntax [SampleInterface](/Sample-Interfaces/SampleInterface.md)
34
-
35
-
36
- ## Sample Interfaces
37
-
38
- ### [SampleInterface](/Sample-Interfaces/SampleInterface.md)
39
-
40
- This is an interface description.
41
-
42
-
1
+ # Classes
2
+ ## Misc Group
3
+
4
+ ### [AnotherInterface](/Misc-Group/AnotherInterface.md)
5
+
6
+
7
+ ### [ChildClass](/Misc-Group/ChildClass.md)
8
+
9
+
10
+ ### [GrandparentClass](/Misc-Group/GrandparentClass.md)
11
+
12
+
13
+ ### [InterfaceWithInheritance](/Misc-Group/InterfaceWithInheritance.md)
14
+
15
+
16
+ ### [ParentClass](/Misc-Group/ParentClass.md)
17
+
18
+
19
+ ### [SampleClassWithoutModifier](/Misc-Group/SampleClassWithoutModifier.md)
20
+
21
+ ## Main
22
+
23
+ ### [GroupedClass](/Main/GroupedClass.md)
24
+
25
+ Uses a block style apex doc
26
+
27
+
28
+
29
+ ### [SampleClass](/Main/SampleClass.md)
30
+
31
+ This is a class description. This class relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md)
32
+ But this [ClassThatDoesNotExist](ClassThatDoesNotExist) does not exist.
33
+ You can also link using this syntax [SampleInterface](/Sample-Interfaces/SampleInterface.md)
34
+
35
+
36
+ ## Sample Interfaces
37
+
38
+ ### [SampleInterface](/Sample-Interfaces/SampleInterface.md)
39
+
40
+ This is an interface description.
41
+
42
+
@@ -1,27 +1,27 @@
1
- # SampleInterface
2
-
3
- This is an interface description.
4
-
5
-
6
- **Group** Sample Interfaces
7
-
8
- ## Methods
9
- ### `execute()`
10
-
11
- Executes the command.
12
-
13
- ### `getValue()`
14
-
15
- Returns a value based on the executed command.
16
-
17
- #### Return
18
-
19
- **Type**
20
-
21
- String
22
-
23
- **Description**
24
-
25
- The value
26
-
27
- ---
1
+ # SampleInterface
2
+
3
+ This is an interface description.
4
+
5
+
6
+ **Group** Sample Interfaces
7
+
8
+ ## Methods
9
+ ### `execute()`
10
+
11
+ Executes the command.
12
+
13
+ ### `getValue()`
14
+
15
+ Returns a value based on the executed command.
16
+
17
+ #### Return
18
+
19
+ **Type**
20
+
21
+ String
22
+
23
+ **Description**
24
+
25
+ The value
26
+
27
+ ---
package/docs/index.html CHANGED
@@ -1,22 +1,22 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Document</title>
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
- <meta name="description" content="Description">
8
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
9
- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
10
- </head>
11
- <body>
12
- <div id="app"></div>
13
- <script>
14
- window.$docsify = {
15
- name: '',
16
- repo: ''
17
- }
18
- </script>
19
- <!-- Docsify v4 -->
20
- <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
21
- </body>
22
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Document</title>
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
+ <meta name="description" content="Description">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
9
+ <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+ <script>
14
+ window.$docsify = {
15
+ name: '',
16
+ repo: ''
17
+ }
18
+ </script>
19
+ <!-- Docsify v4 -->
20
+ <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
21
+ </body>
22
+ </html>
package/jest.config.js CHANGED
@@ -1,5 +1,5 @@
1
- module.exports = {
2
- preset: 'ts-jest',
3
- testEnvironment: 'node',
4
- modulePathIgnorePatterns: ['<rootDir>/lib/'],
5
- };
1
+ module.exports = {
2
+ preset: 'ts-jest',
3
+ testEnvironment: 'node',
4
+ modulePathIgnorePatterns: ['<rootDir>/lib/'],
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cparra/apexdocs",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "description": "Library with CLI capabilities to generate documentation for Salesforce Apex classes.",
5
5
  "keywords": [
6
6
  "apex",
@@ -64,7 +64,7 @@
64
64
  ]
65
65
  },
66
66
  "dependencies": {
67
- "@cparra/apex-reflection": "1.10.2",
67
+ "@cparra/apex-reflection": "1.11.0",
68
68
  "chalk": "^4.1.2",
69
69
  "fast-xml-parser": "^4.0.1",
70
70
  "log-update": "4.0.0",
@@ -6,12 +6,12 @@ describe('File Reader', () => {
6
6
  Settings.build({
7
7
  sourceDirectory: '',
8
8
  recursive: true,
9
- configPath: '',
10
- targetGenerator: 'jekyll',
11
- group: true,
12
- outputDir: '',
13
9
  scope: [],
10
+ outputDir: '',
11
+ targetGenerator: 'jekyll',
14
12
  indexOnly: false,
13
+ defaultGroupName: 'Misc',
14
+ sanitizeHtml: true,
15
15
  } as SettingsConfig);
16
16
  });
17
17
 
@@ -1,6 +1,7 @@
1
1
  import { createManifest } from '../manifest-factory';
2
2
  import { Type } from '@cparra/apex-reflection';
3
3
  import { TypeParser } from '../parser';
4
+ import ApexBundle from '../../model/apex-bundle';
4
5
 
5
6
  class TestParser implements TypeParser {
6
7
  parse(): Type[] {
@@ -9,7 +10,7 @@ class TestParser implements TypeParser {
9
10
  }
10
11
 
11
12
  it('creates a manifest from the result of a type parser', () => {
12
- const manifest = createManifest(new TestParser(), (typeBody: string) => {
13
+ const manifest = createManifest(new TestParser(), (bundle: ApexBundle) => {
13
14
  return {};
14
15
  });
15
16
  expect(manifest.types.length).toBe(0);