@zajno/common 1.4.17 → 1.5.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 +85 -81
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +28 -28
- package/coverage/lcov-report/src/__tests__/helpers/index.html +1 -1
- package/coverage/lcov-report/src/__tests__/helpers/main.ts.html +1 -1
- package/coverage/lcov-report/src/async/arrays.ts.html +1 -1
- package/coverage/lcov-report/src/async/index.html +1 -1
- package/coverage/lcov-report/src/async/timeout.ts.html +1 -1
- package/coverage/lcov-report/src/cache.ts.html +1 -1
- package/coverage/lcov-report/src/dates/calc.ts.html +1 -1
- package/coverage/lcov-report/src/dates/convert.ts.html +1 -1
- package/coverage/lcov-report/src/dates/datex.ts.html +1 -1
- package/coverage/lcov-report/src/dates/format.ts.html +1 -1
- package/coverage/lcov-report/src/dates/index.html +1 -1
- package/coverage/lcov-report/src/dates/index.ts.html +1 -1
- package/coverage/lcov-report/src/dates/parse.ts.html +1 -1
- package/coverage/lcov-report/src/dates/period.ts.html +1 -1
- package/coverage/lcov-report/src/dates/shift.ts.html +1 -1
- package/coverage/lcov-report/src/dates/types.ts.html +1 -1
- package/coverage/lcov-report/src/dates/yearDate.ts.html +1 -1
- package/coverage/lcov-report/src/disposer.ts.html +1 -1
- package/coverage/lcov-report/src/enumHelper.ts.html +1 -1
- package/coverage/lcov-report/src/event.ts.html +1 -1
- package/coverage/lcov-report/src/fields/index.html +1 -1
- package/coverage/lcov-report/src/fields/update.ts.html +1 -1
- package/coverage/lcov-report/src/functions.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +15 -15
- package/coverage/lcov-report/src/lazy.light.ts.html +1 -1
- package/coverage/lcov-report/src/logger/batch.ts.html +1 -1
- package/coverage/lcov-report/src/logger/console.ts.html +1 -1
- package/coverage/lcov-report/src/logger/index.html +1 -1
- package/coverage/lcov-report/src/logger/index.ts.html +1 -1
- package/coverage/lcov-report/src/logger/named.ts.html +1 -1
- package/coverage/lcov-report/src/logger/proxy.ts.html +1 -1
- package/coverage/lcov-report/src/math/arrays.ts.html +1 -1
- package/coverage/lcov-report/src/math/calc.ts.html +1 -1
- package/coverage/lcov-report/src/math/distribution.ts.html +1 -1
- package/coverage/lcov-report/src/math/index.html +1 -1
- package/coverage/lcov-report/src/math/index.ts.html +1 -1
- package/coverage/lcov-report/src/observersMap.ts.html +1 -1
- package/coverage/lcov-report/src/observingCache.ts.html +1 -1
- package/coverage/lcov-report/src/tempoCache.ts.html +1 -1
- package/coverage/lcov-report/src/transitionObserver.ts.html +1 -1
- package/coverage/lcov-report/src/types.ts.html +13 -13
- package/coverage/lcov-report/src/validation/ValidationErrors.ts.html +1 -1
- package/coverage/lcov-report/src/validation/creditCard.ts.html +1 -1
- package/coverage/lcov-report/src/validation/helpers.ts.html +32 -38
- package/coverage/lcov-report/src/validation/index.html +14 -14
- package/coverage/lcov-report/src/validation/index.ts.html +1 -1
- package/coverage/lcov-report/src/validation/types.ts.html +13 -4
- package/coverage/lcov-report/src/validation/validators.ts.html +1 -1
- package/coverage/lcov-report/src/validation/wrappers.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/CommonModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/FlagModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/LoadingModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/MultiSelectModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/NumberModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/SelectModel.ts.html +54 -21
- package/coverage/lcov-report/src/viewModels/TextModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/Validatable.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/index.html +10 -10
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov.info +146 -137
- package/lib/logger/file.d.ts +9 -8
- package/lib/logger/file.d.ts.map +1 -1
- package/lib/logger/file.js +44 -22
- package/lib/logger/file.js.map +1 -1
- package/lib/services/storage/web/sessionStorage.js +1 -1
- package/lib/services/storage/web/sessionStorage.js.map +1 -1
- package/lib/validation/helpers.d.ts +2 -6
- package/lib/validation/helpers.d.ts.map +1 -1
- package/lib/validation/helpers.js +6 -11
- package/lib/validation/helpers.js.map +1 -1
- package/lib/validation/types.d.ts +8 -2
- package/lib/validation/types.d.ts.map +1 -1
- package/lib/validation/types.js.map +1 -1
- package/lib/validation/wrappers.d.ts +3 -3
- package/lib/viewModels/SelectModel.d.ts +5 -4
- package/lib/viewModels/SelectModel.d.ts.map +1 -1
- package/lib/viewModels/SelectModel.js +14 -9
- package/lib/viewModels/SelectModel.js.map +1 -1
- package/package.json +1 -1
- package/src/logger/file.ts +46 -26
- package/src/services/storage/web/sessionStorage.ts +1 -1
- package/src/validation/helpers.ts +16 -18
- package/src/validation/types.ts +5 -2
- package/src/viewModels/SelectModel.ts +23 -12
package/coverage/clover.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1653244478987" clover="3.2.0">
|
|
3
|
+
<project timestamp="1653244478987" name="All files">
|
|
4
|
+
<metrics statements="1584" coveredstatements="1293" conditionals="963" coveredconditionals="725" methods="469" coveredmethods="329" elements="3016" coveredelements="2347" complexity="0" loc="1584" ncloc="1584" packages="9" files="50" classes="50"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="443" coveredstatements="
|
|
6
|
+
<metrics statements="443" coveredstatements="346" conditionals="227" coveredconditionals="152" methods="143" coveredmethods="105"/>
|
|
7
7
|
<file name="cache.ts" path="/Users/idudinov/projects/zajno-common-utils/src/cache.ts">
|
|
8
8
|
<metrics statements="89" coveredstatements="72" conditionals="46" coveredconditionals="26" methods="28" coveredmethods="20"/>
|
|
9
9
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -469,14 +469,14 @@
|
|
|
469
469
|
<line num="179" count="0" type="stmt"/>
|
|
470
470
|
</file>
|
|
471
471
|
<file name="types.ts" path="/Users/idudinov/projects/zajno-common-utils/src/types.ts">
|
|
472
|
-
<metrics statements="9" coveredstatements="
|
|
472
|
+
<metrics statements="9" coveredstatements="9" conditionals="8" coveredconditionals="8" methods="4" coveredmethods="4"/>
|
|
473
473
|
<line num="9" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
474
474
|
<line num="10" count="10" type="stmt"/>
|
|
475
|
-
<line num="11" count="
|
|
476
|
-
<line num="12" count="
|
|
477
|
-
<line num="14" count="
|
|
475
|
+
<line num="11" count="111" type="cond" truecount="2" falsecount="0"/>
|
|
476
|
+
<line num="12" count="10" type="stmt"/>
|
|
477
|
+
<line num="14" count="101" type="cond" truecount="2" falsecount="0"/>
|
|
478
478
|
<line num="15" count="77" type="stmt"/>
|
|
479
|
-
<line num="17" count="
|
|
479
|
+
<line num="17" count="24" type="stmt"/>
|
|
480
480
|
<line num="24" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
481
481
|
<line num="25" count="10" type="stmt"/>
|
|
482
482
|
</file>
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
</file>
|
|
1296
1296
|
</package>
|
|
1297
1297
|
<package name="src.validation">
|
|
1298
|
-
<metrics statements="
|
|
1298
|
+
<metrics statements="89" coveredstatements="48" conditionals="63" coveredconditionals="6" methods="29" coveredmethods="5"/>
|
|
1299
1299
|
<file name="ValidationErrors.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/ValidationErrors.ts">
|
|
1300
1300
|
<metrics statements="21" coveredstatements="21" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="2"/>
|
|
1301
1301
|
<line num="1" count="5" type="stmt"/>
|
|
@@ -1331,26 +1331,28 @@
|
|
|
1331
1331
|
<line num="21" count="5" type="stmt"/>
|
|
1332
1332
|
</file>
|
|
1333
1333
|
<file name="helpers.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/helpers.ts">
|
|
1334
|
-
<metrics statements="
|
|
1334
|
+
<metrics statements="21" coveredstatements="5" conditionals="14" coveredconditionals="0" methods="5" coveredmethods="0"/>
|
|
1335
1335
|
<line num="1" count="5" type="stmt"/>
|
|
1336
1336
|
<line num="2" count="5" type="stmt"/>
|
|
1337
|
-
<line num="
|
|
1338
|
-
<line num="
|
|
1339
|
-
<line num="
|
|
1340
|
-
<line num="
|
|
1341
|
-
<line num="
|
|
1342
|
-
<line num="
|
|
1343
|
-
<line num="19" count="0" type="stmt"/>
|
|
1344
|
-
<line num="21" count="0" type="stmt"/>
|
|
1345
|
-
<line num="22" count="0" type="stmt"/>
|
|
1346
|
-
<line num="23" count="0" type="stmt"/>
|
|
1347
|
-
<line num="24" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1337
|
+
<line num="9" count="5" type="stmt"/>
|
|
1338
|
+
<line num="10" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1339
|
+
<line num="13" count="5" type="cond" truecount="0" falsecount="1"/>
|
|
1340
|
+
<line num="14" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1341
|
+
<line num="15" count="0" type="stmt"/>
|
|
1342
|
+
<line num="19" count="5" type="stmt"/>
|
|
1348
1343
|
<line num="25" count="0" type="stmt"/>
|
|
1344
|
+
<line num="27" count="0" type="stmt"/>
|
|
1349
1345
|
<line num="28" count="0" type="stmt"/>
|
|
1350
|
-
<line num="
|
|
1351
|
-
<line num="
|
|
1352
|
-
<line num="
|
|
1353
|
-
<line num="
|
|
1346
|
+
<line num="29" count="0" type="stmt"/>
|
|
1347
|
+
<line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1348
|
+
<line num="31" count="0" type="stmt"/>
|
|
1349
|
+
<line num="34" count="0" type="stmt"/>
|
|
1350
|
+
<line num="35" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1351
|
+
<line num="36" count="0" type="stmt"/>
|
|
1352
|
+
<line num="39" count="0" type="stmt"/>
|
|
1353
|
+
<line num="40" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1354
|
+
<line num="41" count="0" type="stmt"/>
|
|
1355
|
+
<line num="45" count="0" type="stmt"/>
|
|
1354
1356
|
</file>
|
|
1355
1357
|
<file name="index.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/index.ts">
|
|
1356
1358
|
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
@@ -1362,10 +1364,10 @@
|
|
|
1362
1364
|
</file>
|
|
1363
1365
|
<file name="types.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/types.ts">
|
|
1364
1366
|
<metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
1365
|
-
<line num="
|
|
1366
|
-
<line num="9" count="2" type="stmt"/>
|
|
1367
|
+
<line num="11" count="5" type="stmt"/>
|
|
1367
1368
|
<line num="12" count="2" type="stmt"/>
|
|
1368
|
-
<line num="
|
|
1369
|
+
<line num="15" count="2" type="stmt"/>
|
|
1370
|
+
<line num="16" count="2" type="stmt"/>
|
|
1369
1371
|
</file>
|
|
1370
1372
|
<file name="validators.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/validators.ts">
|
|
1371
1373
|
<metrics statements="21" coveredstatements="6" conditionals="33" coveredconditionals="3" methods="13" coveredmethods="2"/>
|
|
@@ -1406,7 +1408,7 @@
|
|
|
1406
1408
|
</file>
|
|
1407
1409
|
</package>
|
|
1408
1410
|
<package name="src.viewModels">
|
|
1409
|
-
<metrics statements="
|
|
1411
|
+
<metrics statements="326" coveredstatements="243" conditionals="102" coveredconditionals="56" methods="139" coveredmethods="87"/>
|
|
1410
1412
|
<file name="CommonModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/CommonModel.ts">
|
|
1411
1413
|
<metrics statements="19" coveredstatements="19" conditionals="8" coveredconditionals="4" methods="6" coveredmethods="6"/>
|
|
1412
1414
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -1575,66 +1577,68 @@
|
|
|
1575
1577
|
<line num="50" count="3" type="stmt"/>
|
|
1576
1578
|
</file>
|
|
1577
1579
|
<file name="SelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/SelectModel.ts">
|
|
1578
|
-
<metrics statements="
|
|
1580
|
+
<metrics statements="61" coveredstatements="55" conditionals="18" coveredconditionals="15" methods="26" coveredmethods="22"/>
|
|
1579
1581
|
<line num="1" count="2" type="stmt"/>
|
|
1580
1582
|
<line num="2" count="2" type="stmt"/>
|
|
1581
1583
|
<line num="3" count="2" type="stmt"/>
|
|
1582
1584
|
<line num="4" count="2" type="stmt"/>
|
|
1583
1585
|
<line num="6" count="2" type="stmt"/>
|
|
1584
|
-
<line num="
|
|
1585
|
-
<line num="
|
|
1586
|
-
<line num="
|
|
1587
|
-
<line num="
|
|
1588
|
-
<line num="15" count="6" type="stmt"/>
|
|
1586
|
+
<line num="8" count="2" type="stmt"/>
|
|
1587
|
+
<line num="10" count="2" type="stmt"/>
|
|
1588
|
+
<line num="12" count="6" type="stmt"/>
|
|
1589
|
+
<line num="16" count="6" type="stmt"/>
|
|
1589
1590
|
<line num="17" count="6" type="stmt"/>
|
|
1590
|
-
<line num="
|
|
1591
|
+
<line num="19" count="6" type="stmt"/>
|
|
1591
1592
|
<line num="21" count="6" type="stmt"/>
|
|
1592
|
-
<line num="24" count="6" type="stmt"/>
|
|
1593
1593
|
<line num="25" count="6" type="stmt"/>
|
|
1594
|
-
<line num="
|
|
1594
|
+
<line num="28" count="6" type="stmt"/>
|
|
1595
|
+
<line num="30" count="6" type="stmt"/>
|
|
1595
1596
|
<line num="32" count="6" type="stmt"/>
|
|
1596
|
-
<line num="
|
|
1597
|
-
<line num="
|
|
1598
|
-
<line num="
|
|
1599
|
-
<line num="
|
|
1600
|
-
<line num="
|
|
1601
|
-
<line num="
|
|
1602
|
-
<line num="
|
|
1603
|
-
<line num="
|
|
1604
|
-
<line num="
|
|
1605
|
-
<line num="
|
|
1606
|
-
<line num="
|
|
1607
|
-
<line num="
|
|
1608
|
-
<line num="
|
|
1609
|
-
<line num="
|
|
1610
|
-
<line num="
|
|
1611
|
-
<line num="
|
|
1612
|
-
<line num="
|
|
1613
|
-
<line num="82" count="
|
|
1614
|
-
<line num="86" count="
|
|
1615
|
-
<line num="
|
|
1616
|
-
<line num="
|
|
1617
|
-
<line num="
|
|
1618
|
-
<line num="
|
|
1619
|
-
<line num="
|
|
1620
|
-
<line num="
|
|
1621
|
-
<line num="
|
|
1622
|
-
<line num="
|
|
1623
|
-
<line num="
|
|
1624
|
-
<line num="
|
|
1625
|
-
<line num="
|
|
1626
|
-
<line num="
|
|
1627
|
-
<line num="
|
|
1628
|
-
<line num="
|
|
1629
|
-
<line num="
|
|
1630
|
-
<line num="
|
|
1631
|
-
<line num="
|
|
1632
|
-
<line num="
|
|
1633
|
-
<line num="
|
|
1634
|
-
<line num="
|
|
1635
|
-
<line num="
|
|
1636
|
-
<line num="
|
|
1637
|
-
<line num="
|
|
1597
|
+
<line num="40" count="6" type="stmt"/>
|
|
1598
|
+
<line num="41" count="6" type="stmt"/>
|
|
1599
|
+
<line num="44" count="0" type="stmt"/>
|
|
1600
|
+
<line num="48" count="34" type="stmt"/>
|
|
1601
|
+
<line num="52" count="8" type="stmt"/>
|
|
1602
|
+
<line num="57" count="25" type="stmt"/>
|
|
1603
|
+
<line num="60" count="0" type="stmt"/>
|
|
1604
|
+
<line num="62" count="6" type="stmt"/>
|
|
1605
|
+
<line num="63" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
1606
|
+
<line num="66" count="0" type="stmt"/>
|
|
1607
|
+
<line num="68" count="4" type="stmt"/>
|
|
1608
|
+
<line num="69" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
1609
|
+
<line num="70" count="3" type="stmt"/>
|
|
1610
|
+
<line num="75" count="4" type="stmt"/>
|
|
1611
|
+
<line num="76" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1612
|
+
<line num="80" count="5" type="stmt"/>
|
|
1613
|
+
<line num="81" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
1614
|
+
<line num="82" count="4" type="stmt"/>
|
|
1615
|
+
<line num="86" count="0" type="stmt"/>
|
|
1616
|
+
<line num="89" count="11" type="stmt"/>
|
|
1617
|
+
<line num="93" count="16" type="stmt"/>
|
|
1618
|
+
<line num="97" count="6" type="stmt"/>
|
|
1619
|
+
<line num="98" count="16" type="cond" truecount="1" falsecount="1"/>
|
|
1620
|
+
<line num="99" count="0" type="stmt"/>
|
|
1621
|
+
<line num="102" count="16" type="stmt"/>
|
|
1622
|
+
<line num="104" count="16" type="cond" truecount="1" falsecount="1"/>
|
|
1623
|
+
<line num="105" count="0" type="stmt"/>
|
|
1624
|
+
<line num="109" count="16" type="stmt"/>
|
|
1625
|
+
<line num="110" count="16" type="stmt"/>
|
|
1626
|
+
<line num="112" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
1627
|
+
<line num="113" count="45" type="stmt"/>
|
|
1628
|
+
<line num="116" count="16" type="stmt"/>
|
|
1629
|
+
<line num="120" count="6" type="stmt"/>
|
|
1630
|
+
<line num="121" count="1" type="stmt"/>
|
|
1631
|
+
<line num="122" count="1" type="stmt"/>
|
|
1632
|
+
<line num="126" count="1" type="stmt"/>
|
|
1633
|
+
<line num="128" count="3" type="stmt"/>
|
|
1634
|
+
<line num="130" count="9" type="stmt"/>
|
|
1635
|
+
<line num="134" count="18" type="stmt"/>
|
|
1636
|
+
<line num="135" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
1637
|
+
<line num="136" count="7" type="stmt"/>
|
|
1638
|
+
<line num="140" count="3" type="stmt"/>
|
|
1639
|
+
<line num="143" count="1" type="stmt"/>
|
|
1640
|
+
<line num="148" count="2" type="stmt"/>
|
|
1641
|
+
<line num="150" count="3" type="stmt"/>
|
|
1638
1642
|
</file>
|
|
1639
1643
|
<file name="TextModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/TextModel.ts">
|
|
1640
1644
|
<metrics statements="52" coveredstatements="25" conditionals="23" coveredconditionals="7" methods="21" coveredmethods="5"/>
|