@featurevisor/core 2.7.0 → 2.9.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/CHANGELOG.md +22 -0
- package/coverage/clover.xml +110 -443
- package/coverage/coverage-final.json +3 -9
- package/coverage/lcov-report/{src/builder → builder}/allocator.ts.html +10 -10
- package/coverage/lcov-report/{src/builder → builder}/buildScopedConditions.ts.html +10 -10
- package/coverage/lcov-report/{src/builder → builder}/buildScopedDatafile.ts.html +10 -10
- package/coverage/lcov-report/{src/builder → builder}/buildScopedSegments.ts.html +10 -10
- package/coverage/lcov-report/{src/builder → builder}/index.html +10 -10
- package/coverage/lcov-report/{src/builder → builder}/revision.ts.html +10 -10
- package/coverage/lcov-report/{src/builder → builder}/traffic.ts.html +10 -10
- package/coverage/lcov-report/index.html +27 -57
- package/coverage/lcov-report/{src/list → list}/index.html +10 -10
- package/coverage/lcov-report/{src/list → list}/matrix.ts.html +10 -10
- package/coverage/lcov-report/{lib/tester → parsers}/index.html +41 -26
- package/coverage/lcov-report/parsers/json.ts.html +118 -0
- package/coverage/lcov-report/parsers/yml.ts.html +589 -0
- package/coverage/lcov-report/{src/tester → tester}/helpers.ts.html +10 -10
- package/coverage/lcov-report/{src/tester → tester}/index.html +10 -10
- package/coverage/lcov.info +198 -858
- package/jest.config.js +1 -0
- package/lib/config/index.d.ts +0 -1
- package/lib/config/index.js +0 -1
- package/lib/config/index.js.map +1 -1
- package/lib/config/projectConfig.d.ts +1 -1
- package/lib/config/projectConfig.js +1 -1
- package/lib/config/projectConfig.js.map +1 -1
- package/lib/datasource/datasource.js.map +1 -1
- package/lib/datasource/filesystemAdapter.js +1 -1
- package/lib/datasource/filesystemAdapter.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/linter/conditionSchema.js +45 -6
- package/lib/linter/conditionSchema.js.map +1 -1
- package/lib/linter/featureSchema.d.ts +88 -88
- package/lib/{config/parsers.d.ts → parsers/index.d.ts} +5 -5
- package/lib/parsers/index.js +15 -0
- package/lib/parsers/index.js.map +1 -0
- package/lib/parsers/json.d.ts +2 -0
- package/lib/parsers/json.js +13 -0
- package/lib/parsers/json.js.map +1 -0
- package/lib/parsers/json.spec.d.ts +1 -0
- package/lib/parsers/json.spec.js +35 -0
- package/lib/parsers/json.spec.js.map +1 -0
- package/lib/parsers/yml.d.ts +2 -0
- package/lib/parsers/yml.js +154 -0
- package/lib/parsers/yml.js.map +1 -0
- package/lib/parsers/yml.spec.d.ts +1 -0
- package/lib/parsers/yml.spec.js +143 -0
- package/lib/parsers/yml.spec.js.map +1 -0
- package/lib/utils/git.js.map +1 -1
- package/package.json +4 -8
- package/src/config/index.ts +0 -1
- package/src/config/projectConfig.ts +1 -1
- package/src/datasource/datasource.ts +2 -1
- package/src/datasource/filesystemAdapter.ts +3 -2
- package/src/index.ts +1 -0
- package/src/linter/conditionSchema.ts +43 -6
- package/src/parsers/index.ts +22 -0
- package/src/parsers/json.spec.ts +36 -0
- package/src/parsers/json.ts +11 -0
- package/src/parsers/yml.spec.ts +174 -0
- package/src/parsers/yml.ts +168 -0
- package/src/utils/git.ts +2 -1
- package/tsconfig.cjs.json +2 -1
- package/coverage/lcov-report/lib/builder/allocator.js.html +0 -196
- package/coverage/lcov-report/lib/builder/buildScopedConditions.js.html +0 -373
- package/coverage/lcov-report/lib/builder/buildScopedDatafile.js.html +0 -403
- package/coverage/lcov-report/lib/builder/buildScopedSegments.js.html +0 -379
- package/coverage/lcov-report/lib/builder/index.html +0 -191
- package/coverage/lcov-report/lib/builder/revision.js.html +0 -148
- package/coverage/lcov-report/lib/builder/traffic.js.html +0 -493
- package/coverage/lcov-report/lib/list/index.html +0 -116
- package/coverage/lcov-report/lib/list/matrix.js.html +0 -532
- package/coverage/lcov-report/lib/tester/helpers.js.html +0 -295
- package/lib/config/parsers.js +0 -32
- package/lib/config/parsers.js.map +0 -1
- package/src/config/parsers.ts +0 -40
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for parsers</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../index.html">All files</a> parsers</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">88.28% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>98/111</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">77.04% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>47/
|
|
35
|
+
<span class='fraction'>47/61</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>12/12</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">94.73% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>90/95</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -79,18 +79,33 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
-
<td class="file high" data-value="
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
82
|
+
<td class="file high" data-value="json.ts"><a href="json.ts.html">json.ts</a></td>
|
|
83
|
+
<td data-value="100" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
86
|
+
<td data-value="100" class="pct high">100%</td>
|
|
87
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
91
|
<td data-value="2" class="abs high">2/2</td>
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
92
|
+
<td data-value="100" class="pct high">100%</td>
|
|
93
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
97
|
+
<td class="file high" data-value="yml.ts"><a href="yml.ts.html">yml.ts</a></td>
|
|
98
|
+
<td data-value="87.96" class="pic high">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 87%"></div><div class="cover-empty" style="width: 13%"></div></div>
|
|
100
|
+
</td>
|
|
101
|
+
<td data-value="87.96" class="pct high">87.96%</td>
|
|
102
|
+
<td data-value="108" class="abs high">95/108</td>
|
|
103
|
+
<td data-value="77.04" class="pct medium">77.04%</td>
|
|
104
|
+
<td data-value="61" class="abs medium">47/61</td>
|
|
105
|
+
<td data-value="100" class="pct high">100%</td>
|
|
106
|
+
<td data-value="10" class="abs high">10/10</td>
|
|
107
|
+
<td data-value="94.56" class="pct high">94.56%</td>
|
|
108
|
+
<td data-value="92" class="abs high">87/92</td>
|
|
94
109
|
</tr>
|
|
95
110
|
|
|
96
111
|
</tbody>
|
|
@@ -101,16 +116,16 @@
|
|
|
101
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
117
|
Code coverage generated by
|
|
103
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2026-02-
|
|
119
|
+
at 2026-02-08T17:20:52.723Z
|
|
105
120
|
</div>
|
|
106
|
-
<script src="
|
|
121
|
+
<script src="../prettify.js"></script>
|
|
107
122
|
<script>
|
|
108
123
|
window.onload = function () {
|
|
109
124
|
prettyPrint();
|
|
110
125
|
};
|
|
111
126
|
</script>
|
|
112
|
-
<script src="
|
|
113
|
-
<script src="
|
|
127
|
+
<script src="../sorter.js"></script>
|
|
128
|
+
<script src="../block-navigation.js"></script>
|
|
114
129
|
</body>
|
|
115
130
|
</html>
|
|
116
131
|
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for parsers/json.ts</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../index.html">All files</a> / <a href="index.html">parsers</a> json.ts</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>3/3</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>2/2</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>3/3</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
78
|
+
<span class="cline-any cline-neutral"> </span>
|
|
79
|
+
<span class="cline-any cline-yes">1x</span>
|
|
80
|
+
<span class="cline-any cline-neutral"> </span>
|
|
81
|
+
<span class="cline-any cline-neutral"> </span>
|
|
82
|
+
<span class="cline-any cline-yes">3x</span>
|
|
83
|
+
<span class="cline-any cline-neutral"> </span>
|
|
84
|
+
<span class="cline-any cline-neutral"> </span>
|
|
85
|
+
<span class="cline-any cline-yes">2x</span>
|
|
86
|
+
<span class="cline-any cline-neutral"> </span>
|
|
87
|
+
<span class="cline-any cline-neutral"> </span>
|
|
88
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import type { CustomParser } from "./index";
|
|
89
|
+
|
|
90
|
+
export const jsonParser: CustomParser = {
|
|
91
|
+
extension: "json",
|
|
92
|
+
parse: function <T>(content: string): T {
|
|
93
|
+
return JSON.parse(content) as T;
|
|
94
|
+
},
|
|
95
|
+
stringify: function (content: any) {
|
|
96
|
+
return JSON.stringify(content, null, 2);
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
</pre></td></tr></table></pre>
|
|
100
|
+
|
|
101
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
102
|
+
</div><!-- /wrapper -->
|
|
103
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
104
|
+
Code coverage generated by
|
|
105
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
106
|
+
at 2026-02-08T17:20:52.723Z
|
|
107
|
+
</div>
|
|
108
|
+
<script src="../prettify.js"></script>
|
|
109
|
+
<script>
|
|
110
|
+
window.onload = function () {
|
|
111
|
+
prettyPrint();
|
|
112
|
+
};
|
|
113
|
+
</script>
|
|
114
|
+
<script src="../sorter.js"></script>
|
|
115
|
+
<script src="../block-navigation.js"></script>
|
|
116
|
+
</body>
|
|
117
|
+
</html>
|
|
118
|
+
|