@grnsft/if 0.7.2 → 1.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.
Files changed (251) hide show
  1. package/.env +5 -0
  2. package/CONTRIBUTING.md +19 -6
  3. package/ENABLEMENT.md +115 -0
  4. package/README.md +1 -7
  5. package/SECURITY.md +100 -0
  6. package/adopters.md +12 -0
  7. package/build/common/config/strings.js +3 -4
  8. package/build/common/util/helpers.d.ts +5 -0
  9. package/build/common/util/helpers.js +24 -2
  10. package/build/common/util/logger.js +3 -3
  11. package/build/common/util/yaml.js +19 -7
  12. package/build/if-check/config/config.js +7 -1
  13. package/build/if-check/util/args.js +3 -2
  14. package/build/if-check/util/npm.js +55 -9
  15. package/build/if-csv/config/config.js +7 -1
  16. package/build/if-csv/util/args.js +3 -2
  17. package/build/if-diff/config/config.js +7 -1
  18. package/build/if-diff/util/args.js +3 -2
  19. package/build/if-env/config/config.js +7 -1
  20. package/build/if-env/util/args.js +3 -2
  21. package/build/if-merge/config/config.js +7 -1
  22. package/build/if-merge/util/args.js +3 -2
  23. package/build/if-merge/util/helpers.js +4 -1
  24. package/build/if-run/builtins/csv-import/index.d.ts +16 -0
  25. package/build/if-run/builtins/csv-import/index.js +69 -0
  26. package/build/if-run/builtins/csv-lookup/index.js +10 -87
  27. package/build/if-run/builtins/divide/index.js +2 -4
  28. package/build/if-run/builtins/exponent/index.js +3 -5
  29. package/build/if-run/builtins/index.d.ts +1 -0
  30. package/build/if-run/builtins/index.js +4 -2
  31. package/build/if-run/builtins/shell/index.js +2 -2
  32. package/build/if-run/builtins/util/csv-helpers.d.ts +26 -0
  33. package/build/if-run/builtins/util/csv-helpers.js +92 -0
  34. package/build/if-run/config/config.js +1 -7
  35. package/build/if-run/config/strings.d.ts +1 -0
  36. package/build/if-run/config/strings.js +2 -1
  37. package/build/if-run/lib/compute.js +23 -16
  38. package/build/if-run/lib/regroup.d.ts +5 -0
  39. package/build/if-run/lib/regroup.js +14 -2
  40. package/build/if-run/util/args.d.ts +1 -1
  41. package/build/if-run/util/args.js +5 -4
  42. package/coverage/clover.xml +2062 -0
  43. package/coverage/coverage-final.json +58 -0
  44. package/coverage/lcov-report/base.css +224 -0
  45. package/coverage/lcov-report/block-navigation.js +87 -0
  46. package/coverage/lcov-report/builtins/coefficient/index.html +116 -0
  47. package/coverage/lcov-report/builtins/coefficient/index.ts.html +298 -0
  48. package/coverage/lcov-report/builtins/csv-lookup/index.html +116 -0
  49. package/coverage/lcov-report/builtins/csv-lookup/index.ts.html +826 -0
  50. package/coverage/lcov-report/builtins/divide/index.html +116 -0
  51. package/coverage/lcov-report/builtins/divide/index.ts.html +358 -0
  52. package/coverage/lcov-report/builtins/exponent/index.html +116 -0
  53. package/coverage/lcov-report/builtins/exponent/index.ts.html +361 -0
  54. package/coverage/lcov-report/builtins/export-csv-raw.ts.html +553 -0
  55. package/coverage/lcov-report/builtins/export-csv.ts.html +436 -0
  56. package/coverage/lcov-report/builtins/export-log.ts.html +148 -0
  57. package/coverage/lcov-report/builtins/export-yaml.ts.html +193 -0
  58. package/coverage/lcov-report/builtins/group-by.ts.html +370 -0
  59. package/coverage/lcov-report/builtins/index.html +206 -0
  60. package/coverage/lcov-report/builtins/index.ts.html +130 -0
  61. package/coverage/lcov-report/builtins/interpolation/index.html +116 -0
  62. package/coverage/lcov-report/builtins/interpolation/index.ts.html +676 -0
  63. package/coverage/lcov-report/builtins/interpolation/types.ts.html +100 -0
  64. package/coverage/lcov-report/builtins/mock-observations/helpers/common-generator.ts.html +184 -0
  65. package/coverage/lcov-report/builtins/mock-observations/helpers/index.html +131 -0
  66. package/coverage/lcov-report/builtins/mock-observations/helpers/rand-int-generator.ts.html +289 -0
  67. package/coverage/lcov-report/builtins/mock-observations/index.html +116 -0
  68. package/coverage/lcov-report/builtins/mock-observations/index.ts.html +619 -0
  69. package/coverage/lcov-report/builtins/multiply/index.html +116 -0
  70. package/coverage/lcov-report/builtins/multiply/index.ts.html +343 -0
  71. package/coverage/lcov-report/builtins/regex/index.html +116 -0
  72. package/coverage/lcov-report/builtins/regex/index.ts.html +373 -0
  73. package/coverage/lcov-report/builtins/sci/config.ts.html +205 -0
  74. package/coverage/lcov-report/builtins/sci/index.html +116 -0
  75. package/coverage/lcov-report/builtins/sci/index.ts.html +325 -0
  76. package/coverage/lcov-report/builtins/sci-embodied/index.html +116 -0
  77. package/coverage/lcov-report/builtins/sci-embodied/index.ts.html +478 -0
  78. package/coverage/lcov-report/builtins/shell/index.html +116 -0
  79. package/coverage/lcov-report/builtins/shell/index.ts.html +280 -0
  80. package/coverage/lcov-report/builtins/subtract/index.html +116 -0
  81. package/coverage/lcov-report/builtins/subtract/index.ts.html +379 -0
  82. package/coverage/lcov-report/builtins/sum/index.html +116 -0
  83. package/coverage/lcov-report/builtins/sum/index.ts.html +334 -0
  84. package/coverage/lcov-report/builtins/time-sync.ts.html +1462 -0
  85. package/coverage/lcov-report/common/config/index.html +131 -0
  86. package/coverage/lcov-report/common/config/index.ts.html +88 -0
  87. package/coverage/lcov-report/common/config/strings.ts.html +121 -0
  88. package/coverage/lcov-report/common/lib/index.html +116 -0
  89. package/coverage/lcov-report/common/lib/load.ts.html +139 -0
  90. package/coverage/lcov-report/common/util/debug-logger.ts.html +514 -0
  91. package/coverage/lcov-report/common/util/fs.ts.html +289 -0
  92. package/coverage/lcov-report/common/util/helpers.ts.html +355 -0
  93. package/coverage/lcov-report/common/util/index.html +191 -0
  94. package/coverage/lcov-report/common/util/logger.ts.html +151 -0
  95. package/coverage/lcov-report/common/util/validations.ts.html +628 -0
  96. package/coverage/lcov-report/common/util/yaml.ts.html +226 -0
  97. package/coverage/lcov-report/config/config.ts.html +463 -0
  98. package/coverage/lcov-report/config/index.html +161 -0
  99. package/coverage/lcov-report/config/index.ts.html +94 -0
  100. package/coverage/lcov-report/config/params.ts.html +697 -0
  101. package/coverage/lcov-report/config/strings.ts.html +490 -0
  102. package/coverage/lcov-report/favicon.png +0 -0
  103. package/coverage/lcov-report/if-check/config/config.ts.html +184 -0
  104. package/coverage/lcov-report/if-check/config/index.html +146 -0
  105. package/coverage/lcov-report/if-check/config/index.ts.html +91 -0
  106. package/coverage/lcov-report/if-check/config/strings.ts.html +142 -0
  107. package/coverage/lcov-report/if-check/util/args.ts.html +310 -0
  108. package/coverage/lcov-report/if-check/util/helpers.ts.html +136 -0
  109. package/coverage/lcov-report/if-check/util/index.html +146 -0
  110. package/coverage/lcov-report/if-check/util/npm.ts.html +376 -0
  111. package/coverage/lcov-report/if-csv/util/args.ts.html +256 -0
  112. package/coverage/lcov-report/if-csv/util/helpers.ts.html +346 -0
  113. package/coverage/lcov-report/if-csv/util/index.html +131 -0
  114. package/coverage/lcov-report/if-diff/config/config.ts.html +184 -0
  115. package/coverage/lcov-report/if-diff/config/index.html +146 -0
  116. package/coverage/lcov-report/if-diff/config/index.ts.html +91 -0
  117. package/coverage/lcov-report/if-diff/config/strings.ts.html +100 -0
  118. package/coverage/lcov-report/if-diff/lib/compare.ts.html +286 -0
  119. package/coverage/lcov-report/if-diff/lib/index.html +131 -0
  120. package/coverage/lcov-report/if-diff/lib/load.ts.html +199 -0
  121. package/coverage/lcov-report/if-diff/util/args.ts.html +274 -0
  122. package/coverage/lcov-report/if-diff/util/helpers.ts.html +337 -0
  123. package/coverage/lcov-report/if-diff/util/index.html +131 -0
  124. package/coverage/lcov-report/if-env/config/config.ts.html +211 -0
  125. package/coverage/lcov-report/if-env/config/index.html +146 -0
  126. package/coverage/lcov-report/if-env/config/index.ts.html +91 -0
  127. package/coverage/lcov-report/if-env/config/strings.ts.html +109 -0
  128. package/coverage/lcov-report/if-env/util/args.ts.html +256 -0
  129. package/coverage/lcov-report/if-env/util/index.html +131 -0
  130. package/coverage/lcov-report/if-env/util/npm.ts.html +526 -0
  131. package/coverage/lcov-report/if-merge/util/args.ts.html +301 -0
  132. package/coverage/lcov-report/if-merge/util/helpers.ts.html +313 -0
  133. package/coverage/lcov-report/if-merge/util/index.html +131 -0
  134. package/coverage/lcov-report/if-run/builtins/coefficient/index.html +116 -0
  135. package/coverage/lcov-report/if-run/builtins/coefficient/index.ts.html +286 -0
  136. package/coverage/lcov-report/if-run/builtins/copy-param/index.html +116 -0
  137. package/coverage/lcov-report/if-run/builtins/copy-param/index.ts.html +301 -0
  138. package/coverage/lcov-report/if-run/builtins/csv-import/index.html +116 -0
  139. package/coverage/lcov-report/if-run/builtins/csv-import/index.ts.html +364 -0
  140. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.html +116 -0
  141. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.ts.html +478 -0
  142. package/coverage/lcov-report/if-run/builtins/divide/index.html +116 -0
  143. package/coverage/lcov-report/if-run/builtins/divide/index.ts.html +346 -0
  144. package/coverage/lcov-report/if-run/builtins/exponent/index.html +116 -0
  145. package/coverage/lcov-report/if-run/builtins/exponent/index.ts.html +319 -0
  146. package/coverage/lcov-report/if-run/builtins/export-csv-raw.ts.html +553 -0
  147. package/coverage/lcov-report/if-run/builtins/export-csv.ts.html +436 -0
  148. package/coverage/lcov-report/if-run/builtins/export-log.ts.html +148 -0
  149. package/coverage/lcov-report/if-run/builtins/export-yaml.ts.html +193 -0
  150. package/coverage/lcov-report/if-run/builtins/group-by.ts.html +370 -0
  151. package/coverage/lcov-report/if-run/builtins/index.html +146 -0
  152. package/coverage/lcov-report/if-run/builtins/index.ts.html +136 -0
  153. package/coverage/lcov-report/if-run/builtins/interpolation/index.html +116 -0
  154. package/coverage/lcov-report/if-run/builtins/interpolation/index.ts.html +643 -0
  155. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/common-generator.ts.html +184 -0
  156. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/index.html +131 -0
  157. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/rand-int-generator.ts.html +289 -0
  158. package/coverage/lcov-report/if-run/builtins/mock-observations/index.html +116 -0
  159. package/coverage/lcov-report/if-run/builtins/mock-observations/index.ts.html +607 -0
  160. package/coverage/lcov-report/if-run/builtins/multiply/index.html +116 -0
  161. package/coverage/lcov-report/if-run/builtins/multiply/index.ts.html +289 -0
  162. package/coverage/lcov-report/if-run/builtins/regex/index.html +116 -0
  163. package/coverage/lcov-report/if-run/builtins/regex/index.ts.html +298 -0
  164. package/coverage/lcov-report/if-run/builtins/sci/index.html +116 -0
  165. package/coverage/lcov-report/if-run/builtins/sci/index.ts.html +418 -0
  166. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.html +116 -0
  167. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.ts.html +664 -0
  168. package/coverage/lcov-report/if-run/builtins/shell/index.html +116 -0
  169. package/coverage/lcov-report/if-run/builtins/shell/index.ts.html +256 -0
  170. package/coverage/lcov-report/if-run/builtins/subtract/index.html +116 -0
  171. package/coverage/lcov-report/if-run/builtins/subtract/index.ts.html +298 -0
  172. package/coverage/lcov-report/if-run/builtins/sum/index.html +116 -0
  173. package/coverage/lcov-report/if-run/builtins/sum/index.ts.html +238 -0
  174. package/coverage/lcov-report/if-run/builtins/time-converter/config.ts.html +205 -0
  175. package/coverage/lcov-report/if-run/builtins/time-converter/index.html +131 -0
  176. package/coverage/lcov-report/if-run/builtins/time-converter/index.ts.html +328 -0
  177. package/coverage/lcov-report/if-run/builtins/time-sync/index.html +116 -0
  178. package/coverage/lcov-report/if-run/builtins/time-sync/index.ts.html +1804 -0
  179. package/coverage/lcov-report/if-run/builtins/time-sync.ts.html +1462 -0
  180. package/coverage/lcov-report/if-run/builtins/util/csv-helpers.ts.html +376 -0
  181. package/coverage/lcov-report/if-run/builtins/util/index.html +116 -0
  182. package/coverage/lcov-report/if-run/config/config.ts.html +271 -0
  183. package/coverage/lcov-report/if-run/config/index.html +161 -0
  184. package/coverage/lcov-report/if-run/config/index.ts.html +94 -0
  185. package/coverage/lcov-report/if-run/config/params.ts.html +679 -0
  186. package/coverage/lcov-report/if-run/config/strings.ts.html +460 -0
  187. package/coverage/lcov-report/if-run/lib/aggregate.ts.html +577 -0
  188. package/coverage/lcov-report/if-run/lib/compute.ts.html +733 -0
  189. package/coverage/lcov-report/if-run/lib/environment.ts.html +373 -0
  190. package/coverage/lcov-report/if-run/lib/exhaust.ts.html +193 -0
  191. package/coverage/lcov-report/if-run/lib/explain.ts.html +484 -0
  192. package/coverage/lcov-report/if-run/lib/index.html +206 -0
  193. package/coverage/lcov-report/if-run/lib/initialize.ts.html +490 -0
  194. package/coverage/lcov-report/if-run/lib/parameterize.ts.html +322 -0
  195. package/coverage/lcov-report/if-run/lib/regroup.ts.html +349 -0
  196. package/coverage/lcov-report/if-run/lib/time-sync.ts.html +1510 -0
  197. package/coverage/lcov-report/if-run/types/aggregation.ts.html +94 -0
  198. package/coverage/lcov-report/if-run/types/index.html +146 -0
  199. package/coverage/lcov-report/if-run/types/interface.ts.html +112 -0
  200. package/coverage/lcov-report/if-run/types/parameters.ts.html +106 -0
  201. package/coverage/lcov-report/if-run/util/aggregation-helper.ts.html +277 -0
  202. package/coverage/lcov-report/if-run/util/args.ts.html +325 -0
  203. package/coverage/lcov-report/if-run/util/helpers.ts.html +208 -0
  204. package/coverage/lcov-report/if-run/util/index.html +191 -0
  205. package/coverage/lcov-report/if-run/util/json.ts.html +115 -0
  206. package/coverage/lcov-report/if-run/util/log-memoize.ts.html +145 -0
  207. package/coverage/lcov-report/if-run/util/os-checker.ts.html +421 -0
  208. package/coverage/lcov-report/if-run/util/plugin-storage.ts.html +202 -0
  209. package/coverage/lcov-report/index.html +551 -0
  210. package/coverage/lcov-report/lib/aggregate.ts.html +358 -0
  211. package/coverage/lcov-report/lib/compare.ts.html +286 -0
  212. package/coverage/lcov-report/lib/compute.ts.html +436 -0
  213. package/coverage/lcov-report/lib/environment.ts.html +376 -0
  214. package/coverage/lcov-report/lib/exhaust.ts.html +289 -0
  215. package/coverage/lcov-report/lib/index.html +221 -0
  216. package/coverage/lcov-report/lib/initialize.ts.html +430 -0
  217. package/coverage/lcov-report/lib/load.ts.html +268 -0
  218. package/coverage/lcov-report/lib/parameterize.ts.html +316 -0
  219. package/coverage/lcov-report/prettify.css +1 -0
  220. package/coverage/lcov-report/prettify.js +2 -0
  221. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  222. package/coverage/lcov-report/sorter.js +196 -0
  223. package/coverage/lcov-report/types/aggregation.ts.html +94 -0
  224. package/coverage/lcov-report/types/index.html +146 -0
  225. package/coverage/lcov-report/types/interface.ts.html +112 -0
  226. package/coverage/lcov-report/types/parameters.ts.html +106 -0
  227. package/coverage/lcov-report/util/aggregation-helper.ts.html +289 -0
  228. package/coverage/lcov-report/util/args.ts.html +649 -0
  229. package/coverage/lcov-report/util/debug-logger.ts.html +481 -0
  230. package/coverage/lcov-report/util/errors.ts.html +232 -0
  231. package/coverage/lcov-report/util/fs.ts.html +124 -0
  232. package/coverage/lcov-report/util/helpers.ts.html +895 -0
  233. package/coverage/lcov-report/util/index.html +296 -0
  234. package/coverage/lcov-report/util/json.ts.html +115 -0
  235. package/coverage/lcov-report/util/log-memoize.ts.html +145 -0
  236. package/coverage/lcov-report/util/logger.ts.html +151 -0
  237. package/coverage/lcov-report/util/npm.ts.html +499 -0
  238. package/coverage/lcov-report/util/os-checker.ts.html +421 -0
  239. package/coverage/lcov-report/util/plugin-storage.ts.html +202 -0
  240. package/coverage/lcov-report/util/validations.ts.html +544 -0
  241. package/coverage/lcov-report/util/yaml.ts.html +193 -0
  242. package/coverage/lcov.info +3548 -0
  243. package/manifests/examples/builtins/csv-import/success.yaml +22 -0
  244. package/manifests/examples/builtins/csv-import/test.csv +4 -0
  245. package/manifests/outputs/builtins/csv-import/success.yaml +84 -0
  246. package/manifests/regroup.yml +49 -0
  247. package/manifests/test.yml +524 -0
  248. package/okrs.md +14 -0
  249. package/package.json +1 -1
  250. package/src/if-run/builtins/csv-import/README.md +190 -0
  251. package/src/if-run/builtins/csv-lookup/README.md +7 -7
@@ -0,0 +1,94 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for config/index.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">config</a> index.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'>6/6</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'>3/3</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></td><td class="line-coverage quiet"><span class="cline-any cline-yes">42x</span>
70
+ <span class="cline-any cline-yes">151x</span>
71
+ <span class="cline-any cline-yes">42x</span>
72
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">export {CONFIG} from './config';
73
+ export {STRINGS} from './strings';
74
+ export {PARAMETERS} from './params';
75
+ &nbsp;</pre></td></tr></table></pre>
76
+
77
+ <div class='push'></div><!-- for sticky footer -->
78
+ </div><!-- /wrapper -->
79
+ <div class='footer quiet pad2 space-top1 center small'>
80
+ Code coverage generated by
81
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
82
+ at 2024-06-25T13:39:04.332Z
83
+ </div>
84
+ <script src="../prettify.js"></script>
85
+ <script>
86
+ window.onload = function () {
87
+ prettyPrint();
88
+ };
89
+ </script>
90
+ <script src="../sorter.js"></script>
91
+ <script src="../block-navigation.js"></script>
92
+ </body>
93
+ </html>
94
+