@zajno/common 1.5.3 → 1.5.6
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 +93 -86
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +26 -26
- 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 +14 -14
- package/coverage/lcov-report/src/fields/update.ts.html +40 -19
- 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 +3 -3
- 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 +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 +1 -1
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov.info +227 -206
- package/lib/fields/update.d.ts +5 -4
- package/lib/fields/update.d.ts.map +1 -1
- package/lib/fields/update.js +13 -7
- package/lib/fields/update.js.map +1 -1
- 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/validation/validators.js +1 -1
- package/lib/validation/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/fields/update.ts +18 -11
- package/src/observingCache.ts +7 -2
- package/src/validation/__tests__/validator.test.ts +12 -0
- package/src/validation/validators.ts +1 -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="1657189381721" clover="3.2.0">
|
|
3
|
+
<project timestamp="1657189381721" name="All files">
|
|
4
|
+
<metrics statements="1599" coveredstatements="1307" conditionals="980" coveredconditionals="739" methods="475" coveredmethods="333" elements="3054" coveredelements="2379" complexity="0" loc="1599" ncloc="1599" 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"/>
|
|
@@ -917,9 +921,9 @@
|
|
|
917
921
|
</file>
|
|
918
922
|
</package>
|
|
919
923
|
<package name="src.fields">
|
|
920
|
-
<metrics statements="
|
|
924
|
+
<metrics statements="49" coveredstatements="39" conditionals="88" coveredconditionals="71" methods="11" coveredmethods="5"/>
|
|
921
925
|
<file name="update.ts" path="/Users/idudinov/projects/zajno-common-utils/src/fields/update.ts">
|
|
922
|
-
<metrics statements="
|
|
926
|
+
<metrics statements="49" coveredstatements="39" conditionals="88" coveredconditionals="71" methods="11" coveredmethods="5"/>
|
|
923
927
|
<line num="1" count="1" type="stmt"/>
|
|
924
928
|
<line num="12" count="1" type="cond" truecount="0" falsecount="1"/>
|
|
925
929
|
<line num="13" count="0" type="stmt"/>
|
|
@@ -933,39 +937,42 @@
|
|
|
933
937
|
<line num="35" count="0" type="stmt"/>
|
|
934
938
|
<line num="39" count="38" type="stmt"/>
|
|
935
939
|
<line num="40" count="1" type="stmt"/>
|
|
936
|
-
<line num="
|
|
937
|
-
<line num="
|
|
938
|
-
<line num="
|
|
939
|
-
<line num="66" count="5" type="stmt"/>
|
|
940
|
+
<line num="58" count="1" type="stmt"/>
|
|
941
|
+
<line num="63" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
942
|
+
<line num="64" count="1" type="stmt"/>
|
|
940
943
|
<line num="67" count="5" type="stmt"/>
|
|
941
|
-
<line num="
|
|
944
|
+
<line num="68" count="5" type="stmt"/>
|
|
942
945
|
<line num="72" count="5" type="cond" truecount="6" falsecount="0"/>
|
|
943
|
-
<line num="73" count="5" type="cond" truecount="
|
|
946
|
+
<line num="73" count="5" type="cond" truecount="6" falsecount="0"/>
|
|
944
947
|
<line num="74" count="5" type="cond" truecount="7" falsecount="1"/>
|
|
945
948
|
<line num="75" count="5" type="cond" truecount="7" falsecount="1"/>
|
|
946
|
-
<line num="
|
|
947
|
-
<line num="79" count="5" type="
|
|
948
|
-
<line num="80" count="
|
|
949
|
-
<line num="
|
|
949
|
+
<line num="76" count="5" type="cond" truecount="7" falsecount="1"/>
|
|
950
|
+
<line num="79" count="5" type="cond" truecount="5" falsecount="1"/>
|
|
951
|
+
<line num="80" count="5" type="stmt"/>
|
|
952
|
+
<line num="81" count="31" type="cond" truecount="2" falsecount="0"/>
|
|
950
953
|
<line num="83" count="10" type="stmt"/>
|
|
951
|
-
<line num="
|
|
954
|
+
<line num="84" count="10" type="stmt"/>
|
|
952
955
|
<line num="86" count="10" type="stmt"/>
|
|
953
|
-
<line num="
|
|
954
|
-
<line num="
|
|
955
|
-
<line num="
|
|
956
|
-
<line num="
|
|
957
|
-
<line num="
|
|
958
|
-
<line num="
|
|
959
|
-
<line num="
|
|
960
|
-
<line num="
|
|
961
|
-
<line num="
|
|
962
|
-
<line num="
|
|
963
|
-
<line num="
|
|
964
|
-
<line num="
|
|
965
|
-
<line num="
|
|
966
|
-
<line num="
|
|
967
|
-
<line num="
|
|
968
|
-
<line num="
|
|
956
|
+
<line num="87" count="10" type="stmt"/>
|
|
957
|
+
<line num="92" count="5" type="cond" truecount="6" falsecount="0"/>
|
|
958
|
+
<line num="95" count="5" type="stmt"/>
|
|
959
|
+
<line num="96" count="15" type="stmt"/>
|
|
960
|
+
<line num="97" count="12" type="stmt"/>
|
|
961
|
+
<line num="98" count="12" type="cond" truecount="2" falsecount="0"/>
|
|
962
|
+
<line num="99" count="7" type="cond" truecount="1" falsecount="1"/>
|
|
963
|
+
<line num="100" count="0" type="stmt"/>
|
|
964
|
+
<line num="102" count="7" type="stmt"/>
|
|
965
|
+
<line num="104" count="7" type="cond" truecount="1" falsecount="1"/>
|
|
966
|
+
<line num="105" count="7" type="stmt"/>
|
|
967
|
+
<line num="106" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
968
|
+
<line num="107" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
969
|
+
<line num="108" count="1" type="stmt"/>
|
|
970
|
+
<line num="109" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
971
|
+
<line num="110" count="0" type="stmt"/>
|
|
972
|
+
<line num="115" count="5" type="cond" truecount="4" falsecount="0"/>
|
|
973
|
+
<line num="116" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
974
|
+
<line num="117" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
975
|
+
<line num="120" count="5" type="stmt"/>
|
|
969
976
|
</file>
|
|
970
977
|
</package>
|
|
971
978
|
<package name="src.logger">
|
|
@@ -1390,7 +1397,7 @@
|
|
|
1390
1397
|
<line num="48" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1391
1398
|
<line num="49" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1392
1399
|
<line num="52" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
1393
|
-
<line num="53" count="
|
|
1400
|
+
<line num="53" count="805" type="cond" truecount="2" falsecount="0"/>
|
|
1394
1401
|
<line num="54" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1395
1402
|
</file>
|
|
1396
1403
|
<file name="wrappers.ts" path="/Users/idudinov/projects/zajno-common-utils/src/validation/wrappers.ts">
|