@zajno/common 2.0.0-beta.1 → 2.0.0
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 +66 -21
- package/coverage/coverage-final.json +3 -2
- package/coverage/lcov-report/__tests__/helpers/expect.ts.html +1 -1
- package/coverage/lcov-report/__tests__/helpers/index.html +1 -1
- package/coverage/lcov-report/__tests__/helpers/main.ts.html +1 -1
- package/coverage/lcov-report/async/arrays.ts.html +1 -1
- package/coverage/lcov-report/async/index.html +1 -1
- package/coverage/lcov-report/async/timeout.ts.html +13 -13
- package/coverage/lcov-report/dates/calc.ts.html +1 -1
- package/coverage/lcov-report/dates/convert.ts.html +1 -1
- package/coverage/lcov-report/dates/datex.ts.html +1 -1
- package/coverage/lcov-report/dates/format.ts.html +1 -1
- package/coverage/lcov-report/dates/index.html +1 -1
- package/coverage/lcov-report/dates/index.ts.html +1 -1
- package/coverage/lcov-report/dates/parse.ts.html +1 -1
- package/coverage/lcov-report/dates/period.ts.html +1 -1
- package/coverage/lcov-report/dates/shift.ts.html +1 -1
- package/coverage/lcov-report/dates/types.ts.html +1 -1
- package/coverage/lcov-report/dates/yearDate.ts.html +1 -1
- package/coverage/lcov-report/fields/index.html +1 -1
- package/coverage/lcov-report/fields/update.ts.html +1 -1
- package/coverage/lcov-report/functions/index.html +17 -17
- package/coverage/lcov-report/functions/safeCall.ts.html +13 -13
- package/coverage/lcov-report/index.html +28 -28
- package/coverage/lcov-report/lazy/index.html +1 -1
- package/coverage/lcov-report/lazy/promise.ts.html +1 -1
- package/coverage/lcov-report/lazy/singleton.ts.html +1 -1
- package/coverage/lcov-report/logger/batch.ts.html +1 -1
- package/coverage/lcov-report/logger/console.ts.html +1 -1
- package/coverage/lcov-report/logger/index.html +1 -1
- package/coverage/lcov-report/logger/index.ts.html +1 -1
- package/coverage/lcov-report/logger/named.ts.html +1 -1
- package/coverage/lcov-report/logger/proxy.ts.html +1 -1
- package/coverage/lcov-report/math/arrays.ts.html +1 -1
- package/coverage/lcov-report/math/calc.ts.html +1 -1
- package/coverage/lcov-report/math/distribution.ts.html +1 -1
- package/coverage/lcov-report/math/index.html +1 -1
- package/coverage/lcov-report/math/index.ts.html +1 -1
- package/coverage/lcov-report/observing/event.ts.html +1 -1
- package/coverage/lcov-report/observing/index.html +1 -1
- package/coverage/lcov-report/queue/index.html +18 -18
- package/coverage/lcov-report/queue/tasks.ts.html +358 -0
- package/coverage/lcov-report/src/__tests__/helpers/expect.ts.html +1 -1
- 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 +36 -21
- package/coverage/lcov-report/src/async/timeout.ts.html +59 -59
- package/coverage/lcov-report/src/cache.ts.html +97 -97
- 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 +13 -13
- package/coverage/lcov-report/src/index.html +155 -20
- package/coverage/lcov-report/src/lazy/index.html +1 -1
- package/coverage/lcov-report/src/lazy/light.ts.html +1 -1
- package/coverage/lcov-report/src/lazy/observable.ts.html +1 -1
- package/coverage/lcov-report/src/lazy/promise.ts.html +1 -1
- package/coverage/lcov-report/src/lazy/singleton.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 +277 -316
- 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 +66 -21
- 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/queue/index.html +24 -9
- package/coverage/lcov-report/src/queue/parallel.ts.html +1 -1
- package/coverage/lcov-report/src/queue/tasks.ts.html +358 -0
- 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 +2 -5
- 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 +130 -10
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov-report/structures/helpers/enum.ts.html +1 -1
- package/coverage/lcov-report/structures/helpers/index.html +1 -1
- package/coverage/lcov-report/structures/index.html +1 -1
- package/coverage/lcov-report/structures/queue/index.html +24 -9
- package/coverage/lcov-report/structures/queue/parallel.ts.html +1 -1
- package/coverage/lcov-report/structures/queue/tasks.ts.html +358 -0
- package/coverage/lcov-report/structures/tempoCache.ts.html +1 -1
- package/coverage/lcov-report/tasks.ts.html +355 -0
- package/coverage/lcov-report/types/comparator.ts.html +1 -1
- package/coverage/lcov-report/types/getter.ts.html +1 -1
- package/coverage/lcov-report/types/index.html +1 -1
- package/coverage/lcov-report/types/index.ts.html +26 -2
- package/coverage/lcov-report/validation/ValidationErrors.ts.html +1 -1
- package/coverage/lcov-report/validation/creditCard.ts.html +1 -1
- package/coverage/lcov-report/validation/helpers.ts.html +1 -1
- package/coverage/lcov-report/validation/index.html +1 -1
- package/coverage/lcov-report/validation/index.ts.html +1 -1
- package/coverage/lcov-report/validation/types.ts.html +1 -1
- package/coverage/lcov-report/validation/validators.ts.html +1 -1
- package/coverage/lcov-report/validation/wrappers.ts.html +1 -1
- package/coverage/lcov.info +112 -24
- package/lib/models/File.d.ts +10 -0
- package/lib/models/File.d.ts.map +1 -0
- package/lib/{web/breakpoints/types.js → models/File.js} +1 -1
- package/lib/models/File.js.map +1 -0
- package/lib/{abstractions/services/storage.d.ts → storage/abstractions.d.ts} +3 -2
- package/lib/storage/abstractions.d.ts.map +1 -0
- package/lib/{abstractions/services/storage.js → storage/abstractions.js} +1 -1
- package/lib/storage/abstractions.js.map +1 -0
- package/lib/storage/asyncWrapper.d.ts +10 -0
- package/lib/storage/asyncWrapper.d.ts.map +1 -0
- package/lib/storage/asyncWrapper.js +24 -0
- package/lib/storage/asyncWrapper.js.map +1 -0
- package/lib/storage/index.d.ts +1 -28
- package/lib/storage/index.d.ts.map +1 -1
- package/lib/storage/index.js +2 -53
- package/lib/storage/index.js.map +1 -1
- package/lib/storage/keyStorage.d.ts +21 -0
- package/lib/storage/keyStorage.d.ts.map +1 -0
- package/lib/storage/keyStorage.js +36 -0
- package/lib/storage/keyStorage.js.map +1 -0
- package/lib/structures/queue/tasks.d.ts +17 -0
- package/lib/structures/queue/tasks.d.ts.map +1 -0
- package/lib/structures/queue/tasks.js +76 -0
- package/lib/structures/queue/tasks.js.map +1 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/models/File.ts +14 -0
- package/src/{abstractions/services/storage.ts → storage/abstractions.ts} +3 -1
- package/src/storage/asyncWrapper.ts +24 -0
- package/src/storage/index.ts +1 -62
- package/src/storage/keyStorage.ts +40 -0
- package/src/structures/queue/__tests__/tasks.test.ts +87 -0
- package/src/structures/queue/tasks.ts +91 -0
- package/src/types/index.ts +8 -0
- package/lib/abstractions/services/storage.d.ts.map +0 -1
- package/lib/abstractions/services/storage.js.map +0 -1
- package/lib/storage/web/localStorage.d.ts +0 -13
- package/lib/storage/web/localStorage.d.ts.map +0 -1
- package/lib/storage/web/localStorage.js +0 -29
- package/lib/storage/web/localStorage.js.map +0 -1
- package/lib/storage/web/sessionStorage.d.ts +0 -13
- package/lib/storage/web/sessionStorage.d.ts.map +0 -1
- package/lib/storage/web/sessionStorage.js +0 -29
- package/lib/storage/web/sessionStorage.js.map +0 -1
- package/lib/storage/web/webStorage.d.ts +0 -9
- package/lib/storage/web/webStorage.d.ts.map +0 -1
- package/lib/storage/web/webStorage.js +0 -24
- package/lib/storage/web/webStorage.js.map +0 -1
- package/lib/web/breakpoints/index.d.ts +0 -3
- package/lib/web/breakpoints/index.d.ts.map +0 -1
- package/lib/web/breakpoints/index.js +0 -6
- package/lib/web/breakpoints/index.js.map +0 -1
- package/lib/web/breakpoints/manager.d.ts +0 -17
- package/lib/web/breakpoints/manager.d.ts.map +0 -1
- package/lib/web/breakpoints/manager.js +0 -56
- package/lib/web/breakpoints/manager.js.map +0 -1
- package/lib/web/breakpoints/rem.d.ts +0 -3
- package/lib/web/breakpoints/rem.d.ts.map +0 -1
- package/lib/web/breakpoints/rem.js +0 -22
- package/lib/web/breakpoints/rem.js.map +0 -1
- package/lib/web/breakpoints/types.d.ts +0 -22
- package/lib/web/breakpoints/types.d.ts.map +0 -1
- package/lib/web/breakpoints/types.js.map +0 -1
- package/src/storage/web/localStorage.ts +0 -35
- package/src/storage/web/sessionStorage.ts +0 -35
- package/src/storage/web/webStorage.ts +0 -29
- package/src/web/breakpoints/index.ts +0 -3
- package/src/web/breakpoints/manager.ts +0 -65
- package/src/web/breakpoints/rem.ts +0 -24
- package/src/web/breakpoints/types.ts +0 -26
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="1667317986498" clover="3.2.0">
|
|
3
|
+
<project timestamp="1667317986499" name="All files">
|
|
4
|
+
<metrics statements="1106" coveredstatements="944" conditionals="713" coveredconditionals="560" methods="284" coveredmethods="219" elements="2103" coveredelements="1723" complexity="0" loc="1106" ncloc="1106" packages="14" files="42" classes="42"/>
|
|
5
5
|
<package name="__tests__.helpers">
|
|
6
6
|
<metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
|
|
7
7
|
<file name="expect.ts" path="/Users/idudinov/projects/zajno-common-utils/src/__tests__/helpers/expect.ts">
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
</file>
|
|
48
48
|
<file name="timeout.ts" path="/Users/idudinov/projects/zajno-common-utils/src/async/timeout.ts">
|
|
49
49
|
<metrics statements="45" coveredstatements="30" conditionals="14" coveredconditionals="7" methods="14" coveredmethods="10"/>
|
|
50
|
-
<line num="2" count="
|
|
51
|
-
<line num="3" count="
|
|
52
|
-
<line num="6" count="
|
|
53
|
-
<line num="7" count="
|
|
54
|
-
<line num="8" count="
|
|
55
|
-
<line num="9" count="
|
|
56
|
-
<line num="10" count="
|
|
57
|
-
<line num="11" count="
|
|
58
|
-
<line num="16" count="
|
|
50
|
+
<line num="2" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
51
|
+
<line num="3" count="15" type="stmt"/>
|
|
52
|
+
<line num="6" count="15" type="stmt"/>
|
|
53
|
+
<line num="7" count="15" type="stmt"/>
|
|
54
|
+
<line num="8" count="15" type="stmt"/>
|
|
55
|
+
<line num="9" count="15" type="stmt"/>
|
|
56
|
+
<line num="10" count="15" type="cond" truecount="1" falsecount="0"/>
|
|
57
|
+
<line num="11" count="15" type="stmt"/>
|
|
58
|
+
<line num="16" count="15" type="cond" truecount="0" falsecount="1"/>
|
|
59
59
|
<line num="17" count="0" type="stmt"/>
|
|
60
60
|
<line num="18" count="0" type="stmt"/>
|
|
61
61
|
<line num="19" count="0" type="stmt"/>
|
|
62
62
|
<line num="20" count="0" type="cond" truecount="0" falsecount="1"/>
|
|
63
63
|
<line num="21" count="0" type="stmt"/>
|
|
64
64
|
<line num="24" count="0" type="stmt"/>
|
|
65
|
-
<line num="27" count="
|
|
66
|
-
<line num="32" count="
|
|
65
|
+
<line num="27" count="15" type="stmt"/>
|
|
66
|
+
<line num="32" count="5" type="stmt"/>
|
|
67
67
|
<line num="33" count="0" type="cond" truecount="0" falsecount="1"/>
|
|
68
68
|
<line num="34" count="0" type="stmt"/>
|
|
69
69
|
<line num="37" count="0" type="stmt"/>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<line num="42" count="0" type="stmt"/>
|
|
74
74
|
<line num="44" count="0" type="stmt"/>
|
|
75
75
|
<line num="48" count="0" type="stmt"/>
|
|
76
|
-
<line num="52" count="
|
|
76
|
+
<line num="52" count="5" type="stmt"/>
|
|
77
77
|
<line num="53" count="3" type="stmt"/>
|
|
78
78
|
<line num="55" count="3" type="stmt"/>
|
|
79
79
|
<line num="56" count="3" type="stmt"/>
|
|
@@ -517,12 +517,12 @@
|
|
|
517
517
|
</file>
|
|
518
518
|
</package>
|
|
519
519
|
<package name="functions">
|
|
520
|
-
<metrics statements="3" coveredstatements="
|
|
520
|
+
<metrics statements="3" coveredstatements="3" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
521
521
|
<file name="safeCall.ts" path="/Users/idudinov/projects/zajno-common-utils/src/functions/safeCall.ts">
|
|
522
|
-
<metrics statements="3" coveredstatements="
|
|
523
|
-
<line num="2" count="
|
|
524
|
-
<line num="3" count="
|
|
525
|
-
<line num="4" count="
|
|
522
|
+
<metrics statements="3" coveredstatements="3" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
523
|
+
<line num="2" count="2" type="stmt"/>
|
|
524
|
+
<line num="3" count="21" type="cond" truecount="1" falsecount="0"/>
|
|
525
|
+
<line num="4" count="3" type="stmt"/>
|
|
526
526
|
</file>
|
|
527
527
|
</package>
|
|
528
528
|
<package name="lazy">
|
|
@@ -1017,7 +1017,7 @@
|
|
|
1017
1017
|
</file>
|
|
1018
1018
|
</package>
|
|
1019
1019
|
<package name="structures.queue">
|
|
1020
|
-
<metrics statements="
|
|
1020
|
+
<metrics statements="114" coveredstatements="91" conditionals="73" coveredconditionals="35" methods="25" coveredmethods="18"/>
|
|
1021
1021
|
<file name="parallel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/structures/queue/parallel.ts">
|
|
1022
1022
|
<metrics statements="72" coveredstatements="56" conditionals="54" coveredconditionals="24" methods="16" coveredmethods="10"/>
|
|
1023
1023
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -1093,6 +1093,51 @@
|
|
|
1093
1093
|
<line num="138" count="0" type="cond" truecount="0" falsecount="6"/>
|
|
1094
1094
|
<line num="139" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1095
1095
|
</file>
|
|
1096
|
+
<file name="tasks.ts" path="/Users/idudinov/projects/zajno-common-utils/src/structures/queue/tasks.ts">
|
|
1097
|
+
<metrics statements="42" coveredstatements="35" conditionals="19" coveredconditionals="11" methods="9" coveredmethods="8"/>
|
|
1098
|
+
<line num="11" count="1" type="stmt"/>
|
|
1099
|
+
<line num="13" count="6" type="stmt"/>
|
|
1100
|
+
<line num="14" count="6" type="stmt"/>
|
|
1101
|
+
<line num="15" count="6" type="stmt"/>
|
|
1102
|
+
<line num="17" count="6" type="stmt"/>
|
|
1103
|
+
<line num="18" count="6" type="cond" truecount="3" falsecount="0"/>
|
|
1104
|
+
<line num="19" count="2" type="stmt"/>
|
|
1105
|
+
<line num="23" count="9" type="stmt"/>
|
|
1106
|
+
<line num="24" count="6" type="stmt"/>
|
|
1107
|
+
<line num="27" count="0" type="stmt"/>
|
|
1108
|
+
<line num="28" count="0" type="stmt"/>
|
|
1109
|
+
<line num="32" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
1110
|
+
<line num="33" count="1" type="stmt"/>
|
|
1111
|
+
<line num="36" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
1112
|
+
<line num="38" count="2" type="stmt"/>
|
|
1113
|
+
<line num="44" count="2" type="stmt"/>
|
|
1114
|
+
<line num="45" count="2" type="stmt"/>
|
|
1115
|
+
<line num="46" count="2" type="stmt"/>
|
|
1116
|
+
<line num="47" count="2" type="stmt"/>
|
|
1117
|
+
<line num="48" count="2" type="stmt"/>
|
|
1118
|
+
<line num="49" count="2" type="stmt"/>
|
|
1119
|
+
<line num="51" count="0" type="stmt"/>
|
|
1120
|
+
<line num="52" count="0" type="stmt"/>
|
|
1121
|
+
<line num="57" count="2" type="stmt"/>
|
|
1122
|
+
<line num="58" count="2" type="stmt"/>
|
|
1123
|
+
<line num="61" count="2" type="stmt"/>
|
|
1124
|
+
<line num="64" count="6" type="stmt"/>
|
|
1125
|
+
<line num="65" count="4" type="stmt"/>
|
|
1126
|
+
<line num="66" count="4" type="stmt"/>
|
|
1127
|
+
<line num="67" count="4" type="stmt"/>
|
|
1128
|
+
<line num="68" count="4" type="stmt"/>
|
|
1129
|
+
<line num="70" count="0" type="cond" truecount="0" falsecount="7"/>
|
|
1130
|
+
<line num="71" count="0" type="stmt"/>
|
|
1131
|
+
<line num="73" count="4" type="stmt"/>
|
|
1132
|
+
<line num="74" count="4" type="stmt"/>
|
|
1133
|
+
<line num="78" count="6" type="stmt"/>
|
|
1134
|
+
<line num="79" count="4" type="cond" truecount="3" falsecount="0"/>
|
|
1135
|
+
<line num="80" count="2" type="stmt"/>
|
|
1136
|
+
<line num="83" count="2" type="stmt"/>
|
|
1137
|
+
<line num="84" count="2" type="cond" truecount="3" falsecount="1"/>
|
|
1138
|
+
<line num="85" count="0" type="stmt"/>
|
|
1139
|
+
<line num="88" count="2" type="stmt"/>
|
|
1140
|
+
</file>
|
|
1096
1141
|
</package>
|
|
1097
1142
|
<package name="types">
|
|
1098
1143
|
<metrics statements="12" coveredstatements="11" conditionals="6" coveredconditionals="6" methods="4" coveredmethods="4"/>
|