@zajno/common 1.4.19 → 1.5.2
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 +75 -73
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +22 -22
- 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 +7 -4
- package/coverage/lcov-report/src/validation/index.html +4 -4
- package/coverage/lcov-report/src/validation/index.ts.html +1 -1
- package/coverage/lcov-report/src/validation/types.ts.html +1 -1
- 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 +122 -118
- package/lib/services/storage/index.d.ts +4 -0
- package/lib/services/storage/index.d.ts.map +1 -1
- package/lib/services/storage/index.js +13 -1
- package/lib/services/storage/index.js.map +1 -1
- package/lib/validation/helpers.d.ts +1 -1
- package/lib/validation/helpers.d.ts.map +1 -1
- package/lib/validation/helpers.js +2 -2
- package/lib/validation/helpers.js.map +1 -1
- 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/services/storage/index.ts +17 -1
- package/src/validation/helpers.ts +2 -1
- 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="1653400159659" clover="3.2.0">
|
|
3
|
+
<project timestamp="1653400159659" name="All files">
|
|
4
|
+
<metrics statements="1584" coveredstatements="1293" conditionals="965" coveredconditionals="725" methods="469" coveredmethods="329" elements="3018" 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="89" coveredstatements="48" conditionals="
|
|
1298
|
+
<metrics statements="89" coveredstatements="48" conditionals="65" 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,7 +1331,7 @@
|
|
|
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="21" coveredstatements="5" conditionals="
|
|
1334
|
+
<metrics statements="21" coveredstatements="5" conditionals="16" 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
1337
|
<line num="9" count="5" type="stmt"/>
|
|
@@ -1340,19 +1340,19 @@
|
|
|
1340
1340
|
<line num="14" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1341
1341
|
<line num="15" count="0" type="stmt"/>
|
|
1342
1342
|
<line num="19" count="5" type="stmt"/>
|
|
1343
|
-
<line num="
|
|
1344
|
-
<line num="27" count="0" type="stmt"/>
|
|
1343
|
+
<line num="26" count="0" type="stmt"/>
|
|
1345
1344
|
<line num="28" count="0" type="stmt"/>
|
|
1346
1345
|
<line num="29" count="0" type="stmt"/>
|
|
1347
|
-
<line num="30" count="0" type="
|
|
1348
|
-
<line num="31" count="0" type="
|
|
1349
|
-
<line num="
|
|
1350
|
-
<line num="35" count="0" type="
|
|
1351
|
-
<line num="36" count="0" type="
|
|
1352
|
-
<line num="
|
|
1346
|
+
<line num="30" count="0" type="stmt"/>
|
|
1347
|
+
<line num="31" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1348
|
+
<line num="32" count="0" type="stmt"/>
|
|
1349
|
+
<line num="35" count="0" type="stmt"/>
|
|
1350
|
+
<line num="36" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1351
|
+
<line num="37" count="0" type="stmt"/>
|
|
1353
1352
|
<line num="40" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1354
|
-
<line num="41" count="0" type="
|
|
1355
|
-
<line num="
|
|
1353
|
+
<line num="41" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1354
|
+
<line num="42" count="0" type="stmt"/>
|
|
1355
|
+
<line num="46" count="0" type="stmt"/>
|
|
1356
1356
|
</file>
|
|
1357
1357
|
<file name="index.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/index.ts">
|
|
1358
1358
|
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
@@ -1408,7 +1408,7 @@
|
|
|
1408
1408
|
</file>
|
|
1409
1409
|
</package>
|
|
1410
1410
|
<package name="src.viewModels">
|
|
1411
|
-
<metrics statements="
|
|
1411
|
+
<metrics statements="326" coveredstatements="243" conditionals="102" coveredconditionals="56" methods="139" coveredmethods="87"/>
|
|
1412
1412
|
<file name="CommonModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/CommonModel.ts">
|
|
1413
1413
|
<metrics statements="19" coveredstatements="19" conditionals="8" coveredconditionals="4" methods="6" coveredmethods="6"/>
|
|
1414
1414
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -1577,66 +1577,68 @@
|
|
|
1577
1577
|
<line num="50" count="3" type="stmt"/>
|
|
1578
1578
|
</file>
|
|
1579
1579
|
<file name="SelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/SelectModel.ts">
|
|
1580
|
-
<metrics statements="
|
|
1580
|
+
<metrics statements="61" coveredstatements="55" conditionals="18" coveredconditionals="15" methods="26" coveredmethods="22"/>
|
|
1581
1581
|
<line num="1" count="2" type="stmt"/>
|
|
1582
1582
|
<line num="2" count="2" type="stmt"/>
|
|
1583
1583
|
<line num="3" count="2" type="stmt"/>
|
|
1584
1584
|
<line num="4" count="2" type="stmt"/>
|
|
1585
1585
|
<line num="6" count="2" type="stmt"/>
|
|
1586
|
-
<line num="
|
|
1587
|
-
<line num="
|
|
1588
|
-
<line num="
|
|
1589
|
-
<line num="
|
|
1590
|
-
<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"/>
|
|
1591
1590
|
<line num="17" count="6" type="stmt"/>
|
|
1592
|
-
<line num="
|
|
1591
|
+
<line num="19" count="6" type="stmt"/>
|
|
1593
1592
|
<line num="21" count="6" type="stmt"/>
|
|
1594
|
-
<line num="24" count="6" type="stmt"/>
|
|
1595
1593
|
<line num="25" count="6" type="stmt"/>
|
|
1596
|
-
<line num="
|
|
1594
|
+
<line num="28" count="6" type="stmt"/>
|
|
1595
|
+
<line num="30" count="6" type="stmt"/>
|
|
1597
1596
|
<line num="32" count="6" type="stmt"/>
|
|
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="
|
|
1614
|
-
<line num="
|
|
1615
|
-
<line num="82" count="
|
|
1616
|
-
<line num="86" count="
|
|
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="
|
|
1638
|
-
<line num="
|
|
1639
|
-
<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"/>
|
|
1640
1642
|
</file>
|
|
1641
1643
|
<file name="TextModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/TextModel.ts">
|
|
1642
1644
|
<metrics statements="52" coveredstatements="25" conditionals="23" coveredconditionals="7" methods="21" coveredmethods="5"/>
|