apacuana-sdk-core 0.16.0 → 0.17.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/coverage/clover.xml +149 -146
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/index.html +10 -10
- package/coverage/lcov-report/src/api/certs.js.html +6 -3
- package/coverage/lcov-report/src/api/faceLiveness.js.html +1 -1
- package/coverage/lcov-report/src/api/index.html +1 -1
- package/coverage/lcov-report/src/api/revocations.js.html +1 -1
- package/coverage/lcov-report/src/api/signatures.js.html +1 -1
- package/coverage/lcov-report/src/api/users.js.html +1 -1
- package/coverage/lcov-report/src/config/index.html +1 -1
- package/coverage/lcov-report/src/config/index.js.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/index.js.html +1 -1
- package/coverage/lcov-report/src/success/index.html +1 -1
- package/coverage/lcov-report/src/success/index.js.html +1 -1
- package/coverage/lcov-report/src/utils/constant.js.html +1 -1
- package/coverage/lcov-report/src/utils/helpers.js.html +111 -39
- package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +10 -10
- package/coverage/lcov.info +311 -308
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -13
- package/dist/index.mjs.map +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/certs.js +2 -1
- package/src/utils/helpers.js +54 -30
- package/tests/api/certs.test.js +6 -2
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1759352925379" clover="3.2.0">
|
|
3
|
+
<project timestamp="1759352925379" name="All files">
|
|
4
|
+
<metrics statements="566" coveredstatements="324" conditionals="386" coveredconditionals="134" methods="95" coveredmethods="49" elements="1047" coveredelements="507" complexity="0" loc="566" ncloc="566" packages="6" files="12" classes="12"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="57" coveredstatements="15" conditionals="15" coveredconditionals="3" methods="20" coveredmethods="1"/>
|
|
7
7
|
<file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/index.js">
|
|
@@ -92,61 +92,61 @@
|
|
|
92
92
|
<line num="85" count="2" type="cond" truecount="0" falsecount="1"/>
|
|
93
93
|
<line num="86" count="1" type="stmt"/>
|
|
94
94
|
<line num="87" count="1" type="stmt"/>
|
|
95
|
-
<line num="
|
|
96
|
-
<line num="
|
|
97
|
-
<line num="
|
|
98
|
-
<line num="97" count="1" type="stmt"/>
|
|
95
|
+
<line num="92" count="1" type="stmt"/>
|
|
96
|
+
<line num="94" count="1" type="stmt"/>
|
|
97
|
+
<line num="97" count="2" type="stmt"/>
|
|
99
98
|
<line num="98" count="1" type="stmt"/>
|
|
100
|
-
<line num="
|
|
101
|
-
<line num="
|
|
102
|
-
<line num="107" count="0" type="
|
|
103
|
-
<line num="
|
|
104
|
-
<line num="
|
|
105
|
-
<line num="114" count="
|
|
106
|
-
<line num="
|
|
107
|
-
<line num="128" count="
|
|
108
|
-
<line num="129" count="3" type="
|
|
109
|
-
<line num="130" count="
|
|
110
|
-
<line num="
|
|
111
|
-
<line num="133" count="
|
|
112
|
-
<line num="
|
|
113
|
-
<line num="
|
|
99
|
+
<line num="99" count="1" type="stmt"/>
|
|
100
|
+
<line num="105" count="1" type="stmt"/>
|
|
101
|
+
<line num="107" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
102
|
+
<line num="108" count="0" type="stmt"/>
|
|
103
|
+
<line num="110" count="0" type="stmt"/>
|
|
104
|
+
<line num="114" count="2" type="stmt"/>
|
|
105
|
+
<line num="115" count="1" type="stmt"/>
|
|
106
|
+
<line num="128" count="2" type="stmt"/>
|
|
107
|
+
<line num="129" count="3" type="stmt"/>
|
|
108
|
+
<line num="130" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
109
|
+
<line num="131" count="1" type="stmt"/>
|
|
110
|
+
<line num="133" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
111
|
+
<line num="134" count="1" type="stmt"/>
|
|
112
|
+
<line num="137" count="1" type="stmt"/>
|
|
114
113
|
<line num="144" count="2" type="stmt"/>
|
|
115
114
|
<line num="145" count="2" type="stmt"/>
|
|
116
|
-
<line num="
|
|
117
|
-
<line num="
|
|
118
|
-
<line num="154" count="
|
|
119
|
-
<line num="
|
|
120
|
-
<line num="
|
|
121
|
-
<line num="161" count="
|
|
122
|
-
<line num="
|
|
123
|
-
<line num="177" count="
|
|
124
|
-
<line num="178" count="
|
|
125
|
-
<line num="
|
|
126
|
-
<line num="
|
|
127
|
-
<line num="185" count="4" type="
|
|
128
|
-
<line num="186" count="
|
|
129
|
-
<line num="
|
|
130
|
-
<line num="189" count="
|
|
131
|
-
<line num="
|
|
132
|
-
<line num="
|
|
133
|
-
<line num="200" count="
|
|
115
|
+
<line num="146" count="2" type="stmt"/>
|
|
116
|
+
<line num="152" count="1" type="stmt"/>
|
|
117
|
+
<line num="154" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
118
|
+
<line num="155" count="0" type="stmt"/>
|
|
119
|
+
<line num="157" count="1" type="stmt"/>
|
|
120
|
+
<line num="161" count="2" type="stmt"/>
|
|
121
|
+
<line num="162" count="1" type="stmt"/>
|
|
122
|
+
<line num="177" count="2" type="stmt"/>
|
|
123
|
+
<line num="178" count="7" type="cond" truecount="4" falsecount="0"/>
|
|
124
|
+
<line num="179" count="3" type="stmt"/>
|
|
125
|
+
<line num="183" count="4" type="stmt"/>
|
|
126
|
+
<line num="185" count="4" type="stmt"/>
|
|
127
|
+
<line num="186" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
128
|
+
<line num="187" count="2" type="stmt"/>
|
|
129
|
+
<line num="189" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
130
|
+
<line num="190" count="1" type="stmt"/>
|
|
131
|
+
<line num="193" count="1" type="stmt"/>
|
|
132
|
+
<line num="200" count="2" type="stmt"/>
|
|
134
133
|
<line num="201" count="3" type="stmt"/>
|
|
135
|
-
<line num="
|
|
136
|
-
<line num="
|
|
137
|
-
<line num="210" count="
|
|
138
|
-
<line num="
|
|
139
|
-
<line num="
|
|
140
|
-
<line num="217" count="
|
|
141
|
-
<line num="
|
|
142
|
-
<line num="232" count="
|
|
143
|
-
<line num="
|
|
144
|
-
<line num="
|
|
145
|
-
<line num="243" count="5" type="
|
|
146
|
-
<line num="244" count="
|
|
147
|
-
<line num="
|
|
148
|
-
<line num="247" count="
|
|
149
|
-
<line num="
|
|
134
|
+
<line num="202" count="3" type="stmt"/>
|
|
135
|
+
<line num="208" count="1" type="stmt"/>
|
|
136
|
+
<line num="210" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
137
|
+
<line num="211" count="1" type="stmt"/>
|
|
138
|
+
<line num="213" count="1" type="stmt"/>
|
|
139
|
+
<line num="217" count="2" type="stmt"/>
|
|
140
|
+
<line num="218" count="1" type="stmt"/>
|
|
141
|
+
<line num="232" count="2" type="stmt"/>
|
|
142
|
+
<line num="233" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
143
|
+
<line num="238" count="3" type="stmt"/>
|
|
144
|
+
<line num="243" count="5" type="stmt"/>
|
|
145
|
+
<line num="244" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
146
|
+
<line num="245" count="3" type="stmt"/>
|
|
147
|
+
<line num="247" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
148
|
+
<line num="248" count="1" type="stmt"/>
|
|
149
|
+
<line num="251" count="1" type="stmt"/>
|
|
150
150
|
</file>
|
|
151
151
|
<file name="faceLiveness.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/faceLiveness.js">
|
|
152
152
|
<metrics statements="46" coveredstatements="44" conditionals="21" coveredconditionals="19" methods="6" coveredmethods="6"/>
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
</file>
|
|
450
450
|
</package>
|
|
451
451
|
<package name="src.utils">
|
|
452
|
-
<metrics statements="
|
|
452
|
+
<metrics statements="162" coveredstatements="17" conditionals="183" coveredconditionals="0" methods="21" coveredmethods="0"/>
|
|
453
453
|
<file name="constant.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/constant.js">
|
|
454
454
|
<metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
455
455
|
<line num="1" count="9" type="stmt"/>
|
|
@@ -458,110 +458,113 @@
|
|
|
458
458
|
<line num="54" count="9" type="stmt"/>
|
|
459
459
|
</file>
|
|
460
460
|
<file name="helpers.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/helpers.js">
|
|
461
|
-
<metrics statements="
|
|
462
|
-
<line num="
|
|
463
|
-
<line num="
|
|
464
|
-
<line num="
|
|
465
|
-
<line num="
|
|
466
|
-
<line num="
|
|
467
|
-
<line num="
|
|
468
|
-
<line num="
|
|
469
|
-
<line num="19" count="0" type="stmt"/>
|
|
470
|
-
<line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
471
|
-
<line num="24" count="0" type="stmt"/>
|
|
472
|
-
<line num="25" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
473
|
-
<line num="32" count="0" type="stmt"/>
|
|
461
|
+
<metrics statements="106" coveredstatements="10" conditionals="134" coveredconditionals="0" methods="14" coveredmethods="0"/>
|
|
462
|
+
<line num="10" count="2" type="stmt"/>
|
|
463
|
+
<line num="12" count="2" type="stmt"/>
|
|
464
|
+
<line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
465
|
+
<line num="18" count="0" type="stmt"/>
|
|
466
|
+
<line num="24" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
467
|
+
<line num="25" count="0" type="stmt"/>
|
|
468
|
+
<line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
474
469
|
<line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
475
470
|
<line num="34" count="0" type="stmt"/>
|
|
476
471
|
<line num="35" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
477
|
-
<line num="
|
|
478
|
-
<line num="
|
|
479
|
-
<line num="
|
|
480
|
-
<line num="
|
|
481
|
-
<line num="47" count="2" type="stmt"/>
|
|
482
|
-
<line num="48" count="0" type="stmt"/>
|
|
472
|
+
<line num="42" count="0" type="stmt"/>
|
|
473
|
+
<line num="43" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
474
|
+
<line num="44" count="0" type="stmt"/>
|
|
475
|
+
<line num="45" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
483
476
|
<line num="49" count="0" type="stmt"/>
|
|
484
|
-
<line num="
|
|
477
|
+
<line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
478
|
+
<line num="51" count="0" type="stmt"/>
|
|
479
|
+
<line num="52" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
485
480
|
<line num="54" count="0" type="stmt"/>
|
|
486
|
-
<line num="
|
|
487
|
-
<line num="
|
|
488
|
-
<line num="
|
|
489
|
-
<line num="
|
|
490
|
-
<line num="
|
|
491
|
-
<line num="69" count="2" type="stmt"/>
|
|
492
|
-
<line num="70" count="0" type="stmt"/>
|
|
481
|
+
<line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
482
|
+
<line num="57" count="0" type="stmt"/>
|
|
483
|
+
<line num="63" count="0" type="stmt"/>
|
|
484
|
+
<line num="71" count="2" type="stmt"/>
|
|
485
|
+
<line num="72" count="0" type="stmt"/>
|
|
493
486
|
<line num="73" count="0" type="stmt"/>
|
|
494
|
-
<line num="
|
|
487
|
+
<line num="77" count="0" type="stmt"/>
|
|
495
488
|
<line num="78" count="0" type="stmt"/>
|
|
496
|
-
<line num="79" count="0" type="
|
|
489
|
+
<line num="79" count="0" type="stmt"/>
|
|
497
490
|
<line num="80" count="0" type="stmt"/>
|
|
498
|
-
<line num="83" count="
|
|
499
|
-
<line num="
|
|
500
|
-
<line num="
|
|
501
|
-
<line num="
|
|
491
|
+
<line num="83" count="2" type="cond" truecount="0" falsecount="1"/>
|
|
492
|
+
<line num="84" count="0" type="stmt"/>
|
|
493
|
+
<line num="90" count="0" type="stmt"/>
|
|
494
|
+
<line num="93" count="2" type="stmt"/>
|
|
502
495
|
<line num="94" count="0" type="stmt"/>
|
|
503
|
-
<line num="
|
|
496
|
+
<line num="97" count="0" type="stmt"/>
|
|
497
|
+
<line num="100" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
498
|
+
<line num="102" count="0" type="stmt"/>
|
|
499
|
+
<line num="103" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
500
|
+
<line num="104" count="0" type="stmt"/>
|
|
504
501
|
<line num="107" count="0" type="stmt"/>
|
|
505
|
-
<line num="
|
|
506
|
-
<line num="
|
|
507
|
-
<line num="
|
|
508
|
-
<line num="
|
|
509
|
-
<line num="
|
|
510
|
-
<line num="
|
|
511
|
-
<line num="
|
|
512
|
-
<line num="
|
|
513
|
-
<line num="
|
|
514
|
-
<line num="
|
|
515
|
-
<line num="
|
|
516
|
-
<line num="
|
|
502
|
+
<line num="110" count="2" type="stmt"/>
|
|
503
|
+
<line num="112" count="0" type="stmt"/>
|
|
504
|
+
<line num="114" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
505
|
+
<line num="118" count="0" type="stmt"/>
|
|
506
|
+
<line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
507
|
+
<line num="131" count="0" type="stmt"/>
|
|
508
|
+
<line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
509
|
+
<line num="140" count="0" type="stmt"/>
|
|
510
|
+
<line num="144" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
511
|
+
<line num="145" count="0" type="stmt"/>
|
|
512
|
+
<line num="152" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
513
|
+
<line num="153" count="0" type="stmt"/>
|
|
517
514
|
<line num="160" count="0" type="stmt"/>
|
|
518
|
-
<line num="
|
|
519
|
-
<line num="
|
|
520
|
-
<line num="
|
|
521
|
-
<line num="
|
|
522
|
-
<line num="
|
|
523
|
-
<line num="
|
|
524
|
-
<line num="
|
|
525
|
-
<line num="
|
|
526
|
-
<line num="
|
|
527
|
-
<line num="
|
|
528
|
-
<line num="
|
|
529
|
-
<line num="
|
|
530
|
-
<line num="
|
|
531
|
-
<line num="
|
|
532
|
-
<line num="
|
|
533
|
-
<line num="
|
|
534
|
-
<line num="
|
|
535
|
-
<line num="
|
|
536
|
-
<line num="
|
|
537
|
-
<line num="
|
|
538
|
-
<line num="
|
|
539
|
-
<line num="
|
|
540
|
-
<line num="
|
|
541
|
-
<line num="
|
|
542
|
-
<line num="
|
|
543
|
-
<line num="
|
|
544
|
-
<line num="
|
|
545
|
-
<line num="
|
|
546
|
-
<line num="
|
|
547
|
-
<line num="
|
|
548
|
-
<line num="
|
|
549
|
-
<line num="
|
|
550
|
-
<line num="
|
|
551
|
-
<line num="
|
|
552
|
-
<line num="
|
|
553
|
-
<line num="
|
|
554
|
-
<line num="
|
|
555
|
-
<line num="306" count="0" type="cond" truecount="0" falsecount="
|
|
515
|
+
<line num="161" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
516
|
+
<line num="165" count="0" type="stmt"/>
|
|
517
|
+
<line num="172" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
518
|
+
<line num="173" count="0" type="stmt"/>
|
|
519
|
+
<line num="180" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
520
|
+
<line num="184" count="0" type="stmt"/>
|
|
521
|
+
<line num="191" count="0" type="stmt"/>
|
|
522
|
+
<line num="192" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
523
|
+
<line num="193" count="0" type="stmt"/>
|
|
524
|
+
<line num="202" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
525
|
+
<line num="203" count="0" type="stmt"/>
|
|
526
|
+
<line num="212" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
527
|
+
<line num="213" count="0" type="stmt"/>
|
|
528
|
+
<line num="223" count="0" type="stmt"/>
|
|
529
|
+
<line num="224" count="0" type="stmt"/>
|
|
530
|
+
<line num="225" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
531
|
+
<line num="226" count="0" type="stmt"/>
|
|
532
|
+
<line num="227" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
533
|
+
<line num="228" count="0" type="stmt"/>
|
|
534
|
+
<line num="229" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
535
|
+
<line num="230" count="0" type="stmt"/>
|
|
536
|
+
<line num="234" count="0" type="stmt"/>
|
|
537
|
+
<line num="237" count="2" type="stmt"/>
|
|
538
|
+
<line num="238" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
539
|
+
<line num="245" count="0" type="stmt"/>
|
|
540
|
+
<line num="254" count="2" type="stmt"/>
|
|
541
|
+
<line num="255" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
542
|
+
<line num="260" count="0" type="stmt"/>
|
|
543
|
+
<line num="267" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
544
|
+
<line num="271" count="0" type="stmt"/>
|
|
545
|
+
<line num="279" count="2" type="stmt"/>
|
|
546
|
+
<line num="280" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
547
|
+
<line num="287" count="0" type="stmt"/>
|
|
548
|
+
<line num="295" count="2" type="stmt"/>
|
|
549
|
+
<line num="296" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
550
|
+
<line num="297" count="0" type="stmt"/>
|
|
551
|
+
<line num="304" count="0" type="stmt"/>
|
|
552
|
+
<line num="306" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
556
553
|
<line num="307" count="0" type="stmt"/>
|
|
557
|
-
<line num="314" count="0" type="
|
|
554
|
+
<line num="314" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
558
555
|
<line num="315" count="0" type="stmt"/>
|
|
559
|
-
<line num="
|
|
560
|
-
<line num="
|
|
561
|
-
<line num="
|
|
562
|
-
<line num="
|
|
563
|
-
<line num="
|
|
564
|
-
<line num="
|
|
556
|
+
<line num="322" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
557
|
+
<line num="323" count="0" type="stmt"/>
|
|
558
|
+
<line num="330" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
559
|
+
<line num="331" count="0" type="stmt"/>
|
|
560
|
+
<line num="338" count="0" type="stmt"/>
|
|
561
|
+
<line num="339" count="0" type="stmt"/>
|
|
562
|
+
<line num="342" count="0" type="stmt"/>
|
|
563
|
+
<line num="350" count="0" type="stmt"/>
|
|
564
|
+
<line num="351" count="0" type="stmt"/>
|
|
565
|
+
<line num="352" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
566
|
+
<line num="353" count="0" type="stmt"/>
|
|
567
|
+
<line num="356" count="0" type="stmt"/>
|
|
565
568
|
</file>
|
|
566
569
|
<file name="httpClient.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/httpClient.js">
|
|
567
570
|
<metrics statements="52" coveredstatements="3" conditionals="49" coveredconditionals="0" methods="7" coveredmethods="0"/>
|