topkat-utils 1.2.112 → 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 +99 -26
- 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 +1 -1
- package/coverage/lcov-report/error-utils.ts.html +1 -1
- package/coverage/lcov-report/index.html +31 -16
- 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 +116 -17
- 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/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,7 +45,7 @@
|
|
|
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/
|
|
48
|
+
<file name="config.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/config.ts">
|
|
49
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"/>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
<line num="93" count="2" type="stmt"/>
|
|
143
143
|
<line num="94" count="2" type="stmt"/>
|
|
144
144
|
</file>
|
|
145
|
-
<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">
|
|
146
146
|
<metrics statements="216" coveredstatements="29" conditionals="1" coveredconditionals="0" methods="10" coveredmethods="0"/>
|
|
147
147
|
<line num="1" count="2" type="stmt"/>
|
|
148
148
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
<line num="215" count="0" type="stmt"/>
|
|
362
362
|
<line num="216" count="0" type="stmt"/>
|
|
363
363
|
</file>
|
|
364
|
-
<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">
|
|
365
365
|
<metrics statements="7" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
366
366
|
<line num="1" count="2" type="stmt"/>
|
|
367
367
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
<line num="6" count="0" type="stmt"/>
|
|
372
372
|
<line num="7" count="0" type="stmt"/>
|
|
373
373
|
</file>
|
|
374
|
-
<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">
|
|
375
375
|
<metrics statements="9" coveredstatements="7" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
376
376
|
<line num="1" count="2" type="stmt"/>
|
|
377
377
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -383,19 +383,19 @@
|
|
|
383
383
|
<line num="8" count="0" type="stmt"/>
|
|
384
384
|
<line num="9" count="2" type="stmt"/>
|
|
385
385
|
</file>
|
|
386
|
-
<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">
|
|
387
387
|
<metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
388
388
|
<line num="1" count="2" type="stmt"/>
|
|
389
389
|
<line num="2" count="2" type="stmt"/>
|
|
390
390
|
<line num="3" count="0" type="stmt"/>
|
|
391
391
|
</file>
|
|
392
|
-
<file name="isset.ts" path="/Users/garcias/DEV/
|
|
392
|
+
<file name="isset.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/isset.ts">
|
|
393
393
|
<metrics statements="3" coveredstatements="3" conditionals="3" coveredconditionals="3" methods="1" coveredmethods="1"/>
|
|
394
394
|
<line num="1" count="38" type="cond" truecount="1" falsecount="0"/>
|
|
395
395
|
<line num="2" count="38" type="cond" truecount="2" falsecount="0"/>
|
|
396
396
|
<line num="3" count="38" type="stmt"/>
|
|
397
397
|
</file>
|
|
398
|
-
<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">
|
|
399
399
|
<metrics statements="356" coveredstatements="145" conditionals="21" coveredconditionals="6" methods="40" coveredmethods="5"/>
|
|
400
400
|
<line num="1" count="2" type="stmt"/>
|
|
401
401
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
<line num="355" count="0" type="stmt"/>
|
|
755
755
|
<line num="356" count="0" type="stmt"/>
|
|
756
756
|
</file>
|
|
757
|
-
<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">
|
|
758
758
|
<metrics statements="106" coveredstatements="49" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="0"/>
|
|
759
759
|
<line num="1" count="2" type="stmt"/>
|
|
760
760
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -863,7 +863,60 @@
|
|
|
863
863
|
<line num="105" count="0" type="stmt"/>
|
|
864
864
|
<line num="106" count="0" type="stmt"/>
|
|
865
865
|
</file>
|
|
866
|
-
<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">
|
|
867
920
|
<metrics statements="440" coveredstatements="126" conditionals="0" coveredconditionals="0" methods="27" coveredmethods="0"/>
|
|
868
921
|
<line num="1" count="2" type="stmt"/>
|
|
869
922
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1306,7 +1359,7 @@
|
|
|
1306
1359
|
<line num="439" count="2" type="stmt"/>
|
|
1307
1360
|
<line num="440" count="2" type="stmt"/>
|
|
1308
1361
|
</file>
|
|
1309
|
-
<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">
|
|
1310
1363
|
<metrics statements="41" coveredstatements="18" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
1311
1364
|
<line num="1" count="2" type="stmt"/>
|
|
1312
1365
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1350,7 +1403,7 @@
|
|
|
1350
1403
|
<line num="40" count="0" type="stmt"/>
|
|
1351
1404
|
<line num="41" count="0" type="stmt"/>
|
|
1352
1405
|
</file>
|
|
1353
|
-
<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">
|
|
1354
1407
|
<metrics statements="19" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
1355
1408
|
<line num="1" count="2" type="stmt"/>
|
|
1356
1409
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1372,7 +1425,7 @@
|
|
|
1372
1425
|
<line num="18" count="0" type="stmt"/>
|
|
1373
1426
|
<line num="19" count="0" type="stmt"/>
|
|
1374
1427
|
</file>
|
|
1375
|
-
<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">
|
|
1376
1429
|
<metrics statements="279" coveredstatements="92" conditionals="0" coveredconditionals="0" methods="23" coveredmethods="0"/>
|
|
1377
1430
|
<line num="1" count="2" type="stmt"/>
|
|
1378
1431
|
<line num="2" count="2" type="stmt"/>
|
|
@@ -1654,8 +1707,8 @@
|
|
|
1654
1707
|
<line num="278" count="0" type="stmt"/>
|
|
1655
1708
|
<line num="279" count="0" type="stmt"/>
|
|
1656
1709
|
</file>
|
|
1657
|
-
<file name="timer-utils.ts" path="/Users/garcias/DEV/
|
|
1658
|
-
<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"/>
|
|
1659
1712
|
<line num="1" count="2" type="stmt"/>
|
|
1660
1713
|
<line num="2" count="2" type="stmt"/>
|
|
1661
1714
|
<line num="3" count="2" type="stmt"/>
|
|
@@ -1664,8 +1717,8 @@
|
|
|
1664
1717
|
<line num="6" count="2" type="stmt"/>
|
|
1665
1718
|
<line num="7" count="2" type="stmt"/>
|
|
1666
1719
|
<line num="8" count="2" type="stmt"/>
|
|
1667
|
-
<line num="9" count="2" type="
|
|
1668
|
-
<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"/>
|
|
1669
1722
|
<line num="11" count="2" type="stmt"/>
|
|
1670
1723
|
<line num="12" count="2" type="stmt"/>
|
|
1671
1724
|
<line num="13" count="2" type="stmt"/>
|
|
@@ -1676,7 +1729,7 @@
|
|
|
1676
1729
|
<line num="18" count="2" type="stmt"/>
|
|
1677
1730
|
<line num="19" count="2" type="stmt"/>
|
|
1678
1731
|
<line num="20" count="2" type="stmt"/>
|
|
1679
|
-
<line num="21" count="
|
|
1732
|
+
<line num="21" count="2" type="stmt"/>
|
|
1680
1733
|
<line num="22" count="0" type="stmt"/>
|
|
1681
1734
|
<line num="23" count="0" type="stmt"/>
|
|
1682
1735
|
<line num="24" count="0" type="stmt"/>
|
|
@@ -1689,7 +1742,7 @@
|
|
|
1689
1742
|
<line num="31" count="0" type="stmt"/>
|
|
1690
1743
|
<line num="32" count="0" type="stmt"/>
|
|
1691
1744
|
<line num="33" count="0" type="stmt"/>
|
|
1692
|
-
<line num="34" count="
|
|
1745
|
+
<line num="34" count="0" type="stmt"/>
|
|
1693
1746
|
<line num="35" count="2" type="stmt"/>
|
|
1694
1747
|
<line num="36" count="2" type="stmt"/>
|
|
1695
1748
|
<line num="37" count="2" type="stmt"/>
|
|
@@ -1700,7 +1753,7 @@
|
|
|
1700
1753
|
<line num="42" count="2" type="stmt"/>
|
|
1701
1754
|
<line num="43" count="2" type="stmt"/>
|
|
1702
1755
|
<line num="44" count="2" type="stmt"/>
|
|
1703
|
-
<line num="45" count="
|
|
1756
|
+
<line num="45" count="2" type="stmt"/>
|
|
1704
1757
|
<line num="46" count="0" type="stmt"/>
|
|
1705
1758
|
<line num="47" count="0" type="stmt"/>
|
|
1706
1759
|
<line num="48" count="0" type="stmt"/>
|
|
@@ -1714,10 +1767,10 @@
|
|
|
1714
1767
|
<line num="56" count="0" type="stmt"/>
|
|
1715
1768
|
<line num="57" count="0" type="stmt"/>
|
|
1716
1769
|
<line num="58" count="0" type="stmt"/>
|
|
1717
|
-
<line num="59" count="
|
|
1770
|
+
<line num="59" count="0" type="stmt"/>
|
|
1718
1771
|
<line num="60" count="2" type="stmt"/>
|
|
1719
1772
|
<line num="61" count="2" type="stmt"/>
|
|
1720
|
-
<line num="62" count="
|
|
1773
|
+
<line num="62" count="2" type="stmt"/>
|
|
1721
1774
|
<line num="63" count="0" type="stmt"/>
|
|
1722
1775
|
<line num="64" count="0" type="stmt"/>
|
|
1723
1776
|
<line num="65" count="0" type="stmt"/>
|
|
@@ -1725,8 +1778,28 @@
|
|
|
1725
1778
|
<line num="67" count="0" type="stmt"/>
|
|
1726
1779
|
<line num="68" count="0" type="stmt"/>
|
|
1727
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"/>
|
|
1728
1801
|
</file>
|
|
1729
|
-
<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">
|
|
1730
1803
|
<metrics statements="64" coveredstatements="51" conditionals="13" coveredconditionals="10" methods="3" coveredmethods="2"/>
|
|
1731
1804
|
<line num="1" count="2" type="stmt"/>
|
|
1732
1805
|
<line num="2" count="2" type="stmt"/>
|