@zajno/common 1.3.3 → 1.3.7
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 +80 -25
- package/coverage/coverage-final.json +3 -2
- package/coverage/lcov-report/index.html +35 -20
- 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/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/enumHelper.ts.html +1 -1
- package/coverage/lcov-report/src/event.ts.html +1 -1
- package/coverage/lcov-report/src/fields/index.html +111 -0
- package/coverage/lcov-report/src/{viewModels/SelectViewModel.ts.html → fields/update.ts.html} +118 -178
- package/coverage/lcov-report/src/index.html +1 -1
- 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/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/FlagModel.ts.html +51 -9
- 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/Validatable.ts.html +34 -10
- package/coverage/lcov-report/src/viewModels/index.html +29 -29
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov-report/update.ts.html +374 -0
- package/coverage/lcov.info +189 -51
- package/lib/fields/update.d.ts +17 -6
- package/lib/fields/update.d.ts.map +1 -1
- package/lib/fields/update.js +29 -13
- package/lib/fields/update.js.map +1 -1
- package/lib/ident.d.ts +6 -0
- package/lib/ident.d.ts.map +1 -0
- package/lib/ident.js +3 -0
- package/lib/ident.js.map +1 -0
- package/lib/unsubscriber.d.ts +4 -0
- package/lib/unsubscriber.d.ts.map +1 -1
- package/lib/unsubscriber.js +8 -1
- package/lib/unsubscriber.js.map +1 -1
- package/lib/viewModels/FlagModel.d.ts +2 -0
- package/lib/viewModels/FlagModel.d.ts.map +1 -1
- package/lib/viewModels/FlagModel.js +18 -0
- package/lib/viewModels/FlagModel.js.map +1 -1
- package/lib/viewModels/PromptModal.d.ts.map +1 -1
- package/lib/viewModels/PromptModal.js +1 -1
- package/lib/viewModels/PromptModal.js.map +1 -1
- package/lib/viewModels/Validatable.d.ts +2 -1
- package/lib/viewModels/Validatable.d.ts.map +1 -1
- package/lib/viewModels/Validatable.js +7 -0
- package/lib/viewModels/Validatable.js.map +1 -1
- package/package.json +1 -1
- package/src/fields/__tests__/fields.update.test.ts +73 -0
- package/src/fields/update.ts +54 -20
- package/src/ident.ts +8 -0
- package/src/unsubscriber.ts +7 -0
- package/src/viewModels/FlagModel.ts +14 -0
- package/src/viewModels/PromptModal.ts +1 -1
- package/src/viewModels/Validatable.ts +8 -0
- package/coverage/lcov-report/src/viewModels/LabeledFlagModel.ts.html +0 -146
- package/coverage/lcov-report/transitionObserver.ts.html +0 -572
- package/yarn-error.log +0 -3709
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1641564748622" clover="3.2.0">
|
|
3
|
+
<project timestamp="1641564748622" name="All files">
|
|
4
|
+
<metrics statements="1182" coveredstatements="1015" conditionals="745" coveredconditionals="608" methods="350" coveredmethods="256" elements="2277" coveredelements="1879" complexity="0" loc="1182" ncloc="1182" packages="9" files="40" classes="40"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="175" coveredstatements="154" conditionals="99" coveredconditionals="82" methods="66" coveredmethods="54"/>
|
|
7
7
|
<file name="enumHelper.ts" path="/Users/idudinov/projects/zajno-common-utils/src/enumHelper.ts">
|
|
@@ -599,6 +599,49 @@
|
|
|
599
599
|
<line num="34" count="7" type="cond" truecount="18" falsecount="0"/>
|
|
600
600
|
</file>
|
|
601
601
|
</package>
|
|
602
|
+
<package name="src.fields">
|
|
603
|
+
<metrics statements="37" coveredstatements="29" conditionals="50" coveredconditionals="40" methods="11" coveredmethods="5"/>
|
|
604
|
+
<file name="update.ts" path="/Users/idudinov/projects/zajno-common-utils/src/fields/update.ts">
|
|
605
|
+
<metrics statements="37" coveredstatements="29" conditionals="50" coveredconditionals="40" methods="11" coveredmethods="5"/>
|
|
606
|
+
<line num="11" count="1" type="cond" truecount="0" falsecount="1"/>
|
|
607
|
+
<line num="12" count="0" type="stmt"/>
|
|
608
|
+
<line num="15" count="1" type="stmt"/>
|
|
609
|
+
<line num="24" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
610
|
+
<line num="26" count="0" type="stmt"/>
|
|
611
|
+
<line num="28" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
612
|
+
<line num="29" count="0" type="stmt"/>
|
|
613
|
+
<line num="30" count="0" type="stmt"/>
|
|
614
|
+
<line num="31" count="0" type="stmt"/>
|
|
615
|
+
<line num="34" count="0" type="stmt"/>
|
|
616
|
+
<line num="38" count="38" type="stmt"/>
|
|
617
|
+
<line num="39" count="1" type="stmt"/>
|
|
618
|
+
<line num="49" count="1" type="stmt"/>
|
|
619
|
+
<line num="54" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
620
|
+
<line num="55" count="1" type="stmt"/>
|
|
621
|
+
<line num="58" count="5" type="stmt"/>
|
|
622
|
+
<line num="59" count="5" type="stmt"/>
|
|
623
|
+
<line num="63" count="5" type="cond" truecount="6" falsecount="0"/>
|
|
624
|
+
<line num="64" count="5" type="cond" truecount="6" falsecount="0"/>
|
|
625
|
+
<line num="67" count="5" type="cond" truecount="5" falsecount="1"/>
|
|
626
|
+
<line num="68" count="5" type="stmt"/>
|
|
627
|
+
<line num="69" count="31" type="cond" truecount="2" falsecount="0"/>
|
|
628
|
+
<line num="70" count="10" type="stmt"/>
|
|
629
|
+
<line num="71" count="10" type="stmt"/>
|
|
630
|
+
<line num="72" count="10" type="stmt"/>
|
|
631
|
+
<line num="78" count="5" type="stmt"/>
|
|
632
|
+
<line num="79" count="15" type="stmt"/>
|
|
633
|
+
<line num="80" count="12" type="stmt"/>
|
|
634
|
+
<line num="81" count="12" type="cond" truecount="2" falsecount="0"/>
|
|
635
|
+
<line num="82" count="7" type="stmt"/>
|
|
636
|
+
<line num="83" count="7" type="stmt"/>
|
|
637
|
+
<line num="84" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
638
|
+
<line num="85" count="1" type="stmt"/>
|
|
639
|
+
<line num="89" count="5" type="cond" truecount="4" falsecount="0"/>
|
|
640
|
+
<line num="90" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
641
|
+
<line num="91" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
642
|
+
<line num="94" count="5" type="stmt"/>
|
|
643
|
+
</file>
|
|
644
|
+
</package>
|
|
602
645
|
<package name="src.logger">
|
|
603
646
|
<metrics statements="97" coveredstatements="69" conditionals="46" coveredconditionals="27" methods="35" coveredmethods="24"/>
|
|
604
647
|
<file name="batch.ts" path="/Users/idudinov/projects/zajno-common-utils/src/logger/batch.ts">
|
|
@@ -1035,9 +1078,9 @@
|
|
|
1035
1078
|
</file>
|
|
1036
1079
|
</package>
|
|
1037
1080
|
<package name="src.viewModels">
|
|
1038
|
-
<metrics statements="
|
|
1081
|
+
<metrics statements="233" coveredstatements="182" conditionals="59" coveredconditionals="35" methods="105" coveredmethods="69"/>
|
|
1039
1082
|
<file name="FlagModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/FlagModel.ts">
|
|
1040
|
-
<metrics statements="
|
|
1083
|
+
<metrics statements="20" coveredstatements="11" conditionals="1" coveredconditionals="1" methods="8" coveredmethods="3"/>
|
|
1041
1084
|
<line num="1" count="3" type="stmt"/>
|
|
1042
1085
|
<line num="15" count="3" type="stmt"/>
|
|
1043
1086
|
<line num="18" count="17" type="stmt"/>
|
|
@@ -1048,8 +1091,16 @@
|
|
|
1048
1091
|
<line num="33" count="0" type="stmt"/>
|
|
1049
1092
|
<line num="36" count="17" type="stmt"/>
|
|
1050
1093
|
<line num="37" count="0" type="stmt"/>
|
|
1051
|
-
<line num="
|
|
1052
|
-
<line num="
|
|
1094
|
+
<line num="38" count="0" type="stmt"/>
|
|
1095
|
+
<line num="39" count="0" type="stmt"/>
|
|
1096
|
+
<line num="43" count="17" type="stmt"/>
|
|
1097
|
+
<line num="44" count="0" type="stmt"/>
|
|
1098
|
+
<line num="45" count="0" type="stmt"/>
|
|
1099
|
+
<line num="46" count="0" type="stmt"/>
|
|
1100
|
+
<line num="50" count="17" type="stmt"/>
|
|
1101
|
+
<line num="51" count="0" type="stmt"/>
|
|
1102
|
+
<line num="55" count="17" type="stmt"/>
|
|
1103
|
+
<line num="56" count="0" type="stmt"/>
|
|
1053
1104
|
</file>
|
|
1054
1105
|
<file name="MultiSelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/MultiSelectModel.ts">
|
|
1055
1106
|
<metrics statements="83" coveredstatements="64" conditionals="16" coveredconditionals="7" methods="42" coveredmethods="28"/>
|
|
@@ -1215,7 +1266,7 @@
|
|
|
1215
1266
|
<line num="126" count="3" type="stmt"/>
|
|
1216
1267
|
</file>
|
|
1217
1268
|
<file name="Validatable.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/Validatable.ts">
|
|
1218
|
-
<metrics statements="
|
|
1269
|
+
<metrics statements="40" coveredstatements="25" conditionals="23" coveredconditionals="11" methods="13" coveredmethods="6"/>
|
|
1219
1270
|
<line num="1" count="2" type="stmt"/>
|
|
1220
1271
|
<line num="2" count="2" type="stmt"/>
|
|
1221
1272
|
<line num="3" count="2" type="stmt"/>
|
|
@@ -1232,26 +1283,30 @@
|
|
|
1232
1283
|
<line num="36" count="11" type="cond" truecount="5" falsecount="1"/>
|
|
1233
1284
|
<line num="37" count="11" type="cond" truecount="3" falsecount="1"/>
|
|
1234
1285
|
<line num="38" count="11" type="stmt"/>
|
|
1235
|
-
<line num="42" count="
|
|
1286
|
+
<line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1236
1287
|
<line num="43" count="0" type="stmt"/>
|
|
1237
|
-
<line num="
|
|
1238
|
-
<line num="
|
|
1239
|
-
<line num="
|
|
1240
|
-
<line num="
|
|
1241
|
-
<line num="
|
|
1288
|
+
<line num="44" count="0" type="stmt"/>
|
|
1289
|
+
<line num="46" count="0" type="stmt"/>
|
|
1290
|
+
<line num="50" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
1291
|
+
<line num="51" count="0" type="stmt"/>
|
|
1292
|
+
<line num="54" count="1" type="stmt"/>
|
|
1293
|
+
<line num="55" count="1" type="stmt"/>
|
|
1242
1294
|
<line num="56" count="1" type="stmt"/>
|
|
1243
|
-
<line num="
|
|
1244
|
-
<line num="
|
|
1245
|
-
<line num="
|
|
1246
|
-
<line num="65" count="0" type="stmt"/>
|
|
1295
|
+
<line num="60" count="0" type="stmt"/>
|
|
1296
|
+
<line num="63" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
1297
|
+
<line num="64" count="1" type="stmt"/>
|
|
1247
1298
|
<line num="66" count="0" type="stmt"/>
|
|
1248
|
-
<line num="
|
|
1249
|
-
<line num="
|
|
1250
|
-
<line num="
|
|
1251
|
-
<line num="
|
|
1252
|
-
<line num="
|
|
1253
|
-
<line num="
|
|
1254
|
-
<line num="
|
|
1299
|
+
<line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1300
|
+
<line num="69" count="1" type="stmt"/>
|
|
1301
|
+
<line num="73" count="0" type="stmt"/>
|
|
1302
|
+
<line num="74" count="0" type="stmt"/>
|
|
1303
|
+
<line num="78" count="2" type="stmt"/>
|
|
1304
|
+
<line num="79" count="2" type="stmt"/>
|
|
1305
|
+
<line num="80" count="2" type="stmt"/>
|
|
1306
|
+
<line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1307
|
+
<line num="85" count="0" type="stmt"/>
|
|
1308
|
+
<line num="88" count="0" type="stmt"/>
|
|
1309
|
+
<line num="89" count="0" type="stmt"/>
|
|
1255
1310
|
</file>
|
|
1256
1311
|
<file name="wrappers.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/wrappers.ts">
|
|
1257
1312
|
<metrics statements="19" coveredstatements="16" conditionals="0" coveredconditionals="0" methods="10" coveredmethods="7"/>
|