@zajno/common 1.4.14 → 1.4.17
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 +38 -22
- package/coverage/coverage-final.json +3 -2
- package/coverage/lcov-report/index.html +25 -25
- 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 +12 -12
- 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 +24 -9
- 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 +134 -0
- package/coverage/lcov-report/src/transitionObserver.ts.html +1 -1
- package/coverage/lcov-report/src/types.ts.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/validation/index.html +1 -1
- 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 +47 -11
- 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 +1 -1
- 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 +16 -16
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov-report/tempoCache.ts.html +134 -0
- package/coverage/lcov-report/timer.ts.html +200 -0
- package/coverage/lcov.info +64 -27
- package/lib/tempoCache.d.ts +10 -0
- package/lib/tempoCache.d.ts.map +1 -0
- package/lib/tempoCache.js +21 -0
- package/lib/tempoCache.js.map +1 -0
- package/lib/timeHelper.d.ts +0 -7
- package/lib/timeHelper.d.ts.map +1 -1
- package/lib/timeHelper.js +3 -19
- package/lib/timeHelper.js.map +1 -1
- package/lib/timer.d.ts +15 -0
- package/lib/timer.d.ts.map +1 -0
- package/lib/timer.js +36 -0
- package/lib/timer.js.map +1 -0
- package/lib/viewModels/LoadingModel.d.ts +2 -0
- package/lib/viewModels/LoadingModel.d.ts.map +1 -1
- package/lib/viewModels/LoadingModel.js +8 -2
- package/lib/viewModels/LoadingModel.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/tempoCache.test.ts +31 -0
- package/src/tempoCache.ts +18 -0
- package/src/timeHelper.ts +3 -18
- package/src/timer.ts +40 -0
- package/src/viewModels/LoadingModel.ts +14 -2
- package/yarn.lock +3 -3
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="1650541645781" clover="3.2.0">
|
|
3
|
+
<project timestamp="1650541645781" name="All files">
|
|
4
|
+
<metrics statements="1580" coveredstatements="1290" conditionals="958" coveredconditionals="724" methods="469" coveredmethods="329" elements="3007" coveredelements="2343" complexity="0" loc="1580" ncloc="1580" packages="9" files="50" classes="50"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="443" coveredstatements="345" conditionals="227" coveredconditionals="151" 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"/>
|
|
@@ -365,6 +365,18 @@
|
|
|
365
365
|
<line num="145" count="2" type="stmt"/>
|
|
366
366
|
<line num="154" count="8" type="stmt"/>
|
|
367
367
|
</file>
|
|
368
|
+
<file name="tempoCache.ts" path="/Users/idudinov/projects/zajno-common-utils/src/tempoCache.ts">
|
|
369
|
+
<metrics statements="9" coveredstatements="9" conditionals="2" coveredconditionals="2" methods="3" coveredmethods="3"/>
|
|
370
|
+
<line num="2" count="1" type="stmt"/>
|
|
371
|
+
<line num="4" count="1" type="stmt"/>
|
|
372
|
+
<line num="5" count="1" type="stmt"/>
|
|
373
|
+
<line num="7" count="1" type="stmt"/>
|
|
374
|
+
<line num="9" count="8" type="stmt"/>
|
|
375
|
+
<line num="12" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
376
|
+
<line num="13" count="3" type="stmt"/>
|
|
377
|
+
<line num="14" count="3" type="stmt"/>
|
|
378
|
+
<line num="16" count="8" type="stmt"/>
|
|
379
|
+
</file>
|
|
368
380
|
<file name="transitionObserver.ts" path="/Users/idudinov/projects/zajno-common-utils/src/transitionObserver.ts">
|
|
369
381
|
<metrics statements="88" coveredstatements="78" conditionals="42" coveredconditionals="33" methods="23" coveredmethods="18"/>
|
|
370
382
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -509,23 +521,23 @@
|
|
|
509
521
|
</file>
|
|
510
522
|
<file name="timeout.ts" path="/Users/idudinov/projects/zajno-common-utils/src/async/timeout.ts">
|
|
511
523
|
<metrics statements="26" coveredstatements="11" conditionals="13" coveredconditionals="3" methods="7" coveredmethods="3"/>
|
|
512
|
-
<line num="2" count="
|
|
513
|
-
<line num="3" count="
|
|
514
|
-
<line num="6" count="
|
|
515
|
-
<line num="7" count="
|
|
516
|
-
<line num="8" count="
|
|
517
|
-
<line num="9" count="
|
|
518
|
-
<line num="10" count="
|
|
519
|
-
<line num="11" count="
|
|
520
|
-
<line num="16" count="
|
|
524
|
+
<line num="2" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
525
|
+
<line num="3" count="9" type="stmt"/>
|
|
526
|
+
<line num="6" count="9" type="stmt"/>
|
|
527
|
+
<line num="7" count="9" type="stmt"/>
|
|
528
|
+
<line num="8" count="9" type="stmt"/>
|
|
529
|
+
<line num="9" count="9" type="stmt"/>
|
|
530
|
+
<line num="10" count="9" type="cond" truecount="1" falsecount="1"/>
|
|
531
|
+
<line num="11" count="9" type="stmt"/>
|
|
532
|
+
<line num="16" count="9" type="cond" truecount="1" falsecount="1"/>
|
|
521
533
|
<line num="17" count="0" type="stmt"/>
|
|
522
534
|
<line num="18" count="0" type="stmt"/>
|
|
523
535
|
<line num="19" count="0" type="stmt"/>
|
|
524
536
|
<line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
525
537
|
<line num="21" count="0" type="stmt"/>
|
|
526
538
|
<line num="24" count="0" type="stmt"/>
|
|
527
|
-
<line num="27" count="
|
|
528
|
-
<line num="32" count="
|
|
539
|
+
<line num="27" count="9" type="stmt"/>
|
|
540
|
+
<line num="32" count="3" type="stmt"/>
|
|
529
541
|
<line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
530
542
|
<line num="34" count="0" type="stmt"/>
|
|
531
543
|
<line num="37" count="0" type="stmt"/>
|
|
@@ -1394,7 +1406,7 @@
|
|
|
1394
1406
|
</file>
|
|
1395
1407
|
</package>
|
|
1396
1408
|
<package name="src.viewModels">
|
|
1397
|
-
<metrics statements="
|
|
1409
|
+
<metrics statements="324" coveredstatements="241" conditionals="102" coveredconditionals="56" methods="139" coveredmethods="87"/>
|
|
1398
1410
|
<file name="CommonModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/CommonModel.ts">
|
|
1399
1411
|
<metrics statements="19" coveredstatements="19" conditionals="8" coveredconditionals="4" methods="6" coveredmethods="6"/>
|
|
1400
1412
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -1443,15 +1455,19 @@
|
|
|
1443
1455
|
<line num="68" count="0" type="stmt"/>
|
|
1444
1456
|
</file>
|
|
1445
1457
|
<file name="LoadingModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/LoadingModel.ts">
|
|
1446
|
-
<metrics statements="
|
|
1458
|
+
<metrics statements="12" coveredstatements="9" conditionals="7" coveredconditionals="3" methods="2" coveredmethods="2"/>
|
|
1447
1459
|
<line num="1" count="1" type="stmt"/>
|
|
1448
1460
|
<line num="3" count="1" type="stmt"/>
|
|
1449
1461
|
<line num="5" count="3" type="stmt"/>
|
|
1450
|
-
<line num="
|
|
1451
|
-
<line num="
|
|
1452
|
-
<line num="
|
|
1453
|
-
<line num="
|
|
1454
|
-
<line num="
|
|
1462
|
+
<line num="12" count="1" type="cond" truecount="2" falsecount="2"/>
|
|
1463
|
+
<line num="13" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1464
|
+
<line num="14" count="0" type="stmt"/>
|
|
1465
|
+
<line num="16" count="0" type="stmt"/>
|
|
1466
|
+
<line num="19" count="1" type="stmt"/>
|
|
1467
|
+
<line num="21" count="1" type="stmt"/>
|
|
1468
|
+
<line num="22" count="1" type="stmt"/>
|
|
1469
|
+
<line num="23" count="1" type="stmt"/>
|
|
1470
|
+
<line num="25" count="1" type="stmt"/>
|
|
1455
1471
|
</file>
|
|
1456
1472
|
<file name="MultiSelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/MultiSelectModel.ts">
|
|
1457
1473
|
<metrics statements="82" coveredstatements="61" conditionals="18" coveredconditionals="8" methods="42" coveredmethods="28"/>
|