@featurevisor/sdk 0.47.1 → 0.47.3
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/.eslintcache +1 -1
- package/CHANGELOG.md +16 -0
- package/coverage/clover.xml +57 -57
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/bucket.ts.html +1 -1
- package/coverage/lcov-report/conditions.ts.html +11 -11
- package/coverage/lcov-report/datafileReader.ts.html +44 -44
- package/coverage/lcov-report/emitter.ts.html +1 -1
- package/coverage/lcov-report/feature.ts.html +1 -1
- package/coverage/lcov-report/index.html +31 -31
- package/coverage/lcov-report/instance.ts.html +1 -1
- package/coverage/lcov-report/logger.ts.html +1 -1
- package/coverage/lcov-report/segments.ts.html +38 -38
- package/coverage/lcov.info +102 -102
- package/dist/index.js.gz +0 -0
- package/lib/datafileReader.spec.d.ts +1 -0
- package/package.json +2 -2
- package/src/datafileReader.spec.ts +89 -0
- package/src/segments.spec.ts +185 -0
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/conditions.spec.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/conditions.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/datafileReader.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/
|
|
1
|
+
[{"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/conditions.spec.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/conditions.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/datafileReader.spec.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/datafileReader.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/emitter.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/feature.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/index.spec.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/index.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/instance.spec.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/instance.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/logger.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/segments.spec.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/sdk/src/segments.ts":"15"},{"size":1061,"mtime":1694890438111,"results":"16","hashOfConfig":"17"},{"size":439,"mtime":1694890438111,"results":"18","hashOfConfig":"17"},{"size":23553,"mtime":1694890438111,"results":"19","hashOfConfig":"17"},{"size":3787,"mtime":1694890438111,"results":"20","hashOfConfig":"17"},{"size":2451,"mtime":1694890438111,"results":"21","hashOfConfig":"17"},{"size":1694,"mtime":1694890438111,"results":"22","hashOfConfig":"17"},{"size":1218,"mtime":1694890438111,"results":"23","hashOfConfig":"17"},{"size":2304,"mtime":1694890438111,"results":"24","hashOfConfig":"17"},{"size":119,"mtime":1694890438111,"results":"25","hashOfConfig":"17"},{"size":110,"mtime":1694890438111,"results":"26","hashOfConfig":"17"},{"size":22418,"mtime":1694890438111,"results":"27","hashOfConfig":"17"},{"size":34153,"mtime":1694890438111,"results":"28","hashOfConfig":"17"},{"size":2119,"mtime":1694890438111,"results":"29","hashOfConfig":"17"},{"size":9939,"mtime":1694890438115,"results":"30","hashOfConfig":"17"},{"size":1686,"mtime":1694890438115,"results":"31","hashOfConfig":"17"},{"filePath":"32","messages":"33","suppressedMessages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"i0rsua",{"filePath":"35","messages":"36","suppressedMessages":"37","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","suppressedMessages":"40","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","suppressedMessages":"43","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","suppressedMessages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","suppressedMessages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","suppressedMessages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","suppressedMessages":"55","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","suppressedMessages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","suppressedMessages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/conditions.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/conditions.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/datafileReader.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/datafileReader.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/emitter.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/feature.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/index.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/instance.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/instance.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/logger.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/segments.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/sdk/src/segments.ts",[],[]]
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.47.3](https://github.com/featurevisor/featurevisor/compare/v0.47.2...v0.47.3) (2023-09-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @featurevisor/sdk
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.47.2](https://github.com/featurevisor/featurevisor/compare/v0.47.1...v0.47.2) (2023-09-16)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @featurevisor/sdk
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.47.1](https://github.com/featurevisor/featurevisor/compare/v0.47.0...v0.47.1) (2023-09-12)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @featurevisor/sdk
|
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="595" coveredstatements="
|
|
2
|
+
<coverage generated="1694890626936" clover="3.2.0">
|
|
3
|
+
<project timestamp="1694890626936" name="All files">
|
|
4
|
+
<metrics statements="595" coveredstatements="443" conditionals="328" coveredconditionals="223" methods="98" coveredmethods="81" elements="1021" coveredelements="747" complexity="0" loc="595" ncloc="595" packages="1" files="8" classes="8"/>
|
|
5
5
|
<file name="bucket.ts" path="/home/runner/work/featurevisor/featurevisor/packages/sdk/src/bucket.ts">
|
|
6
6
|
<metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
7
7
|
<line num="1" count="2" type="stmt"/>
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<metrics statements="64" coveredstatements="62" conditionals="65" coveredconditionals="64" methods="6" coveredmethods="6"/>
|
|
18
18
|
<line num="1" count="3" type="stmt"/>
|
|
19
19
|
<line num="5" count="3" type="stmt"/>
|
|
20
|
-
<line num="6" count="
|
|
21
|
-
<line num="8" count="
|
|
22
|
-
<line num="9" count="
|
|
20
|
+
<line num="6" count="174" type="stmt"/>
|
|
21
|
+
<line num="8" count="174" type="cond" truecount="2" falsecount="0"/>
|
|
22
|
+
<line num="9" count="119" type="stmt"/>
|
|
23
23
|
<line num="10" count="55" type="cond" truecount="2" falsecount="0"/>
|
|
24
24
|
<line num="11" count="2" type="stmt"/>
|
|
25
25
|
<line num="12" count="53" type="cond" truecount="4" falsecount="0"/>
|
|
@@ -67,45 +67,45 @@
|
|
|
67
67
|
<line num="68" count="4" type="stmt"/>
|
|
68
68
|
<line num="72" count="0" type="stmt"/>
|
|
69
69
|
<line num="75" count="3" type="stmt"/>
|
|
70
|
-
<line num="79" count="
|
|
71
|
-
<line num="80" count="
|
|
72
|
-
<line num="83" count="
|
|
70
|
+
<line num="79" count="361" type="cond" truecount="1" falsecount="0"/>
|
|
71
|
+
<line num="80" count="174" type="stmt"/>
|
|
72
|
+
<line num="83" count="187" type="cond" truecount="3" falsecount="0"/>
|
|
73
73
|
<line num="84" count="37" type="stmt"/>
|
|
74
|
-
<line num="87" count="
|
|
74
|
+
<line num="87" count="164" type="cond" truecount="3" falsecount="0"/>
|
|
75
75
|
<line num="88" count="23" type="stmt"/>
|
|
76
|
-
<line num="91" count="
|
|
76
|
+
<line num="91" count="150" type="cond" truecount="3" falsecount="0"/>
|
|
77
77
|
<line num="92" count="6" type="stmt"/>
|
|
78
78
|
<line num="94" count="9" type="stmt"/>
|
|
79
|
-
<line num="103" count="
|
|
80
|
-
<line num="104" count="
|
|
79
|
+
<line num="103" count="144" type="cond" truecount="1" falsecount="0"/>
|
|
80
|
+
<line num="104" count="147" type="stmt"/>
|
|
81
81
|
<line num="107" count="0" type="stmt"/>
|
|
82
82
|
</file>
|
|
83
83
|
<file name="datafileReader.ts" path="/home/runner/work/featurevisor/featurevisor/packages/sdk/src/datafileReader.ts">
|
|
84
|
-
<metrics statements="24" coveredstatements="
|
|
85
|
-
<line num="11" count="
|
|
86
|
-
<line num="12" count="
|
|
87
|
-
<line num="13" count="
|
|
88
|
-
<line num="14" count="
|
|
84
|
+
<metrics statements="24" coveredstatements="23" conditionals="5" coveredconditionals="5" methods="11" coveredmethods="11"/>
|
|
85
|
+
<line num="11" count="3" type="stmt"/>
|
|
86
|
+
<line num="12" count="55" type="cond" truecount="3" falsecount="0"/>
|
|
87
|
+
<line num="13" count="1" type="stmt"/>
|
|
88
|
+
<line num="14" count="1" type="stmt"/>
|
|
89
89
|
<line num="16" count="0" type="stmt"/>
|
|
90
|
-
<line num="20" count="
|
|
91
|
-
<line num="23" count="
|
|
92
|
-
<line num="31" count="
|
|
93
|
-
<line num="32" count="
|
|
94
|
-
<line num="33" count="
|
|
95
|
-
<line num="34" count="
|
|
96
|
-
<line num="35" count="
|
|
97
|
-
<line num="39" count="
|
|
98
|
-
<line num="43" count="
|
|
99
|
-
<line num="47" count="
|
|
100
|
-
<line num="51" count="
|
|
101
|
-
<line num="55" count="
|
|
102
|
-
<line num="57" count="
|
|
103
|
-
<line num="58" count="
|
|
104
|
-
<line num="61" count="
|
|
105
|
-
<line num="65" count="
|
|
106
|
-
<line num="67" count="
|
|
107
|
-
<line num="68" count="
|
|
108
|
-
<line num="71" count="
|
|
90
|
+
<line num="20" count="55" type="stmt"/>
|
|
91
|
+
<line num="23" count="3" type="stmt"/>
|
|
92
|
+
<line num="31" count="23" type="stmt"/>
|
|
93
|
+
<line num="32" count="23" type="stmt"/>
|
|
94
|
+
<line num="33" count="23" type="stmt"/>
|
|
95
|
+
<line num="34" count="23" type="stmt"/>
|
|
96
|
+
<line num="35" count="23" type="stmt"/>
|
|
97
|
+
<line num="39" count="2" type="stmt"/>
|
|
98
|
+
<line num="43" count="1" type="stmt"/>
|
|
99
|
+
<line num="47" count="2" type="stmt"/>
|
|
100
|
+
<line num="51" count="1" type="stmt"/>
|
|
101
|
+
<line num="55" count="177" type="stmt"/>
|
|
102
|
+
<line num="57" count="56" type="cond" truecount="1" falsecount="0"/>
|
|
103
|
+
<line num="58" count="1" type="stmt"/>
|
|
104
|
+
<line num="61" count="55" type="stmt"/>
|
|
105
|
+
<line num="65" count="70" type="stmt"/>
|
|
106
|
+
<line num="67" count="64" type="cond" truecount="1" falsecount="0"/>
|
|
107
|
+
<line num="68" count="1" type="stmt"/>
|
|
108
|
+
<line num="71" count="63" type="stmt"/>
|
|
109
109
|
</file>
|
|
110
110
|
<file name="emitter.ts" path="/home/runner/work/featurevisor/featurevisor/packages/sdk/src/emitter.ts">
|
|
111
111
|
<metrics statements="18" coveredstatements="13" conditionals="6" coveredconditionals="3" methods="7" coveredmethods="5"/>
|
|
@@ -594,31 +594,31 @@
|
|
|
594
594
|
<line num="89" count="17" type="stmt"/>
|
|
595
595
|
</file>
|
|
596
596
|
<file name="segments.ts" path="/home/runner/work/featurevisor/featurevisor/packages/sdk/src/segments.ts">
|
|
597
|
-
<metrics statements="25" coveredstatements="
|
|
597
|
+
<metrics statements="25" coveredstatements="23" conditionals="14" coveredconditionals="14" methods="6" coveredmethods="6"/>
|
|
598
598
|
<line num="2" count="2" type="stmt"/>
|
|
599
599
|
<line num="5" count="2" type="stmt"/>
|
|
600
|
-
<line num="6" count="
|
|
600
|
+
<line num="6" count="53" type="stmt"/>
|
|
601
601
|
<line num="9" count="2" type="stmt"/>
|
|
602
|
-
<line num="14" count="
|
|
602
|
+
<line num="14" count="164" type="cond" truecount="1" falsecount="0"/>
|
|
603
603
|
<line num="15" count="63" type="stmt"/>
|
|
604
|
-
<line num="18" count="
|
|
605
|
-
<line num="19" count="
|
|
606
|
-
<line num="21" count="
|
|
607
|
-
<line num="22" count="
|
|
604
|
+
<line num="18" count="101" type="cond" truecount="1" falsecount="0"/>
|
|
605
|
+
<line num="19" count="53" type="stmt"/>
|
|
606
|
+
<line num="21" count="53" type="cond" truecount="1" falsecount="0"/>
|
|
607
|
+
<line num="22" count="53" type="stmt"/>
|
|
608
608
|
<line num="25" count="0" type="stmt"/>
|
|
609
|
-
<line num="28" count="
|
|
610
|
-
<line num="29" count="
|
|
611
|
-
<line num="30" count="
|
|
612
|
-
<line num="31" count="
|
|
613
|
-
<line num="35" count="
|
|
614
|
-
<line num="36" count="
|
|
615
|
-
<line num="37" count="
|
|
616
|
-
<line num="41" count="
|
|
617
|
-
<line num="42" count="
|
|
618
|
-
<line num="44" count="
|
|
619
|
-
<line num="49" count="
|
|
620
|
-
<line num="50" count="
|
|
621
|
-
<line num="51" count="
|
|
609
|
+
<line num="28" count="48" type="cond" truecount="1" falsecount="0"/>
|
|
610
|
+
<line num="29" count="48" type="cond" truecount="3" falsecount="0"/>
|
|
611
|
+
<line num="30" count="15" type="stmt"/>
|
|
612
|
+
<line num="31" count="24" type="stmt"/>
|
|
613
|
+
<line num="35" count="33" type="cond" truecount="3" falsecount="0"/>
|
|
614
|
+
<line num="36" count="8" type="stmt"/>
|
|
615
|
+
<line num="37" count="12" type="stmt"/>
|
|
616
|
+
<line num="41" count="25" type="cond" truecount="3" falsecount="0"/>
|
|
617
|
+
<line num="42" count="2" type="stmt"/>
|
|
618
|
+
<line num="44" count="2" type="stmt"/>
|
|
619
|
+
<line num="49" count="23" type="cond" truecount="1" falsecount="0"/>
|
|
620
|
+
<line num="50" count="23" type="stmt"/>
|
|
621
|
+
<line num="51" count="33" type="stmt"/>
|
|
622
622
|
<line num="55" count="0" type="stmt"/>
|
|
623
623
|
</file>
|
|
624
624
|
</project>
|