@zajno/common 1.5.1 → 1.5.4
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 +102 -90
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/async/index.html +1 -1
- package/coverage/lcov-report/async/timeout.ts.html +12 -12
- package/coverage/lcov-report/index.html +29 -29
- 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 +10 -10
- 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 +19 -19
- 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 +27 -12
- 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 +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 +106 -34
- package/coverage/lcov-report/src/viewModels/MultiSelectModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/NumberModel.ts.html +13 -13
- 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 +19 -19
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov-report/validation/index.html +1 -1
- package/coverage/lcov-report/validation/index.ts.html +6 -6
- package/coverage/lcov-report/viewModels/CommonModel.ts.html +1 -1
- package/coverage/lcov-report/viewModels/LoadingModel.ts.html +129 -21
- package/coverage/lcov-report/viewModels/SelectModel.ts.html +54 -21
- package/coverage/lcov-report/viewModels/TextModel.ts.html +1 -1
- package/coverage/lcov-report/viewModels/index.html +23 -83
- package/coverage/lcov.info +193 -164
- package/lib/observingCache.d.ts +1 -1
- package/lib/observingCache.d.ts.map +1 -1
- package/lib/observingCache.js +8 -2
- package/lib/observingCache.js.map +1 -1
- 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/viewModels/LoadingModel.d.ts +12 -3
- package/lib/viewModels/LoadingModel.d.ts.map +1 -1
- package/lib/viewModels/LoadingModel.js +33 -16
- package/lib/viewModels/LoadingModel.js.map +1 -1
- package/lib/viewModels/types.d.ts +4 -1
- package/lib/viewModels/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/observingCache.ts +7 -2
- package/src/services/storage/index.ts +17 -1
- package/src/viewModels/LoadingModel.ts +41 -17
- package/src/viewModels/__tests__/common.test.ts +27 -8
- package/src/viewModels/types.ts +5 -1
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="1654842239776" clover="3.2.0">
|
|
3
|
+
<project timestamp="1654842239776" name="All files">
|
|
4
|
+
<metrics statements="1596" coveredstatements="1305" conditionals="970" coveredconditionals="731" methods="475" coveredmethods="333" elements="3041" coveredelements="2369" complexity="0" loc="1596" ncloc="1596" packages="9" files="50" classes="50"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="447" coveredstatements="347" conditionals="229" coveredconditionals="152" methods="144" 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"/>
|
|
@@ -295,75 +295,79 @@
|
|
|
295
295
|
<line num="103" count="2" type="stmt"/>
|
|
296
296
|
</file>
|
|
297
297
|
<file name="observingCache.ts" path="/Users/idudinov/projects/zajno-common-utils/src/observingCache.ts">
|
|
298
|
-
<metrics statements="
|
|
298
|
+
<metrics statements="72" coveredstatements="47" conditionals="28" coveredconditionals="16" methods="22" coveredmethods="11"/>
|
|
299
299
|
<line num="1" count="1" type="stmt"/>
|
|
300
300
|
<line num="2" count="1" type="stmt"/>
|
|
301
301
|
<line num="3" count="1" type="stmt"/>
|
|
302
302
|
<line num="4" count="1" type="stmt"/>
|
|
303
|
-
<line num="
|
|
304
|
-
<line num="
|
|
303
|
+
<line num="6" count="1" type="stmt"/>
|
|
304
|
+
<line num="17" count="1" type="stmt"/>
|
|
305
305
|
<line num="22" count="2" type="stmt"/>
|
|
306
|
-
<line num="
|
|
307
|
-
<line num="
|
|
306
|
+
<line num="23" count="2" type="stmt"/>
|
|
307
|
+
<line num="25" count="2" type="stmt"/>
|
|
308
308
|
<line num="27" count="2" type="stmt"/>
|
|
309
|
-
<line num="
|
|
309
|
+
<line num="28" count="2" type="stmt"/>
|
|
310
310
|
<line num="30" count="2" type="stmt"/>
|
|
311
|
-
<line num="
|
|
312
|
-
<line num="
|
|
311
|
+
<line num="31" count="2" type="stmt"/>
|
|
312
|
+
<line num="33" count="2" type="stmt"/>
|
|
313
313
|
<line num="36" count="0" type="stmt"/>
|
|
314
|
-
<line num="
|
|
315
|
-
<line num="40" count="1" type="
|
|
316
|
-
<line num="41" count="
|
|
317
|
-
<line num="
|
|
314
|
+
<line num="37" count="0" type="stmt"/>
|
|
315
|
+
<line num="40" count="1" type="stmt"/>
|
|
316
|
+
<line num="41" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
317
|
+
<line num="42" count="0" type="stmt"/>
|
|
318
318
|
<line num="44" count="1" type="stmt"/>
|
|
319
319
|
<line num="45" count="1" type="stmt"/>
|
|
320
|
-
<line num="
|
|
321
|
-
<line num="
|
|
320
|
+
<line num="46" count="1" type="stmt"/>
|
|
321
|
+
<line num="49" count="1" type="stmt"/>
|
|
322
322
|
<line num="53" count="0" type="stmt"/>
|
|
323
323
|
<line num="54" count="0" type="stmt"/>
|
|
324
|
-
<line num="
|
|
325
|
-
<line num="
|
|
326
|
-
<line num="
|
|
327
|
-
<line num="67" count="
|
|
328
|
-
<line num="
|
|
329
|
-
<line num="
|
|
330
|
-
<line num="
|
|
331
|
-
<line num="
|
|
324
|
+
<line num="55" count="0" type="stmt"/>
|
|
325
|
+
<line num="59" count="0" type="stmt"/>
|
|
326
|
+
<line num="63" count="0" type="stmt"/>
|
|
327
|
+
<line num="67" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
328
|
+
<line num="68" count="0" type="stmt"/>
|
|
329
|
+
<line num="71" count="2" type="stmt"/>
|
|
330
|
+
<line num="73" count="2" type="cond" truecount="4" falsecount="0"/>
|
|
331
|
+
<line num="75" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
332
332
|
<line num="77" count="0" type="stmt"/>
|
|
333
|
-
<line num="
|
|
334
|
-
<line num="
|
|
335
|
-
<line num="
|
|
336
|
-
<line num="
|
|
337
|
-
<line num="
|
|
333
|
+
<line num="78" count="0" type="stmt"/>
|
|
334
|
+
<line num="79" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
335
|
+
<line num="80" count="0" type="stmt"/>
|
|
336
|
+
<line num="82" count="0" type="stmt"/>
|
|
337
|
+
<line num="86" count="2" type="stmt"/>
|
|
338
|
+
<line num="89" count="2" type="stmt"/>
|
|
338
339
|
<line num="90" count="0" type="stmt"/>
|
|
339
340
|
<line num="93" count="2" type="stmt"/>
|
|
340
|
-
<line num="94" count="
|
|
341
|
-
<line num="
|
|
342
|
-
<line num="
|
|
343
|
-
<line num="99" count="
|
|
344
|
-
<line num="100" count="2" type="stmt"/>
|
|
341
|
+
<line num="94" count="0" type="stmt"/>
|
|
342
|
+
<line num="95" count="0" type="stmt"/>
|
|
343
|
+
<line num="98" count="2" type="stmt"/>
|
|
344
|
+
<line num="99" count="2" type="stmt"/>
|
|
345
345
|
<line num="101" count="2" type="stmt"/>
|
|
346
|
-
<line num="
|
|
347
|
-
<line num="
|
|
348
|
-
<line num="
|
|
349
|
-
<line num="
|
|
350
|
-
<line num="
|
|
351
|
-
<line num="
|
|
352
|
-
<line num="
|
|
353
|
-
<line num="
|
|
354
|
-
<line num="
|
|
355
|
-
<line num="
|
|
356
|
-
<line num="
|
|
357
|
-
<line num="
|
|
358
|
-
<line num="
|
|
359
|
-
<line num="
|
|
360
|
-
<line num="131" count="
|
|
346
|
+
<line num="102" count="2" type="stmt"/>
|
|
347
|
+
<line num="104" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
348
|
+
<line num="105" count="2" type="stmt"/>
|
|
349
|
+
<line num="106" count="2" type="stmt"/>
|
|
350
|
+
<line num="108" count="1" type="stmt"/>
|
|
351
|
+
<line num="112" count="2" type="stmt"/>
|
|
352
|
+
<line num="113" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
353
|
+
<line num="115" count="1" type="stmt"/>
|
|
354
|
+
<line num="117" count="1" type="stmt"/>
|
|
355
|
+
<line num="118" count="1" type="stmt"/>
|
|
356
|
+
<line num="124" count="2" type="stmt"/>
|
|
357
|
+
<line num="125" count="0" type="stmt"/>
|
|
358
|
+
<line num="126" count="0" type="stmt"/>
|
|
359
|
+
<line num="130" count="2" type="stmt"/>
|
|
360
|
+
<line num="131" count="1" type="cond" truecount="2" falsecount="2"/>
|
|
361
361
|
<line num="132" count="0" type="stmt"/>
|
|
362
|
-
<line num="
|
|
363
|
-
<line num="
|
|
364
|
-
<line num="
|
|
365
|
-
<line num="
|
|
366
|
-
<line num="
|
|
362
|
+
<line num="133" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
363
|
+
<line num="134" count="0" type="stmt"/>
|
|
364
|
+
<line num="136" count="0" type="stmt"/>
|
|
365
|
+
<line num="137" count="0" type="stmt"/>
|
|
366
|
+
<line num="141" count="1" type="stmt"/>
|
|
367
|
+
<line num="146" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
368
|
+
<line num="147" count="0" type="stmt"/>
|
|
369
|
+
<line num="150" count="2" type="stmt"/>
|
|
370
|
+
<line num="159" count="8" type="stmt"/>
|
|
367
371
|
</file>
|
|
368
372
|
<file name="tempoCache.ts" path="/Users/idudinov/projects/zajno-common-utils/src/tempoCache.ts">
|
|
369
373
|
<metrics statements="9" coveredstatements="9" conditionals="2" coveredconditionals="2" methods="3" coveredmethods="3"/>
|
|
@@ -522,21 +526,21 @@
|
|
|
522
526
|
<file name="timeout.ts" path="/Users/idudinov/projects/zajno-common-utils/src/async/timeout.ts">
|
|
523
527
|
<metrics statements="26" coveredstatements="11" conditionals="13" coveredconditionals="3" methods="7" coveredmethods="3"/>
|
|
524
528
|
<line num="2" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
525
|
-
<line num="3" count="
|
|
526
|
-
<line num="6" count="
|
|
527
|
-
<line num="7" count="
|
|
528
|
-
<line num="8" count="
|
|
529
|
-
<line num="9" count="
|
|
530
|
-
<line num="10" count="
|
|
531
|
-
<line num="11" count="
|
|
532
|
-
<line num="16" count="
|
|
529
|
+
<line num="3" count="10" type="stmt"/>
|
|
530
|
+
<line num="6" count="10" type="stmt"/>
|
|
531
|
+
<line num="7" count="10" type="stmt"/>
|
|
532
|
+
<line num="8" count="10" type="stmt"/>
|
|
533
|
+
<line num="9" count="10" type="stmt"/>
|
|
534
|
+
<line num="10" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
535
|
+
<line num="11" count="10" type="stmt"/>
|
|
536
|
+
<line num="16" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
533
537
|
<line num="17" count="0" type="stmt"/>
|
|
534
538
|
<line num="18" count="0" type="stmt"/>
|
|
535
539
|
<line num="19" count="0" type="stmt"/>
|
|
536
540
|
<line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
537
541
|
<line num="21" count="0" type="stmt"/>
|
|
538
542
|
<line num="24" count="0" type="stmt"/>
|
|
539
|
-
<line num="27" count="
|
|
543
|
+
<line num="27" count="10" type="stmt"/>
|
|
540
544
|
<line num="32" count="3" type="stmt"/>
|
|
541
545
|
<line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
542
546
|
<line num="34" count="0" type="stmt"/>
|
|
@@ -1408,7 +1412,7 @@
|
|
|
1408
1412
|
</file>
|
|
1409
1413
|
</package>
|
|
1410
1414
|
<package name="src.viewModels">
|
|
1411
|
-
<metrics statements="
|
|
1415
|
+
<metrics statements="334" coveredstatements="254" conditionals="105" coveredconditionals="62" methods="144" coveredmethods="91"/>
|
|
1412
1416
|
<file name="CommonModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/CommonModel.ts">
|
|
1413
1417
|
<metrics statements="19" coveredstatements="19" conditionals="8" coveredconditionals="4" methods="6" coveredmethods="6"/>
|
|
1414
1418
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -1457,19 +1461,27 @@
|
|
|
1457
1461
|
<line num="68" count="0" type="stmt"/>
|
|
1458
1462
|
</file>
|
|
1459
1463
|
<file name="LoadingModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/LoadingModel.ts">
|
|
1460
|
-
<metrics statements="
|
|
1464
|
+
<metrics statements="20" coveredstatements="20" conditionals="10" coveredconditionals="9" methods="7" coveredmethods="6"/>
|
|
1461
1465
|
<line num="1" count="1" type="stmt"/>
|
|
1462
|
-
<line num="
|
|
1463
|
-
<line num="
|
|
1464
|
-
<line num="
|
|
1465
|
-
<line num="
|
|
1466
|
-
<line num="
|
|
1467
|
-
<line num="
|
|
1468
|
-
<line num="
|
|
1469
|
-
<line num="
|
|
1470
|
-
<line num="
|
|
1471
|
-
<line num="
|
|
1472
|
-
<line num="
|
|
1466
|
+
<line num="4" count="1" type="stmt"/>
|
|
1467
|
+
<line num="6" count="2" type="stmt"/>
|
|
1468
|
+
<line num="8" count="12" type="stmt"/>
|
|
1469
|
+
<line num="10" count="5" type="stmt"/>
|
|
1470
|
+
<line num="12" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
1471
|
+
<line num="13" count="2" type="stmt"/>
|
|
1472
|
+
<line num="15" count="2" type="stmt"/>
|
|
1473
|
+
<line num="25" count="4" type="stmt"/>
|
|
1474
|
+
<line num="28" count="2" type="stmt"/>
|
|
1475
|
+
<line num="36" count="1" type="cond" truecount="0" falsecount="1"/>
|
|
1476
|
+
<line num="37" count="4" type="cond" truecount="4" falsecount="0"/>
|
|
1477
|
+
<line num="38" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
1478
|
+
<line num="39" count="1" type="stmt"/>
|
|
1479
|
+
<line num="41" count="1" type="stmt"/>
|
|
1480
|
+
<line num="44" count="2" type="stmt"/>
|
|
1481
|
+
<line num="46" count="2" type="stmt"/>
|
|
1482
|
+
<line num="47" count="2" type="stmt"/>
|
|
1483
|
+
<line num="48" count="2" type="stmt"/>
|
|
1484
|
+
<line num="50" count="2" type="stmt"/>
|
|
1473
1485
|
</file>
|
|
1474
1486
|
<file name="MultiSelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/MultiSelectModel.ts">
|
|
1475
1487
|
<metrics statements="82" coveredstatements="61" conditionals="18" coveredconditionals="8" methods="42" coveredmethods="28"/>
|
|
@@ -1560,20 +1572,20 @@
|
|
|
1560
1572
|
<metrics statements="17" coveredstatements="15" conditionals="3" coveredconditionals="3" methods="8" coveredmethods="6"/>
|
|
1561
1573
|
<line num="1" count="3" type="stmt"/>
|
|
1562
1574
|
<line num="9" count="3" type="stmt"/>
|
|
1563
|
-
<line num="12" count="
|
|
1564
|
-
<line num="14" count="
|
|
1565
|
-
<line num="17" count="
|
|
1566
|
-
<line num="24" count="
|
|
1567
|
-
<line num="25" count="
|
|
1568
|
-
<line num="28" count="
|
|
1569
|
-
<line num="29" count="
|
|
1570
|
-
<line num="32" count="
|
|
1571
|
-
<line num="33" count="
|
|
1575
|
+
<line num="12" count="9" type="stmt"/>
|
|
1576
|
+
<line num="14" count="9" type="stmt"/>
|
|
1577
|
+
<line num="17" count="9" type="stmt"/>
|
|
1578
|
+
<line num="24" count="9" type="stmt"/>
|
|
1579
|
+
<line num="25" count="9" type="stmt"/>
|
|
1580
|
+
<line num="28" count="23" type="stmt"/>
|
|
1581
|
+
<line num="29" count="10" type="stmt"/>
|
|
1582
|
+
<line num="32" count="9" type="stmt"/>
|
|
1583
|
+
<line num="33" count="12" type="stmt"/>
|
|
1572
1584
|
<line num="36" count="0" type="stmt"/>
|
|
1573
|
-
<line num="39" count="
|
|
1585
|
+
<line num="39" count="9" type="stmt"/>
|
|
1574
1586
|
<line num="40" count="0" type="stmt"/>
|
|
1575
|
-
<line num="44" count="
|
|
1576
|
-
<line num="47" count="
|
|
1587
|
+
<line num="44" count="9" type="cond" truecount="1" falsecount="0"/>
|
|
1588
|
+
<line num="47" count="9" type="cond" truecount="1" falsecount="0"/>
|
|
1577
1589
|
<line num="50" count="3" type="stmt"/>
|
|
1578
1590
|
</file>
|
|
1579
1591
|
<file name="SelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/SelectModel.ts">
|