apacuana-sdk-core 0.6.2 → 0.7.0
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/README.md +105 -288
- package/coverage/clover.xml +142 -136
- package/coverage/coverage-final.json +5 -5
- package/coverage/lcov-report/index.html +34 -34
- package/coverage/lcov-report/src/api/certs.js.html +34 -7
- package/coverage/lcov-report/src/api/index.html +19 -19
- package/coverage/lcov-report/src/api/revocations.js.html +135 -30
- package/coverage/lcov-report/src/api/signatures.js.html +76 -4
- package/coverage/lcov-report/src/api/users.js.html +1 -1
- package/coverage/lcov-report/src/config/index.html +13 -13
- package/coverage/lcov-report/src/config/index.js.html +69 -18
- package/coverage/lcov-report/src/errors/index.html +1 -1
- package/coverage/lcov-report/src/errors/index.js.html +1 -1
- package/coverage/lcov-report/src/index.html +15 -15
- package/coverage/lcov-report/src/index.js.html +14 -68
- package/coverage/lcov-report/src/utils/constant.js.html +1 -1
- package/coverage/lcov-report/src/utils/helpers.js.html +1 -1
- package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov.info +224 -216
- package/dist/api/certs.d.ts +11 -1
- package/dist/api/revocations.d.ts +32 -12
- package/dist/api/signatures.d.ts +37 -5
- package/dist/config/index.d.ts +13 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +160 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +160 -75
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/certs.js +12 -3
- package/src/api/revocations.js +55 -20
- package/src/api/signatures.js +25 -1
- package/src/config/index.js +25 -8
- package/src/index.js +4 -22
package/coverage/clover.xml
CHANGED
|
@@ -1,157 +1,160 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1756473625570" clover="3.2.0">
|
|
3
|
+
<project timestamp="1756473625570" name="All files">
|
|
4
|
+
<metrics statements="283" coveredstatements="116" conditionals="227" coveredconditionals="37" methods="41" coveredmethods="13" elements="551" coveredelements="166" complexity="0" loc="283" ncloc="283" packages="5" files="10" classes="10"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
|
|
7
7
|
<file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/index.js">
|
|
8
|
-
<metrics statements="
|
|
8
|
+
<metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
|
|
9
9
|
<line num="8" count="1" type="stmt"/>
|
|
10
|
+
<line num="22" count="4" type="stmt"/>
|
|
10
11
|
<line num="23" count="4" type="stmt"/>
|
|
11
|
-
<line num="
|
|
12
|
-
<line num="
|
|
12
|
+
<line num="24" count="3" type="stmt"/>
|
|
13
|
+
<line num="25" count="3" type="stmt"/>
|
|
14
|
+
<line num="26" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
15
|
+
<line num="27" count="0" type="stmt"/>
|
|
13
16
|
<line num="32" count="3" type="stmt"/>
|
|
14
|
-
<line num="
|
|
15
|
-
<line num="
|
|
16
|
-
<line num="
|
|
17
|
-
<line num="
|
|
18
|
-
<line num="
|
|
19
|
-
<line num="
|
|
20
|
-
<line num="51" count="2" type="stmt"/>
|
|
21
|
-
<line num="55" count="2" type="stmt"/>
|
|
22
|
-
<line num="58" count="2" type="stmt"/>
|
|
23
|
-
<line num="59" count="2" type="stmt"/>
|
|
17
|
+
<line num="33" count="2" type="stmt"/>
|
|
18
|
+
<line num="34" count="2" type="stmt"/>
|
|
19
|
+
<line num="35" count="2" type="stmt"/>
|
|
20
|
+
<line num="38" count="2" type="stmt"/>
|
|
21
|
+
<line num="39" count="2" type="stmt"/>
|
|
22
|
+
<line num="42" count="0" type="stmt"/>
|
|
24
23
|
</file>
|
|
25
24
|
</package>
|
|
26
25
|
<package name="src.api">
|
|
27
|
-
<metrics statements="
|
|
26
|
+
<metrics statements="136" coveredstatements="77" conditionals="68" coveredconditionals="33" methods="20" coveredmethods="11"/>
|
|
28
27
|
<file name="certs.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/certs.js">
|
|
29
|
-
<metrics statements="24" coveredstatements="20" conditionals="
|
|
30
|
-
<line num="
|
|
31
|
-
<line num="
|
|
32
|
-
<line num="
|
|
33
|
-
<line num="26" count="1" type="stmt"/>
|
|
34
|
-
<line num="27" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
35
|
-
<line num="28" count="0" type="stmt"/>
|
|
28
|
+
<metrics statements="24" coveredstatements="20" conditionals="11" coveredconditionals="7" methods="4" coveredmethods="4"/>
|
|
29
|
+
<line num="28" count="2" type="stmt"/>
|
|
30
|
+
<line num="29" count="1" type="stmt"/>
|
|
31
|
+
<line num="30" count="1" type="stmt"/>
|
|
36
32
|
<line num="35" count="1" type="stmt"/>
|
|
37
|
-
<line num="
|
|
38
|
-
<line num="
|
|
39
|
-
<line num="
|
|
40
|
-
<line num="
|
|
41
|
-
<line num="
|
|
42
|
-
<line num="
|
|
43
|
-
<line num="
|
|
44
|
-
<line num="
|
|
45
|
-
<line num="
|
|
46
|
-
<line num="
|
|
47
|
-
<line num="
|
|
48
|
-
<line num="
|
|
49
|
-
<line num="
|
|
50
|
-
<line num="
|
|
51
|
-
<line num="
|
|
52
|
-
<line num="
|
|
53
|
-
<line num="
|
|
33
|
+
<line num="36" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
34
|
+
<line num="37" count="0" type="stmt"/>
|
|
35
|
+
<line num="44" count="1" type="stmt"/>
|
|
36
|
+
<line num="47" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
37
|
+
<line num="48" count="0" type="stmt"/>
|
|
38
|
+
<line num="50" count="0" type="stmt"/>
|
|
39
|
+
<line num="54" count="2" type="stmt"/>
|
|
40
|
+
<line num="55" count="1" type="stmt"/>
|
|
41
|
+
<line num="69" count="2" type="stmt"/>
|
|
42
|
+
<line num="70" count="3" type="stmt"/>
|
|
43
|
+
<line num="71" count="3" type="stmt"/>
|
|
44
|
+
<line num="72" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
45
|
+
<line num="73" count="1" type="stmt"/>
|
|
46
|
+
<line num="75" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
47
|
+
<line num="76" count="1" type="stmt"/>
|
|
48
|
+
<line num="79" count="1" type="stmt"/>
|
|
49
|
+
<line num="91" count="2" type="cond" truecount="0" falsecount="1"/>
|
|
50
|
+
<line num="92" count="1" type="stmt"/>
|
|
51
|
+
<line num="93" count="1" type="stmt"/>
|
|
52
|
+
<line num="97" count="1" type="stmt"/>
|
|
54
53
|
</file>
|
|
55
54
|
<file name="revocations.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/revocations.js">
|
|
56
|
-
<metrics statements="
|
|
57
|
-
<line num="
|
|
58
|
-
<line num="
|
|
59
|
-
<line num="
|
|
60
|
-
<line num="21" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
61
|
-
<line num="22" count="0" type="stmt"/>
|
|
62
|
-
<line num="27" count="0" type="stmt"/>
|
|
63
|
-
<line num="28" count="0" type="stmt"/>
|
|
64
|
-
<line num="33" count="0" type="stmt"/>
|
|
65
|
-
<line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
66
|
-
<line num="35" count="0" type="stmt"/>
|
|
67
|
-
<line num="39" count="0" type="stmt"/>
|
|
55
|
+
<metrics statements="16" coveredstatements="2" conditionals="6" coveredconditionals="0" methods="2" coveredmethods="0"/>
|
|
56
|
+
<line num="39" count="1" type="stmt"/>
|
|
57
|
+
<line num="40" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
58
|
+
<line num="41" count="0" type="stmt"/>
|
|
68
59
|
<line num="44" count="0" type="stmt"/>
|
|
60
|
+
<line num="45" count="0" type="stmt"/>
|
|
61
|
+
<line num="51" count="0" type="stmt"/>
|
|
62
|
+
<line num="53" count="0" type="stmt"/>
|
|
63
|
+
<line num="62" count="1" type="stmt"/>
|
|
64
|
+
<line num="63" count="0" type="stmt"/>
|
|
65
|
+
<line num="64" count="0" type="stmt"/>
|
|
66
|
+
<line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
67
|
+
<line num="71" count="0" type="stmt"/>
|
|
68
|
+
<line num="74" count="0" type="stmt"/>
|
|
69
|
+
<line num="76" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
70
|
+
<line num="77" count="0" type="stmt"/>
|
|
71
|
+
<line num="79" count="0" type="stmt"/>
|
|
69
72
|
</file>
|
|
70
73
|
<file name="signatures.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/signatures.js">
|
|
71
74
|
<metrics statements="83" coveredstatements="42" conditionals="39" coveredconditionals="15" methods="13" coveredmethods="6"/>
|
|
72
|
-
<line num="
|
|
75
|
+
<line num="76" count="2" type="stmt"/>
|
|
76
|
+
<line num="77" count="0" type="stmt"/>
|
|
73
77
|
<line num="78" count="0" type="stmt"/>
|
|
74
78
|
<line num="79" count="0" type="stmt"/>
|
|
75
79
|
<line num="80" count="0" type="stmt"/>
|
|
76
|
-
<line num="
|
|
77
|
-
<line num="
|
|
78
|
-
<line num="
|
|
79
|
-
<line num="
|
|
80
|
-
<line num="101" count="0" type="
|
|
81
|
-
<line num="
|
|
82
|
-
<line num="
|
|
83
|
-
<line num="110" count="
|
|
84
|
-
<line num="
|
|
85
|
-
<line num="118" count="
|
|
80
|
+
<line num="82" count="0" type="stmt"/>
|
|
81
|
+
<line num="93" count="0" type="stmt"/>
|
|
82
|
+
<line num="98" count="0" type="stmt"/>
|
|
83
|
+
<line num="100" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
84
|
+
<line num="101" count="0" type="stmt"/>
|
|
85
|
+
<line num="103" count="0" type="stmt"/>
|
|
86
|
+
<line num="109" count="2" type="stmt"/>
|
|
87
|
+
<line num="110" count="0" type="stmt"/>
|
|
88
|
+
<line num="117" count="2" type="stmt"/>
|
|
89
|
+
<line num="118" count="0" type="stmt"/>
|
|
86
90
|
<line num="119" count="0" type="stmt"/>
|
|
87
|
-
<line num="
|
|
91
|
+
<line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
88
92
|
<line num="127" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
89
|
-
<line num="128" count="0" type="
|
|
90
|
-
<line num="
|
|
91
|
-
<line num="
|
|
92
|
-
<line num="138" count="0" type="
|
|
93
|
-
<line num="
|
|
94
|
-
<line num="
|
|
95
|
-
<line num="147" count="
|
|
96
|
-
<line num="
|
|
97
|
-
<line num="155" count="
|
|
93
|
+
<line num="128" count="0" type="stmt"/>
|
|
94
|
+
<line num="135" count="0" type="stmt"/>
|
|
95
|
+
<line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
96
|
+
<line num="138" count="0" type="stmt"/>
|
|
97
|
+
<line num="140" count="0" type="stmt"/>
|
|
98
|
+
<line num="146" count="2" type="stmt"/>
|
|
99
|
+
<line num="147" count="0" type="stmt"/>
|
|
100
|
+
<line num="154" count="2" type="stmt"/>
|
|
101
|
+
<line num="155" count="1" type="stmt"/>
|
|
98
102
|
<line num="156" count="1" type="stmt"/>
|
|
99
103
|
<line num="157" count="1" type="stmt"/>
|
|
100
104
|
<line num="158" count="1" type="stmt"/>
|
|
101
|
-
<line num="
|
|
102
|
-
<line num="161" count="0" type="
|
|
103
|
-
<line num="
|
|
104
|
-
<line num="
|
|
105
|
-
<line num="168" count="
|
|
106
|
-
<line num="
|
|
107
|
-
<line num="176" count="
|
|
108
|
-
<line num="
|
|
105
|
+
<line num="160" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
106
|
+
<line num="161" count="0" type="stmt"/>
|
|
107
|
+
<line num="163" count="0" type="stmt"/>
|
|
108
|
+
<line num="167" count="2" type="stmt"/>
|
|
109
|
+
<line num="168" count="1" type="stmt"/>
|
|
110
|
+
<line num="175" count="2" type="stmt"/>
|
|
111
|
+
<line num="176" count="1" type="stmt"/>
|
|
112
|
+
<line num="183" count="2" type="stmt"/>
|
|
109
113
|
<line num="184" count="2" type="stmt"/>
|
|
110
|
-
<line num="185" count="2" type="
|
|
111
|
-
<line num="186" count="
|
|
112
|
-
<line num="
|
|
114
|
+
<line num="185" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
115
|
+
<line num="186" count="1" type="stmt"/>
|
|
116
|
+
<line num="193" count="1" type="stmt"/>
|
|
113
117
|
<line num="194" count="1" type="stmt"/>
|
|
114
|
-
<line num="
|
|
115
|
-
<line num="201" count="1" type="
|
|
116
|
-
<line num="
|
|
118
|
+
<line num="200" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
119
|
+
<line num="201" count="1" type="stmt"/>
|
|
120
|
+
<line num="204" count="1" type="stmt"/>
|
|
117
121
|
<line num="205" count="1" type="stmt"/>
|
|
118
122
|
<line num="206" count="1" type="stmt"/>
|
|
119
|
-
<line num="
|
|
120
|
-
<line num="213" count="0" type="
|
|
121
|
-
<line num="
|
|
122
|
-
<line num="
|
|
123
|
-
<line num="233" count="
|
|
124
|
-
<line num="
|
|
125
|
-
<line num="236" count="0" type="
|
|
126
|
-
<line num="
|
|
127
|
-
<line num="240" count="0" type="
|
|
128
|
-
<line num="
|
|
129
|
-
<line num="
|
|
130
|
-
<line num="257" count="
|
|
131
|
-
<line num="
|
|
132
|
-
<line num="
|
|
133
|
-
<line num="262" count="0" type="
|
|
134
|
-
<line num="
|
|
135
|
-
<line num="266" count="0" type="
|
|
136
|
-
<line num="
|
|
137
|
-
<line num="
|
|
138
|
-
<line num="
|
|
139
|
-
<line num="
|
|
140
|
-
<line num="
|
|
141
|
-
<line num="
|
|
142
|
-
<line num="
|
|
143
|
-
<line num="
|
|
144
|
-
<line num="
|
|
145
|
-
<line num="
|
|
146
|
-
<line num="
|
|
147
|
-
<line num="
|
|
148
|
-
<line num="
|
|
149
|
-
<line num="
|
|
150
|
-
<line num="
|
|
151
|
-
<line num="
|
|
152
|
-
<line num="
|
|
153
|
-
<line num="
|
|
154
|
-
<line num="331" count="0" type="stmt"/>
|
|
123
|
+
<line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
124
|
+
<line num="213" count="0" type="stmt"/>
|
|
125
|
+
<line num="215" count="0" type="stmt"/>
|
|
126
|
+
<line num="232" count="2" type="stmt"/>
|
|
127
|
+
<line num="233" count="0" type="stmt"/>
|
|
128
|
+
<line num="235" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
129
|
+
<line num="236" count="0" type="stmt"/>
|
|
130
|
+
<line num="239" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
131
|
+
<line num="240" count="0" type="stmt"/>
|
|
132
|
+
<line num="243" count="0" type="stmt"/>
|
|
133
|
+
<line num="256" count="2" type="stmt"/>
|
|
134
|
+
<line num="257" count="0" type="stmt"/>
|
|
135
|
+
<line num="259" count="0" type="stmt"/>
|
|
136
|
+
<line num="261" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
137
|
+
<line num="262" count="0" type="stmt"/>
|
|
138
|
+
<line num="265" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
139
|
+
<line num="266" count="0" type="stmt"/>
|
|
140
|
+
<line num="269" count="0" type="stmt"/>
|
|
141
|
+
<line num="307" count="2" type="stmt"/>
|
|
142
|
+
<line num="308" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
143
|
+
<line num="313" count="1" type="stmt"/>
|
|
144
|
+
<line num="319" count="3" type="stmt"/>
|
|
145
|
+
<line num="321" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
146
|
+
<line num="322" count="1" type="stmt"/>
|
|
147
|
+
<line num="325" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
148
|
+
<line num="326" count="1" type="stmt"/>
|
|
149
|
+
<line num="329" count="1" type="stmt"/>
|
|
150
|
+
<line num="342" count="2" type="stmt"/>
|
|
151
|
+
<line num="343" count="5" type="stmt"/>
|
|
152
|
+
<line num="345" count="3" type="stmt"/>
|
|
153
|
+
<line num="347" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
154
|
+
<line num="348" count="2" type="stmt"/>
|
|
155
|
+
<line num="351" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
156
|
+
<line num="352" count="1" type="stmt"/>
|
|
157
|
+
<line num="355" count="0" type="stmt"/>
|
|
155
158
|
</file>
|
|
156
159
|
<file name="users.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/users.js">
|
|
157
160
|
<metrics statements="13" coveredstatements="13" conditionals="12" coveredconditionals="11" methods="1" coveredmethods="1"/>
|
|
@@ -171,19 +174,22 @@
|
|
|
171
174
|
</file>
|
|
172
175
|
</package>
|
|
173
176
|
<package name="src.config">
|
|
174
|
-
<metrics statements="
|
|
177
|
+
<metrics statements="13" coveredstatements="5" conditionals="9" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
175
178
|
<file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/config/index.js">
|
|
176
|
-
<metrics statements="
|
|
177
|
-
<line num="
|
|
178
|
-
<line num="
|
|
179
|
-
<line num="
|
|
180
|
-
<line num="
|
|
181
|
-
<line num="
|
|
182
|
-
<line num="26" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
183
|
-
<line num="27" count="0" type="stmt"/>
|
|
184
|
-
<line num="33" count="0" type="stmt"/>
|
|
179
|
+
<metrics statements="13" coveredstatements="5" conditionals="9" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
180
|
+
<line num="16" count="2" type="stmt"/>
|
|
181
|
+
<line num="28" count="2" type="stmt"/>
|
|
182
|
+
<line num="30" count="2" type="stmt"/>
|
|
183
|
+
<line num="32" count="0" type="stmt"/>
|
|
184
|
+
<line num="34" count="0" type="cond" truecount="0" falsecount="7"/>
|
|
185
185
|
<line num="35" count="0" type="stmt"/>
|
|
186
|
-
<line num="
|
|
186
|
+
<line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
187
|
+
<line num="43" count="0" type="stmt"/>
|
|
188
|
+
<line num="49" count="0" type="stmt"/>
|
|
189
|
+
<line num="53" count="2" type="stmt"/>
|
|
190
|
+
<line num="55" count="2" type="stmt"/>
|
|
191
|
+
<line num="56" count="0" type="stmt"/>
|
|
192
|
+
<line num="57" count="0" type="stmt"/>
|
|
187
193
|
</file>
|
|
188
194
|
</package>
|
|
189
195
|
<package name="src.errors">
|