topkat-utils 1.2.111 → 1.2.115
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 +116 -35
- package/coverage/coverage-final.json +16 -15
- package/coverage/lcov-report/clean-stack-trace.ts.html +1 -1
- package/coverage/lcov-report/config.ts.html +32 -8
- package/coverage/lcov-report/error-utils.ts.html +3 -3
- package/coverage/lcov-report/index.html +37 -22
- package/coverage/lcov-report/is-empty.ts.html +1 -1
- package/coverage/lcov-report/is-nodejs.ts.html +1 -1
- package/coverage/lcov-report/is-object.ts.html +1 -1
- package/coverage/lcov-report/isset.ts.html +1 -1
- package/coverage/lcov-report/logger-utils.ts.html +1 -1
- package/coverage/lcov-report/loop-utils.ts.html +1 -1
- package/coverage/lcov-report/math-utils.ts.html +232 -0
- package/coverage/lcov-report/object-utils.ts.html +1 -1
- package/coverage/lcov-report/regexp-utils.ts.html +1 -1
- package/coverage/lcov-report/remove-circular-json-stringify.ts.html +1 -1
- package/coverage/lcov-report/string-utils.ts.html +1 -1
- package/coverage/lcov-report/timer-utils.ts.html +69 -9
- package/coverage/lcov-report/transaction-utils.ts.html +1 -1
- package/coverage/lcov.info +133 -26
- package/dist/src/config.d.ts +2 -2
- package/dist/src/config.js +5 -0
- package/dist/src/config.js.map +1 -1
- package/dist/src/error-utils.d.ts +1 -1
- package/dist/src/error-utils.js +1 -1
- package/dist/src/error-utils.js.map +1 -1
- package/dist/src/timer-utils.d.ts +13 -0
- package/dist/src/timer-utils.js +21 -1
- package/dist/src/timer-utils.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +10 -2
- package/src/error-utils.ts +2 -2
- package/src/timer-utils.ts +20 -0
package/coverage/clover.xml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
5
|
-
<file name="clean-stack-trace.ts" path="/Users/garcias/DEV/
|
|
2
|
+
<coverage generated="1741787547795" clover="3.2.0">
|
|
3
|
+
<project timestamp="1741787547795" name="All files">
|
|
4
|
+
<metrics statements="1816" coveredstatements="709" conditionals="54" coveredconditionals="31" methods="134" coveredmethods="13" elements="2004" coveredelements="753" complexity="0" loc="1816" ncloc="1816" packages="1" files="16" classes="16"/>
|
|
5
|
+
<file name="clean-stack-trace.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/clean-stack-trace.ts">
|
|
6
6
|
<metrics statements="40" coveredstatements="40" conditionals="10" coveredconditionals="7" methods="1" coveredmethods="1"/>
|
|
7
7
|
<line num="1" count="2" type="stmt"/>
|
|
8
8
|
<line num="2" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
<line num="39" count="2" type="stmt"/>
|
|
46
46
|
<line num="40" count="2" type="stmt"/>
|
|
47
47
|
</file>
|
|
48
|
-
<file name="config.ts" path="/Users/garcias/DEV/
|
|
49
|
-
<metrics statements="
|
|
48
|
+
<file name="config.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/config.ts">
|
|
49
|
+
<metrics statements="94" coveredstatements="68" conditionals="1" coveredconditionals="1" methods="2" coveredmethods="1"/>
|
|
50
50
|
<line num="1" count="2" type="stmt"/>
|
|
51
51
|
<line num="2" count="2" type="stmt"/>
|
|
52
52
|
<line num="3" count="2" type="stmt"/>
|
|
@@ -125,16 +125,24 @@
|
|
|
125
125
|
<line num="76" count="0" type="stmt"/>
|
|
126
126
|
<line num="77" count="0" type="stmt"/>
|
|
127
127
|
<line num="78" count="0" type="stmt"/>
|
|
128
|
-
<line num="79" count="
|
|
129
|
-
<line num="80" count="
|
|
130
|
-
<line num="81" count="
|
|
131
|
-
<line num="82" count="
|
|
132
|
-
<line num="83" count="
|
|
133
|
-
<line num="84" count="
|
|
134
|
-
<line num="85" count="
|
|
135
|
-
<line num="86" count="
|
|
128
|
+
<line num="79" count="0" type="stmt"/>
|
|
129
|
+
<line num="80" count="0" type="stmt"/>
|
|
130
|
+
<line num="81" count="0" type="stmt"/>
|
|
131
|
+
<line num="82" count="0" type="stmt"/>
|
|
132
|
+
<line num="83" count="0" type="stmt"/>
|
|
133
|
+
<line num="84" count="0" type="stmt"/>
|
|
134
|
+
<line num="85" count="0" type="stmt"/>
|
|
135
|
+
<line num="86" count="0" type="stmt"/>
|
|
136
|
+
<line num="87" count="2" type="stmt"/>
|
|
137
|
+
<line num="88" count="2" type="stmt"/>
|
|
138
|
+
<line num="89" count="2" type="stmt"/>
|
|
139
|
+
<line num="90" count="2" type="stmt"/>
|
|
140
|
+
<line num="91" count="2" type="stmt"/>
|
|
141
|
+
<line num="92" count="2" type="stmt"/>
|
|
142
|
+
<line num="93" count="2" type="stmt"/>
|
|
143
|
+
<line num="94" count="2" type="stmt"/>
|
|
136
144
|
</file>
|
|
137
|
-
<file name="error-utils.ts" path="/Users/garcias/DEV/
|
|
145
|
+
<file name="error-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/error-utils.ts">
|
|
138
146
|
<metrics statements="216" coveredstatements="29" conditionals="1" coveredconditionals="0" methods="10" coveredmethods="0"/>
|
|
139
147
|
<line num="1" count="2" type="stmt"/>
|
|
140
148
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -353,7 +361,7 @@
|
|
|
353
361
|
<line num="215" count="0" type="stmt"/>
|
|
354
362
|
<line num="216" count="0" type="stmt"/>
|
|
355
363
|
</file>
|
|
356
|
-
<file name="is-empty.ts" path="/Users/garcias/DEV/
|
|
364
|
+
<file name="is-empty.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/is-empty.ts">
|
|
357
365
|
<metrics statements="7" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
358
366
|
<line num="1" count="2" type="stmt"/>
|
|
359
367
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -363,7 +371,7 @@
|
|
|
363
371
|
<line num="6" count="0" type="stmt"/>
|
|
364
372
|
<line num="7" count="0" type="stmt"/>
|
|
365
373
|
</file>
|
|
366
|
-
<file name="is-nodejs.ts" path="/Users/garcias/DEV/
|
|
374
|
+
<file name="is-nodejs.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/is-nodejs.ts">
|
|
367
375
|
<metrics statements="9" coveredstatements="7" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
368
376
|
<line num="1" count="2" type="stmt"/>
|
|
369
377
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -375,19 +383,19 @@
|
|
|
375
383
|
<line num="8" count="0" type="stmt"/>
|
|
376
384
|
<line num="9" count="2" type="stmt"/>
|
|
377
385
|
</file>
|
|
378
|
-
<file name="is-object.ts" path="/Users/garcias/DEV/
|
|
386
|
+
<file name="is-object.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/is-object.ts">
|
|
379
387
|
<metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
380
388
|
<line num="1" count="2" type="stmt"/>
|
|
381
389
|
<line num="2" count="2" type="stmt"/>
|
|
382
390
|
<line num="3" count="0" type="stmt"/>
|
|
383
391
|
</file>
|
|
384
|
-
<file name="isset.ts" path="/Users/garcias/DEV/
|
|
392
|
+
<file name="isset.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/isset.ts">
|
|
385
393
|
<metrics statements="3" coveredstatements="3" conditionals="3" coveredconditionals="3" methods="1" coveredmethods="1"/>
|
|
386
394
|
<line num="1" count="38" type="cond" truecount="1" falsecount="0"/>
|
|
387
395
|
<line num="2" count="38" type="cond" truecount="2" falsecount="0"/>
|
|
388
396
|
<line num="3" count="38" type="stmt"/>
|
|
389
397
|
</file>
|
|
390
|
-
<file name="logger-utils.ts" path="/Users/garcias/DEV/
|
|
398
|
+
<file name="logger-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/logger-utils.ts">
|
|
391
399
|
<metrics statements="356" coveredstatements="145" conditionals="21" coveredconditionals="6" methods="40" coveredmethods="5"/>
|
|
392
400
|
<line num="1" count="2" type="stmt"/>
|
|
393
401
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -746,7 +754,7 @@
|
|
|
746
754
|
<line num="355" count="0" type="stmt"/>
|
|
747
755
|
<line num="356" count="0" type="stmt"/>
|
|
748
756
|
</file>
|
|
749
|
-
<file name="loop-utils.ts" path="/Users/garcias/DEV/
|
|
757
|
+
<file name="loop-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/loop-utils.ts">
|
|
750
758
|
<metrics statements="106" coveredstatements="49" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="0"/>
|
|
751
759
|
<line num="1" count="2" type="stmt"/>
|
|
752
760
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -855,7 +863,60 @@
|
|
|
855
863
|
<line num="105" count="0" type="stmt"/>
|
|
856
864
|
<line num="106" count="0" type="stmt"/>
|
|
857
865
|
</file>
|
|
858
|
-
<file name="
|
|
866
|
+
<file name="math-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/math-utils.ts">
|
|
867
|
+
<metrics statements="50" coveredstatements="29" conditionals="0" coveredconditionals="0" methods="9" coveredmethods="0"/>
|
|
868
|
+
<line num="1" count="2" type="stmt"/>
|
|
869
|
+
<line num="2" count="2" type="stmt"/>
|
|
870
|
+
<line num="3" count="2" type="stmt"/>
|
|
871
|
+
<line num="4" count="2" type="stmt"/>
|
|
872
|
+
<line num="5" count="2" type="stmt"/>
|
|
873
|
+
<line num="6" count="2" type="stmt"/>
|
|
874
|
+
<line num="7" count="0" type="stmt"/>
|
|
875
|
+
<line num="8" count="2" type="stmt"/>
|
|
876
|
+
<line num="9" count="0" type="stmt"/>
|
|
877
|
+
<line num="10" count="2" type="stmt"/>
|
|
878
|
+
<line num="11" count="2" type="stmt"/>
|
|
879
|
+
<line num="12" count="0" type="stmt"/>
|
|
880
|
+
<line num="13" count="2" type="stmt"/>
|
|
881
|
+
<line num="14" count="2" type="stmt"/>
|
|
882
|
+
<line num="15" count="0" type="stmt"/>
|
|
883
|
+
<line num="16" count="2" type="stmt"/>
|
|
884
|
+
<line num="17" count="2" type="stmt"/>
|
|
885
|
+
<line num="18" count="0" type="stmt"/>
|
|
886
|
+
<line num="19" count="0" type="stmt"/>
|
|
887
|
+
<line num="20" count="0" type="stmt"/>
|
|
888
|
+
<line num="21" count="0" type="stmt"/>
|
|
889
|
+
<line num="22" count="0" type="stmt"/>
|
|
890
|
+
<line num="23" count="0" type="stmt"/>
|
|
891
|
+
<line num="24" count="0" type="stmt"/>
|
|
892
|
+
<line num="25" count="0" type="stmt"/>
|
|
893
|
+
<line num="26" count="0" type="stmt"/>
|
|
894
|
+
<line num="27" count="2" type="stmt"/>
|
|
895
|
+
<line num="28" count="2" type="stmt"/>
|
|
896
|
+
<line num="29" count="0" type="stmt"/>
|
|
897
|
+
<line num="30" count="0" type="stmt"/>
|
|
898
|
+
<line num="31" count="0" type="stmt"/>
|
|
899
|
+
<line num="32" count="2" type="stmt"/>
|
|
900
|
+
<line num="33" count="2" type="stmt"/>
|
|
901
|
+
<line num="34" count="2" type="stmt"/>
|
|
902
|
+
<line num="35" count="2" type="stmt"/>
|
|
903
|
+
<line num="36" count="0" type="stmt"/>
|
|
904
|
+
<line num="37" count="0" type="stmt"/>
|
|
905
|
+
<line num="38" count="0" type="stmt"/>
|
|
906
|
+
<line num="39" count="2" type="stmt"/>
|
|
907
|
+
<line num="40" count="2" type="stmt"/>
|
|
908
|
+
<line num="41" count="0" type="stmt"/>
|
|
909
|
+
<line num="42" count="2" type="stmt"/>
|
|
910
|
+
<line num="43" count="2" type="stmt"/>
|
|
911
|
+
<line num="44" count="2" type="stmt"/>
|
|
912
|
+
<line num="45" count="2" type="stmt"/>
|
|
913
|
+
<line num="46" count="2" type="stmt"/>
|
|
914
|
+
<line num="47" count="2" type="stmt"/>
|
|
915
|
+
<line num="48" count="2" type="stmt"/>
|
|
916
|
+
<line num="49" count="2" type="stmt"/>
|
|
917
|
+
<line num="50" count="0" type="stmt"/>
|
|
918
|
+
</file>
|
|
919
|
+
<file name="object-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/object-utils.ts">
|
|
859
920
|
<metrics statements="440" coveredstatements="126" conditionals="0" coveredconditionals="0" methods="27" coveredmethods="0"/>
|
|
860
921
|
<line num="1" count="2" type="stmt"/>
|
|
861
922
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1298,7 +1359,7 @@
|
|
|
1298
1359
|
<line num="439" count="2" type="stmt"/>
|
|
1299
1360
|
<line num="440" count="2" type="stmt"/>
|
|
1300
1361
|
</file>
|
|
1301
|
-
<file name="regexp-utils.ts" path="/Users/garcias/DEV/
|
|
1362
|
+
<file name="regexp-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/regexp-utils.ts">
|
|
1302
1363
|
<metrics statements="41" coveredstatements="18" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
1303
1364
|
<line num="1" count="2" type="stmt"/>
|
|
1304
1365
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1342,7 +1403,7 @@
|
|
|
1342
1403
|
<line num="40" count="0" type="stmt"/>
|
|
1343
1404
|
<line num="41" count="0" type="stmt"/>
|
|
1344
1405
|
</file>
|
|
1345
|
-
<file name="remove-circular-json-stringify.ts" path="/Users/garcias/DEV/
|
|
1406
|
+
<file name="remove-circular-json-stringify.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/remove-circular-json-stringify.ts">
|
|
1346
1407
|
<metrics statements="19" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
1347
1408
|
<line num="1" count="2" type="stmt"/>
|
|
1348
1409
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1364,7 +1425,7 @@
|
|
|
1364
1425
|
<line num="18" count="0" type="stmt"/>
|
|
1365
1426
|
<line num="19" count="0" type="stmt"/>
|
|
1366
1427
|
</file>
|
|
1367
|
-
<file name="string-utils.ts" path="/Users/garcias/DEV/
|
|
1428
|
+
<file name="string-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/string-utils.ts">
|
|
1368
1429
|
<metrics statements="279" coveredstatements="92" conditionals="0" coveredconditionals="0" methods="23" coveredmethods="0"/>
|
|
1369
1430
|
<line num="1" count="2" type="stmt"/>
|
|
1370
1431
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1646,8 +1707,8 @@
|
|
|
1646
1707
|
<line num="278" count="0" type="stmt"/>
|
|
1647
1708
|
<line num="279" count="0" type="stmt"/>
|
|
1648
1709
|
</file>
|
|
1649
|
-
<file name="timer-utils.ts" path="/Users/garcias/DEV/
|
|
1650
|
-
<metrics statements="
|
|
1710
|
+
<file name="timer-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/timer-utils.ts">
|
|
1711
|
+
<metrics statements="89" coveredstatements="45" conditionals="3" coveredconditionals="3" methods="7" coveredmethods="2"/>
|
|
1651
1712
|
<line num="1" count="2" type="stmt"/>
|
|
1652
1713
|
<line num="2" count="2" type="stmt"/>
|
|
1653
1714
|
<line num="3" count="2" type="stmt"/>
|
|
@@ -1656,8 +1717,8 @@
|
|
|
1656
1717
|
<line num="6" count="2" type="stmt"/>
|
|
1657
1718
|
<line num="7" count="2" type="stmt"/>
|
|
1658
1719
|
<line num="8" count="2" type="stmt"/>
|
|
1659
|
-
<line num="9" count="2" type="
|
|
1660
|
-
<line num="10" count="2" type="
|
|
1720
|
+
<line num="9" count="2" type="stmt"/>
|
|
1721
|
+
<line num="10" count="2" type="cond" truecount="3" falsecount="0"/>
|
|
1661
1722
|
<line num="11" count="2" type="stmt"/>
|
|
1662
1723
|
<line num="12" count="2" type="stmt"/>
|
|
1663
1724
|
<line num="13" count="2" type="stmt"/>
|
|
@@ -1668,7 +1729,7 @@
|
|
|
1668
1729
|
<line num="18" count="2" type="stmt"/>
|
|
1669
1730
|
<line num="19" count="2" type="stmt"/>
|
|
1670
1731
|
<line num="20" count="2" type="stmt"/>
|
|
1671
|
-
<line num="21" count="
|
|
1732
|
+
<line num="21" count="2" type="stmt"/>
|
|
1672
1733
|
<line num="22" count="0" type="stmt"/>
|
|
1673
1734
|
<line num="23" count="0" type="stmt"/>
|
|
1674
1735
|
<line num="24" count="0" type="stmt"/>
|
|
@@ -1681,7 +1742,7 @@
|
|
|
1681
1742
|
<line num="31" count="0" type="stmt"/>
|
|
1682
1743
|
<line num="32" count="0" type="stmt"/>
|
|
1683
1744
|
<line num="33" count="0" type="stmt"/>
|
|
1684
|
-
<line num="34" count="
|
|
1745
|
+
<line num="34" count="0" type="stmt"/>
|
|
1685
1746
|
<line num="35" count="2" type="stmt"/>
|
|
1686
1747
|
<line num="36" count="2" type="stmt"/>
|
|
1687
1748
|
<line num="37" count="2" type="stmt"/>
|
|
@@ -1692,7 +1753,7 @@
|
|
|
1692
1753
|
<line num="42" count="2" type="stmt"/>
|
|
1693
1754
|
<line num="43" count="2" type="stmt"/>
|
|
1694
1755
|
<line num="44" count="2" type="stmt"/>
|
|
1695
|
-
<line num="45" count="
|
|
1756
|
+
<line num="45" count="2" type="stmt"/>
|
|
1696
1757
|
<line num="46" count="0" type="stmt"/>
|
|
1697
1758
|
<line num="47" count="0" type="stmt"/>
|
|
1698
1759
|
<line num="48" count="0" type="stmt"/>
|
|
@@ -1706,10 +1767,10 @@
|
|
|
1706
1767
|
<line num="56" count="0" type="stmt"/>
|
|
1707
1768
|
<line num="57" count="0" type="stmt"/>
|
|
1708
1769
|
<line num="58" count="0" type="stmt"/>
|
|
1709
|
-
<line num="59" count="
|
|
1770
|
+
<line num="59" count="0" type="stmt"/>
|
|
1710
1771
|
<line num="60" count="2" type="stmt"/>
|
|
1711
1772
|
<line num="61" count="2" type="stmt"/>
|
|
1712
|
-
<line num="62" count="
|
|
1773
|
+
<line num="62" count="2" type="stmt"/>
|
|
1713
1774
|
<line num="63" count="0" type="stmt"/>
|
|
1714
1775
|
<line num="64" count="0" type="stmt"/>
|
|
1715
1776
|
<line num="65" count="0" type="stmt"/>
|
|
@@ -1717,8 +1778,28 @@
|
|
|
1717
1778
|
<line num="67" count="0" type="stmt"/>
|
|
1718
1779
|
<line num="68" count="0" type="stmt"/>
|
|
1719
1780
|
<line num="69" count="0" type="stmt"/>
|
|
1781
|
+
<line num="70" count="0" type="stmt"/>
|
|
1782
|
+
<line num="71" count="2" type="stmt"/>
|
|
1783
|
+
<line num="72" count="2" type="stmt"/>
|
|
1784
|
+
<line num="73" count="2" type="stmt"/>
|
|
1785
|
+
<line num="74" count="2" type="stmt"/>
|
|
1786
|
+
<line num="75" count="2" type="stmt"/>
|
|
1787
|
+
<line num="76" count="2" type="stmt"/>
|
|
1788
|
+
<line num="77" count="2" type="stmt"/>
|
|
1789
|
+
<line num="78" count="2" type="stmt"/>
|
|
1790
|
+
<line num="79" count="2" type="stmt"/>
|
|
1791
|
+
<line num="80" count="2" type="stmt"/>
|
|
1792
|
+
<line num="81" count="0" type="stmt"/>
|
|
1793
|
+
<line num="82" count="0" type="stmt"/>
|
|
1794
|
+
<line num="83" count="0" type="stmt"/>
|
|
1795
|
+
<line num="84" count="0" type="stmt"/>
|
|
1796
|
+
<line num="85" count="0" type="stmt"/>
|
|
1797
|
+
<line num="86" count="0" type="stmt"/>
|
|
1798
|
+
<line num="87" count="0" type="stmt"/>
|
|
1799
|
+
<line num="88" count="0" type="stmt"/>
|
|
1800
|
+
<line num="89" count="0" type="stmt"/>
|
|
1720
1801
|
</file>
|
|
1721
|
-
<file name="transaction-utils.ts" path="/Users/garcias/DEV/
|
|
1802
|
+
<file name="transaction-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/transaction-utils.ts">
|
|
1722
1803
|
<metrics statements="64" coveredstatements="51" conditionals="13" coveredconditionals="10" methods="3" coveredmethods="2"/>
|
|
1723
1804
|
<line num="1" count="2" type="stmt"/>
|
|
1724
1805
|
<line num="2" count="2" type="stmt"/>
|