@strapi/utils 4.8.1 → 4.8.2

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 (36) hide show
  1. package/lib/env-helper.js +20 -0
  2. package/lib/traverse/query-populate.js +9 -3
  3. package/package.json +2 -2
  4. package/coverage/clover.xml +0 -638
  5. package/coverage/coverage-final.json +0 -24
  6. package/coverage/lcov-report/base.css +0 -224
  7. package/coverage/lcov-report/block-navigation.js +0 -87
  8. package/coverage/lcov-report/favicon.png +0 -0
  9. package/coverage/lcov-report/index.html +0 -146
  10. package/coverage/lcov-report/lib/async.js.html +0 -223
  11. package/coverage/lcov-report/lib/content-types.js.html +0 -643
  12. package/coverage/lcov-report/lib/env-helper.js.html +0 -319
  13. package/coverage/lcov-report/lib/errors.js.html +0 -397
  14. package/coverage/lcov-report/lib/format-yup-error.js.html +0 -145
  15. package/coverage/lcov-report/lib/hooks.js.html +0 -415
  16. package/coverage/lcov-report/lib/import-default.js.html +0 -115
  17. package/coverage/lcov-report/lib/index.html +0 -326
  18. package/coverage/lcov-report/lib/pagination.js.html +0 -382
  19. package/coverage/lcov-report/lib/parse-type.js.html +0 -385
  20. package/coverage/lcov-report/lib/policy.js.html +0 -472
  21. package/coverage/lcov-report/lib/print-value.js.html +0 -241
  22. package/coverage/lcov-report/lib/provider-factory.js.html +0 -433
  23. package/coverage/lcov-report/lib/relations.js.html +0 -178
  24. package/coverage/lcov-report/lib/sanitize/visitors/allowed-fields.js.html +0 -367
  25. package/coverage/lcov-report/lib/sanitize/visitors/index.html +0 -191
  26. package/coverage/lcov-report/lib/sanitize/visitors/index.js.html +0 -112
  27. package/coverage/lcov-report/lib/sanitize/visitors/remove-password.js.html +0 -106
  28. package/coverage/lcov-report/lib/sanitize/visitors/remove-private.js.html +0 -118
  29. package/coverage/lcov-report/lib/sanitize/visitors/remove-restricted-relations.js.html +0 -316
  30. package/coverage/lcov-report/lib/sanitize/visitors/restricted-fields.js.html +0 -181
  31. package/coverage/lcov-report/lib/string-formatting.js.html +0 -322
  32. package/coverage/lcov-report/lib/validators.js.html +0 -445
  33. package/coverage/lcov-report/prettify.css +0 -1
  34. package/coverage/lcov-report/prettify.js +0 -2
  35. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  36. package/coverage/lcov-report/sorter.js +0 -196
@@ -1,638 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1678870361171" clover="3.2.0">
3
- <project timestamp="1678870361172" name="All files">
4
- <metrics statements="554" coveredstatements="418" conditionals="294" coveredconditionals="155" methods="175" coveredmethods="98" elements="1023" coveredelements="671" complexity="0" loc="554" ncloc="554" packages="3" files="23" classes="23"/>
5
- <package name="lib">
6
- <metrics statements="472" coveredstatements="381" conditionals="258" coveredconditionals="148" methods="156" coveredmethods="91"/>
7
- <file name="async.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/async.js">
8
- <metrics statements="16" coveredstatements="15" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="3"/>
9
- <line num="3" count="1" type="stmt"/>
10
- <line num="4" count="1" type="stmt"/>
11
- <line num="7" count="1" type="stmt"/>
12
- <line num="8" count="1" type="stmt"/>
13
- <line num="10" count="1" type="stmt"/>
14
- <line num="11" count="3" type="stmt"/>
15
- <line num="14" count="1" type="stmt"/>
16
- <line num="21" count="1" type="stmt"/>
17
- <line num="26" count="1" type="stmt"/>
18
- <line num="27" count="5" type="stmt"/>
19
- <line num="28" count="5" type="stmt"/>
20
- <line num="29" count="8" type="stmt"/>
21
- <line num="31" count="3" type="stmt"/>
22
- <line num="37" count="1" type="stmt"/>
23
- <line num="38" count="0" type="stmt"/>
24
- <line num="41" count="1" type="stmt"/>
25
- </file>
26
- <file name="content-types.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/content-types.js">
27
- <metrics statements="69" coveredstatements="60" conditionals="27" coveredconditionals="13" methods="30" coveredmethods="13"/>
28
- <line num="3" count="3" type="stmt"/>
29
- <line num="4" count="3" type="stmt"/>
30
- <line num="6" count="3" type="stmt"/>
31
- <line num="7" count="3" type="stmt"/>
32
- <line num="9" count="3" type="stmt"/>
33
- <line num="10" count="3" type="stmt"/>
34
- <line num="11" count="3" type="stmt"/>
35
- <line num="12" count="3" type="stmt"/>
36
- <line num="14" count="3" type="stmt"/>
37
- <line num="15" count="3" type="stmt"/>
38
- <line num="17" count="3" type="stmt"/>
39
- <line num="18" count="3" type="stmt"/>
40
- <line num="19" count="3" type="stmt"/>
41
- <line num="21" count="3" type="stmt"/>
42
- <line num="35" count="3" type="stmt"/>
43
- <line num="36" count="3" type="stmt"/>
44
- <line num="38" count="3" type="cond" truecount="2" falsecount="0"/>
45
- <line num="39" count="1" type="stmt"/>
46
- <line num="42" count="3" type="cond" truecount="2" falsecount="0"/>
47
- <line num="43" count="1" type="stmt"/>
48
- <line num="46" count="3" type="stmt"/>
49
- <line num="49" count="3" type="cond" truecount="0" falsecount="1"/>
50
- <line num="50" count="1" type="stmt"/>
51
- <line num="52" count="4" type="cond" truecount="2" falsecount="0"/>
52
- <line num="56" count="1" type="stmt"/>
53
- <line num="59" count="3" type="cond" truecount="0" falsecount="1"/>
54
- <line num="60" count="0" type="stmt"/>
55
- <line num="63" count="3" type="stmt"/>
56
- <line num="64" count="0" type="stmt"/>
57
- <line num="67" count="3" type="stmt"/>
58
- <line num="68" count="2" type="stmt"/>
59
- <line num="70" count="4" type="cond" truecount="2" falsecount="0"/>
60
- <line num="74" count="2" type="stmt"/>
61
- <line num="77" count="3" type="stmt"/>
62
- <line num="78" count="2" type="stmt"/>
63
- <line num="81" count="3" type="stmt"/>
64
- <line num="82" count="0" type="stmt"/>
65
- <line num="85" count="3" type="stmt"/>
66
- <line num="87" count="3" type="stmt"/>
67
- <line num="88" count="0" type="cond" truecount="0" falsecount="2"/>
68
- <line num="90" count="3" type="cond" truecount="0" falsecount="1"/>
69
- <line num="91" count="3" type="cond" truecount="0" falsecount="1"/>
70
- <line num="92" count="3" type="stmt"/>
71
- <line num="94" count="3" type="cond" truecount="0" falsecount="1"/>
72
- <line num="95" count="6" type="stmt"/>
73
- <line num="98" count="18" type="stmt"/>
74
- <line num="102" count="3" type="stmt"/>
75
- <line num="103" count="9" type="cond" truecount="1" falsecount="1"/>
76
- <line num="106" count="3" type="stmt"/>
77
- <line num="107" count="22" type="stmt"/>
78
- <line num="109" count="3" type="stmt"/>
79
- <line num="110" count="3" type="stmt"/>
80
- <line num="111" count="3" type="stmt"/>
81
- <line num="113" count="3" type="stmt"/>
82
- <line num="114" count="3" type="stmt"/>
83
- <line num="115" count="0" type="cond" truecount="0" falsecount="2"/>
84
- <line num="118" count="3" type="stmt"/>
85
- <line num="119" count="0" type="stmt"/>
86
- <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
87
- <line num="123" count="0" type="stmt"/>
88
- <line num="129" count="3" type="stmt"/>
89
- <line num="130" count="1" type="stmt"/>
90
- <line num="133" count="22" type="cond" truecount="2" falsecount="0"/>
91
- <line num="134" count="22" type="stmt"/>
92
- <line num="145" count="3" type="stmt"/>
93
- <line num="146" count="3" type="cond" truecount="2" falsecount="0"/>
94
- <line num="154" count="3" type="stmt"/>
95
- <line num="155" count="0" type="cond" truecount="0" falsecount="2"/>
96
- <line num="160" count="3" type="stmt"/>
97
- </file>
98
- <file name="env-helper.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/env-helper.js">
99
- <metrics statements="34" coveredstatements="34" conditionals="18" coveredconditionals="18" methods="8" coveredmethods="8"/>
100
- <line num="3" count="1" type="stmt"/>
101
- <line num="6" count="3" type="cond" truecount="2" falsecount="0"/>
102
- <line num="9" count="1" type="stmt"/>
103
- <line num="11" count="3" type="cond" truecount="2" falsecount="0"/>
104
- <line num="12" count="1" type="stmt"/>
105
- <line num="15" count="2" type="stmt"/>
106
- <line num="16" count="2" type="stmt"/>
107
- <line num="20" count="3" type="cond" truecount="2" falsecount="0"/>
108
- <line num="21" count="1" type="stmt"/>
109
- <line num="24" count="2" type="stmt"/>
110
- <line num="25" count="2" type="stmt"/>
111
- <line num="29" count="7" type="cond" truecount="2" falsecount="0"/>
112
- <line num="30" count="1" type="stmt"/>
113
- <line num="33" count="6" type="stmt"/>
114
- <line num="34" count="6" type="stmt"/>
115
- <line num="38" count="9" type="cond" truecount="2" falsecount="0"/>
116
- <line num="39" count="1" type="stmt"/>
117
- <line num="42" count="8" type="stmt"/>
118
- <line num="43" count="8" type="stmt"/>
119
- <line num="44" count="8" type="stmt"/>
120
- <line num="46" count="1" type="stmt"/>
121
- <line num="51" count="6" type="cond" truecount="2" falsecount="0"/>
122
- <line num="52" count="1" type="stmt"/>
123
- <line num="55" count="5" type="stmt"/>
124
- <line num="57" count="5" type="cond" truecount="4" falsecount="0"/>
125
- <line num="58" count="1" type="stmt"/>
126
- <line num="61" count="5" type="stmt"/>
127
- <line num="62" count="9" type="stmt"/>
128
- <line num="67" count="3" type="cond" truecount="2" falsecount="0"/>
129
- <line num="68" count="1" type="stmt"/>
130
- <line num="71" count="2" type="stmt"/>
131
- <line num="72" count="2" type="stmt"/>
132
- <line num="76" count="1" type="stmt"/>
133
- <line num="78" count="1" type="stmt"/>
134
- </file>
135
- <file name="errors.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/errors.js">
136
- <metrics statements="36" coveredstatements="13" conditionals="23" coveredconditionals="5" methods="10" coveredmethods="3"/>
137
- <line num="5" count="3" type="stmt"/>
138
- <line num="6" count="3" type="stmt"/>
139
- <line num="11" count="1" type="stmt"/>
140
- <line num="12" count="1" type="stmt"/>
141
- <line num="13" count="1" type="cond" truecount="2" falsecount="0"/>
142
- <line num="14" count="1" type="stmt"/>
143
- <line num="20" count="1" type="stmt"/>
144
- <line num="21" count="1" type="stmt"/>
145
- <line num="27" count="1" type="stmt"/>
146
- <line num="28" count="1" type="stmt"/>
147
- <line num="29" count="1" type="cond" truecount="2" falsecount="0"/>
148
- <line num="30" count="1" type="stmt"/>
149
- <line num="36" count="0" type="stmt"/>
150
- <line num="37" count="0" type="stmt"/>
151
- <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
152
- <line num="44" count="0" type="stmt"/>
153
- <line num="45" count="0" type="stmt"/>
154
- <line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
155
- <line num="52" count="0" type="stmt"/>
156
- <line num="53" count="0" type="stmt"/>
157
- <line num="54" count="0" type="cond" truecount="0" falsecount="2"/>
158
- <line num="60" count="0" type="stmt"/>
159
- <line num="61" count="0" type="stmt"/>
160
- <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
161
- <line num="68" count="0" type="stmt"/>
162
- <line num="69" count="0" type="stmt"/>
163
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
164
- <line num="71" count="0" type="cond" truecount="0" falsecount="2"/>
165
- <line num="77" count="0" type="stmt"/>
166
- <line num="78" count="0" type="stmt"/>
167
- <line num="79" count="0" type="cond" truecount="0" falsecount="2"/>
168
- <line num="85" count="0" type="stmt"/>
169
- <line num="86" count="0" type="stmt"/>
170
- <line num="87" count="0" type="cond" truecount="0" falsecount="2"/>
171
- <line num="88" count="0" type="cond" truecount="0" falsecount="2"/>
172
- <line num="92" count="3" type="stmt"/>
173
- </file>
174
- <file name="format-yup-error.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/format-yup-error.js">
175
- <metrics statements="4" coveredstatements="4" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
176
- <line num="3" count="3" type="stmt"/>
177
- <line num="5" count="5" type="stmt"/>
178
- <line num="11" count="4" type="stmt"/>
179
- <line num="18" count="3" type="stmt"/>
180
- </file>
181
- <file name="hooks.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/hooks.js">
182
- <metrics statements="27" coveredstatements="21" conditionals="2" coveredconditionals="0" methods="14" coveredmethods="11"/>
183
- <line num="3" count="2" type="stmt"/>
184
- <line num="8" count="2" type="stmt"/>
185
- <line num="9" count="118" type="stmt"/>
186
- <line num="13" count="118" type="stmt"/>
187
- <line num="15" count="93" type="stmt"/>
188
- <line num="19" count="19" type="stmt"/>
189
- <line num="21" count="19" type="stmt"/>
190
- <line num="25" count="0" type="stmt"/>
191
- <line num="27" count="0" type="stmt"/>
192
- <line num="31" count="1" type="stmt"/>
193
- <line num="40" count="30" type="stmt"/>
194
- <line num="44" count="36" type="stmt"/>
195
- <line num="45" count="5" type="stmt"/>
196
- <line num="54" count="4" type="stmt"/>
197
- <line num="58" count="3" type="stmt"/>
198
- <line num="60" count="3" type="stmt"/>
199
- <line num="61" count="3" type="stmt"/>
200
- <line num="64" count="3" type="stmt"/>
201
- <line num="72" count="82" type="stmt"/>
202
- <line num="76" count="54" type="stmt"/>
203
- <line num="78" count="54" type="stmt"/>
204
- <line num="86" count="2" type="stmt"/>
205
- <line num="90" count="0" type="stmt"/>
206
- <line num="91" count="0" type="stmt"/>
207
- <line num="93" count="0" type="cond" truecount="0" falsecount="2"/>
208
- <line num="94" count="0" type="stmt"/>
209
- <line num="100" count="2" type="stmt"/>
210
- </file>
211
- <file name="import-default.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/import-default.js">
212
- <metrics statements="4" coveredstatements="4" conditionals="7" coveredconditionals="7" methods="1" coveredmethods="1"/>
213
- <line num="4" count="1" type="cond" truecount="3" falsecount="0"/>
214
- <line num="6" count="2" type="stmt"/>
215
- <line num="7" count="2" type="cond" truecount="4" falsecount="0"/>
216
- <line num="10" count="1" type="stmt"/>
217
- </file>
218
- <file name="pagination.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/pagination.js">
219
- <metrics statements="32" coveredstatements="31" conditionals="30" coveredconditionals="24" methods="6" coveredmethods="6"/>
220
- <line num="3" count="1" type="stmt"/>
221
- <line num="4" count="1" type="stmt"/>
222
- <line num="6" count="1" type="stmt"/>
223
- <line num="17" count="1" type="stmt"/>
224
- <line num="19" count="1" type="cond" truecount="0" falsecount="1"/>
225
- <line num="20" count="22" type="cond" truecount="4" falsecount="0"/>
226
- <line num="21" count="19" type="stmt"/>
227
- <line num="24" count="3" type="stmt"/>
228
- <line num="28" count="22" type="stmt"/>
229
- <line num="34" count="1" type="cond" truecount="0" falsecount="1"/>
230
- <line num="35" count="22" type="stmt"/>
231
- <line num="41" count="20" type="cond" truecount="0" falsecount="1"/>
232
- <line num="46" count="1" type="cond" truecount="1" falsecount="2"/>
233
- <line num="47" count="22" type="stmt"/>
234
- <line num="49" count="22" type="cond" truecount="2" falsecount="0"/>
235
- <line num="50" count="22" type="cond" truecount="2" falsecount="0"/>
236
- <line num="52" count="22" type="stmt"/>
237
- <line num="55" count="22" type="cond" truecount="4" falsecount="0"/>
238
- <line num="56" count="2" type="stmt"/>
239
- <line num="60" count="20" type="cond" truecount="3" falsecount="1"/>
240
- <line num="61" count="0" type="stmt"/>
241
- <line num="64" count="20" type="stmt"/>
242
- <line num="67" count="20" type="cond" truecount="2" falsecount="0"/>
243
- <line num="68" count="10" type="stmt"/>
244
- <line num="70" count="10" type="stmt"/>
245
- <line num="74" count="20" type="cond" truecount="2" falsecount="0"/>
246
- <line num="75" count="10" type="stmt"/>
247
- <line num="80" count="10" type="stmt"/>
248
- <line num="87" count="20" type="stmt"/>
249
- <line num="89" count="20" type="stmt"/>
250
- <line num="96" count="20" type="stmt"/>
251
- <line num="99" count="1" type="stmt"/>
252
- </file>
253
- <file name="parse-type.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/parse-type.js">
254
- <metrics statements="45" coveredstatements="40" conditionals="36" coveredconditionals="24" methods="4" coveredmethods="4"/>
255
- <line num="3" count="1" type="stmt"/>
256
- <line num="4" count="1" type="stmt"/>
257
- <line num="6" count="1" type="stmt"/>
258
- <line num="8" count="1" type="stmt"/>
259
- <line num="9" count="12" type="cond" truecount="1" falsecount="1"/>
260
- <line num="11" count="12" type="cond" truecount="2" falsecount="0"/>
261
- <line num="12" count="3" type="stmt"/>
262
- <line num="14" count="9" type="stmt"/>
263
- <line num="16" count="9" type="cond" truecount="2" falsecount="0"/>
264
- <line num="17" count="5" type="stmt"/>
265
- <line num="20" count="4" type="cond" truecount="1" falsecount="0"/>
266
- <line num="21" count="4" type="stmt"/>
267
- <line num="23" count="4" type="stmt"/>
268
- <line num="26" count="1" type="stmt"/>
269
- <line num="27" count="7" type="cond" truecount="1" falsecount="1"/>
270
- <line num="28" count="7" type="stmt"/>
271
- <line num="29" count="7" type="stmt"/>
272
- <line num="31" count="7" type="cond" truecount="2" falsecount="0"/>
273
- <line num="33" count="4" type="stmt"/>
274
- <line num="35" count="4" type="stmt"/>
275
- <line num="39" count="1" type="stmt"/>
276
- <line num="40" count="4" type="cond" truecount="1" falsecount="1"/>
277
- <line num="41" count="4" type="stmt"/>
278
- <line num="42" count="4" type="stmt"/>
279
- <line num="43" count="4" type="cond" truecount="2" falsecount="0"/>
280
- <line num="45" count="1" type="stmt"/>
281
- <line num="46" count="1" type="cond" truecount="1" falsecount="1"/>
282
- <line num="48" count="0" type="stmt"/>
283
- <line num="50" count="0" type="stmt"/>
284
- <line num="60" count="1" type="cond" truecount="1" falsecount="0"/>
285
- <line num="61" count="33" type="cond" truecount="4" falsecount="6"/>
286
- <line num="63" count="10" type="cond" truecount="1" falsecount="1"/>
287
- <line num="65" count="10" type="cond" truecount="2" falsecount="0"/>
288
- <line num="66" count="4" type="stmt"/>
289
- <line num="69" count="6" type="cond" truecount="2" falsecount="0"/>
290
- <line num="70" count="4" type="stmt"/>
291
- <line num="73" count="2" type="cond" truecount="1" falsecount="1"/>
292
- <line num="74" count="0" type="stmt"/>
293
- <line num="77" count="2" type="stmt"/>
294
- <line num="83" count="0" type="stmt"/>
295
- <line num="86" count="12" type="stmt"/>
296
- <line num="89" count="7" type="stmt"/>
297
- <line num="93" count="4" type="stmt"/>
298
- <line num="96" count="0" type="stmt"/>
299
- <line num="100" count="1" type="stmt"/>
300
- </file>
301
- <file name="policy.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/policy.js">
302
- <metrics statements="51" coveredstatements="31" conditionals="24" coveredconditionals="12" methods="12" coveredmethods="4"/>
303
- <line num="7" count="1" type="stmt"/>
304
- <line num="8" count="1" type="stmt"/>
305
- <line num="10" count="1" type="stmt"/>
306
- <line num="11" count="1" type="stmt"/>
307
- <line num="13" count="1" type="stmt"/>
308
- <line num="14" count="6" type="cond" truecount="1" falsecount="1"/>
309
- <line num="15" count="6" type="stmt"/>
310
- <line num="18" count="0" type="stmt"/>
311
- <line num="19" count="0" type="stmt"/>
312
- <line num="22" count="1" type="stmt"/>
313
- <line num="23" count="3" type="cond" truecount="2" falsecount="0"/>
314
- <line num="24" count="1" type="stmt"/>
315
- <line num="27" count="2" type="cond" truecount="2" falsecount="0"/>
316
- <line num="28" count="1" type="stmt"/>
317
- <line num="32" count="1" type="stmt"/>
318
- <line num="33" count="0" type="stmt"/>
319
- <line num="34" count="0" type="stmt"/>
320
- <line num="42" count="0" type="stmt"/>
321
- <line num="46" count="1" type="cond" truecount="0" falsecount="1"/>
322
- <line num="47" count="0" type="stmt"/>
323
- <line num="48" count="0" type="stmt"/>
324
- <line num="55" count="1" type="cond" truecount="0" falsecount="1"/>
325
- <line num="56" count="6" type="stmt"/>
326
- <line num="58" count="5" type="cond" truecount="2" falsecount="0"/>
327
- <line num="59" count="2" type="stmt"/>
328
- <line num="62" count="3" type="stmt"/>
329
- <line num="64" count="3" type="cond" truecount="2" falsecount="0"/>
330
- <line num="65" count="2" type="stmt"/>
331
- <line num="68" count="1" type="stmt"/>
332
- <line num="71" count="1" type="cond" truecount="1" falsecount="0"/>
333
- <line num="72" count="6" type="cond" truecount="1" falsecount="1"/>
334
- <line num="73" count="0" type="stmt"/>
335
- <line num="76" count="6" type="stmt"/>
336
- <line num="78" count="6" type="stmt"/>
337
- <line num="80" count="4" type="cond" truecount="1" falsecount="1"/>
338
- <line num="81" count="4" type="stmt"/>
339
- <line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
340
- <line num="85" count="0" type="stmt"/>
341
- <line num="88" count="0" type="stmt"/>
342
- <line num="91" count="1" type="stmt"/>
343
- <line num="92" count="0" type="cond" truecount="0" falsecount="1"/>
344
- <line num="94" count="0" type="stmt"/>
345
- <line num="95" count="0" type="cond" truecount="0" falsecount="2"/>
346
- <line num="96" count="0" type="stmt"/>
347
- <line num="97" count="0" type="stmt"/>
348
- <line num="99" count="0" type="stmt"/>
349
- <line num="104" count="0" type="stmt"/>
350
- <line num="111" count="1" type="stmt"/>
351
- <line num="112" count="0" type="stmt"/>
352
- <line num="116" count="0" type="stmt"/>
353
- <line num="123" count="1" type="stmt"/>
354
- </file>
355
- <file name="print-value.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/print-value.js">
356
- <metrics statements="26" coveredstatements="23" conditionals="40" coveredconditionals="18" methods="5" coveredmethods="3"/>
357
- <line num="6" count="2" type="stmt"/>
358
- <line num="7" count="2" type="stmt"/>
359
- <line num="8" count="2" type="stmt"/>
360
- <line num="9" count="2" type="cond" truecount="1" falsecount="1"/>
361
- <line num="11" count="2" type="stmt"/>
362
- <line num="15" count="0" type="cond" truecount="0" falsecount="2"/>
363
- <line num="16" count="0" type="cond" truecount="0" falsecount="2"/>
364
- <line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
365
- <line num="21" count="19" type="cond" truecount="5" falsecount="0"/>
366
- <line num="23" count="16" type="stmt"/>
367
- <line num="24" count="16" type="cond" truecount="1" falsecount="1"/>
368
- <line num="25" count="16" type="cond" truecount="1" falsecount="3"/>
369
- <line num="26" count="16" type="cond" truecount="1" falsecount="3"/>
370
- <line num="27" count="16" type="cond" truecount="1" falsecount="1"/>
371
- <line num="29" count="16" type="stmt"/>
372
- <line num="30" count="16" type="cond" truecount="1" falsecount="3"/>
373
- <line num="31" count="16" type="cond" truecount="3" falsecount="1"/>
374
- <line num="32" count="16" type="cond" truecount="1" falsecount="1"/>
375
- <line num="34" count="16" type="stmt"/>
376
- <line num="38" count="11" type="stmt"/>
377
- <line num="39" count="11" type="cond" truecount="2" falsecount="0"/>
378
- <line num="41" count="8" type="stmt"/>
379
- <line num="44" count="8" type="stmt"/>
380
- <line num="45" count="8" type="cond" truecount="1" falsecount="1"/>
381
- <line num="46" count="8" type="stmt"/>
382
- <line num="52" count="2" type="stmt"/>
383
- </file>
384
- <file name="provider-factory.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/provider-factory.js">
385
- <metrics statements="35" coveredstatements="35" conditionals="11" coveredconditionals="11" methods="13" coveredmethods="13"/>
386
- <line num="3" count="1" type="stmt"/>
387
- <line num="4" count="1" type="stmt"/>
388
- <line num="18" count="26" type="stmt"/>
389
- <line num="32" count="1" type="cond" truecount="1" falsecount="0"/>
390
- <line num="33" count="26" type="cond" truecount="1" falsecount="0"/>
391
- <line num="35" count="26" type="stmt"/>
392
- <line num="40" count="26" type="stmt"/>
393
- <line num="44" count="33" type="cond" truecount="4" falsecount="0"/>
394
- <line num="45" count="1" type="stmt"/>
395
- <line num="48" count="32" type="stmt"/>
396
- <line num="50" count="32" type="stmt"/>
397
- <line num="52" count="32" type="stmt"/>
398
- <line num="54" count="32" type="stmt"/>
399
- <line num="58" count="10" type="cond" truecount="2" falsecount="0"/>
400
- <line num="59" count="8" type="stmt"/>
401
- <line num="61" count="8" type="stmt"/>
402
- <line num="63" count="8" type="stmt"/>
403
- <line num="65" count="8" type="stmt"/>
404
- <line num="68" count="10" type="stmt"/>
405
- <line num="72" count="19" type="stmt"/>
406
- <line num="76" count="8" type="stmt"/>
407
- <line num="77" count="8" type="stmt"/>
408
- <line num="79" count="8" type="cond" truecount="2" falsecount="0"/>
409
- <line num="80" count="2" type="stmt"/>
410
- <line num="83" count="6" type="stmt"/>
411
- <line num="84" count="26" type="stmt"/>
412
- <line num="89" count="10" type="stmt"/>
413
- <line num="93" count="5" type="stmt"/>
414
- <line num="97" count="43" type="stmt"/>
415
- <line num="101" count="9" type="stmt"/>
416
- <line num="105" count="3" type="stmt"/>
417
- <line num="107" count="3" type="stmt"/>
418
- <line num="108" count="6" type="stmt"/>
419
- <line num="111" count="3" type="stmt"/>
420
- <line num="116" count="1" type="stmt"/>
421
- </file>
422
- <file name="relations.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/relations.js">
423
- <metrics statements="14" coveredstatements="10" conditionals="8" coveredconditionals="0" methods="6" coveredmethods="2"/>
424
- <line num="3" count="1" type="stmt"/>
425
- <line num="5" count="1" type="stmt"/>
426
- <line num="7" count="1" type="stmt"/>
427
- <line num="8" count="1" type="stmt"/>
428
- <line num="9" count="2" type="stmt"/>
429
- <line num="13" count="1" type="stmt"/>
430
- <line num="14" count="0" type="cond" truecount="0" falsecount="2"/>
431
- <line num="15" count="1" type="stmt"/>
432
- <line num="16" count="0" type="cond" truecount="0" falsecount="2"/>
433
- <line num="17" count="1" type="stmt"/>
434
- <line num="18" count="0" type="cond" truecount="0" falsecount="2"/>
435
- <line num="19" count="1" type="stmt"/>
436
- <line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
437
- <line num="22" count="1" type="stmt"/>
438
- </file>
439
- <file name="string-formatting.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/string-formatting.js">
440
- <metrics statements="33" coveredstatements="33" conditionals="10" coveredconditionals="8" methods="20" coveredmethods="14"/>
441
- <line num="3" count="3" type="stmt"/>
442
- <line num="4" count="3" type="stmt"/>
443
- <line num="5" count="3" type="stmt"/>
444
- <line num="6" count="3" type="stmt"/>
445
- <line num="8" count="3" type="cond" truecount="0" falsecount="1"/>
446
- <line num="10" count="3" type="stmt"/>
447
- <line num="12" count="3" type="stmt"/>
448
- <line num="13" count="16" type="stmt"/>
449
- <line num="19" count="3" type="stmt"/>
450
- <line num="20" count="33" type="stmt"/>
451
- <line num="24" count="3" type="stmt"/>
452
- <line num="25" count="10" type="stmt"/>
453
- <line num="26" count="5" type="stmt"/>
454
- <line num="27" count="17" type="stmt"/>
455
- <line num="32" count="3" type="cond" truecount="0" falsecount="1"/>
456
- <line num="33" count="10" type="stmt"/>
457
- <line num="37" count="37" type="cond" truecount="2" falsecount="0"/>
458
- <line num="44" count="10" type="stmt"/>
459
- <line num="45" count="10" type="stmt"/>
460
- <line num="46" count="3" type="stmt"/>
461
- <line num="47" count="3" type="stmt"/>
462
- <line num="48" count="3" type="stmt"/>
463
- <line num="50" count="3" type="stmt"/>
464
- <line num="51" count="14" type="stmt"/>
465
- <line num="52" count="14" type="stmt"/>
466
- <line num="53" count="14" type="stmt"/>
467
- <line num="55" count="14" type="stmt"/>
468
- <line num="56" count="30" type="cond" truecount="2" falsecount="0"/>
469
- <line num="57" count="28" type="cond" truecount="2" falsecount="0"/>
470
- <line num="58" count="16" type="cond" truecount="2" falsecount="0"/>
471
- <line num="59" count="4" type="stmt"/>
472
- <line num="63" count="3" type="stmt"/>
473
- <line num="65" count="3" type="stmt"/>
474
- </file>
475
- <file name="validators.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/validators.js">
476
- <metrics statements="46" coveredstatements="27" conditionals="20" coveredconditionals="6" methods="21" coveredmethods="4"/>
477
- <line num="3" count="2" type="stmt"/>
478
- <line num="4" count="2" type="stmt"/>
479
- <line num="5" count="2" type="stmt"/>
480
- <line num="6" count="2" type="stmt"/>
481
- <line num="7" count="2" type="stmt"/>
482
- <line num="8" count="2" type="stmt"/>
483
- <line num="10" count="2" type="stmt"/>
484
- <line num="12" count="2" type="stmt"/>
485
- <line num="15" count="0" type="stmt"/>
486
- <line num="18" count="2" type="stmt"/>
487
- <line num="20" count="0" type="stmt"/>
488
- <line num="24" count="0" type="stmt"/>
489
- <line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
490
- <line num="32" count="0" type="stmt"/>
491
- <line num="36" count="0" type="stmt"/>
492
- <line num="40" count="0" type="stmt"/>
493
- <line num="43" count="0" type="cond" truecount="0" falsecount="3"/>
494
- <line num="47" count="2" type="stmt"/>
495
- <line num="48" count="2" type="stmt"/>
496
- <line num="49" count="2" type="stmt"/>
497
- <line num="50" count="2" type="stmt"/>
498
- <line num="51" count="2" type="stmt"/>
499
- <line num="52" count="2" type="stmt"/>
500
- <line num="56" count="32" type="stmt"/>
501
- <line num="60" count="26" type="cond" truecount="3" falsecount="0"/>
502
- <line num="64" count="32" type="stmt"/>
503
- <line num="66" count="2" type="stmt"/>
504
- <line num="67" count="0" type="stmt"/>
505
- <line num="70" count="2" type="stmt"/>
506
- <line num="73" count="2" type="cond" truecount="0" falsecount="1"/>
507
- <line num="74" count="0" type="stmt"/>
508
- <line num="75" count="0" type="stmt"/>
509
- <line num="76" count="0" type="stmt"/>
510
- <line num="77" count="0" type="stmt"/>
511
- <line num="79" count="0" type="stmt"/>
512
- <line num="84" count="2" type="cond" truecount="0" falsecount="1"/>
513
- <line num="85" count="0" type="stmt"/>
514
- <line num="86" count="0" type="stmt"/>
515
- <line num="87" count="0" type="stmt"/>
516
- <line num="88" count="0" type="stmt"/>
517
- <line num="90" count="0" type="stmt"/>
518
- <line num="95" count="2" type="stmt"/>
519
- <line num="98" count="11" type="cond" truecount="2" falsecount="0"/>
520
- <line num="100" count="11" type="stmt"/>
521
- <line num="110" count="11" type="stmt"/>
522
- <line num="115" count="2" type="stmt"/>
523
- </file>
524
- </package>
525
- <package name="lib.__tests__.import-default">
526
- <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
527
- <file name="cjs.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/__tests__/import-default/cjs.js">
528
- <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
529
- <line num="3" count="1" type="stmt"/>
530
- <line num="6" count="1" type="stmt"/>
531
- </file>
532
- <file name="esm.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/__tests__/import-default/esm.js">
533
- <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
534
- <line num="3" count="1" type="stmt"/>
535
- <line num="8" count="1" type="stmt"/>
536
- </file>
537
- </package>
538
- <package name="lib.sanitize.visitors">
539
- <metrics statements="78" coveredstatements="33" conditionals="36" coveredconditionals="7" methods="17" coveredmethods="5"/>
540
- <file name="allowed-fields.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/sanitize/visitors/allowed-fields.js">
541
- <metrics statements="17" coveredstatements="3" conditionals="9" coveredconditionals="0" methods="5" coveredmethods="0"/>
542
- <line num="3" count="1" type="stmt"/>
543
- <line num="5" count="1" type="stmt"/>
544
- <line num="7" count="0" type="stmt"/>
545
- <line num="9" count="0" type="cond" truecount="0" falsecount="2"/>
546
- <line num="10" count="0" type="stmt"/>
547
- <line num="14" count="0" type="cond" truecount="0" falsecount="2"/>
548
- <line num="15" count="0" type="stmt"/>
549
- <line num="18" count="0" type="stmt"/>
550
- <line num="58" count="0" type="stmt"/>
551
- <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
552
- <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
553
- <line num="63" count="0" type="stmt"/>
554
- <line num="67" count="0" type="stmt"/>
555
- <line num="88" count="1" type="stmt"/>
556
- <line num="89" count="0" type="stmt"/>
557
- <line num="91" count="0" type="stmt"/>
558
- <line num="92" count="0" type="stmt"/>
559
- </file>
560
- <file name="index.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/sanitize/visitors/index.js">
561
- <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
562
- <line num="3" count="1" type="stmt"/>
563
- </file>
564
- <file name="remove-password.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/sanitize/visitors/remove-password.js">
565
- <metrics statements="3" coveredstatements="1" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
566
- <line num="3" count="1" type="stmt"/>
567
- <line num="4" count="0" type="cond" truecount="0" falsecount="2"/>
568
- <line num="5" count="0" type="stmt"/>
569
- </file>
570
- <file name="remove-private.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/sanitize/visitors/remove-private.js">
571
- <metrics statements="5" coveredstatements="2" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
572
- <line num="3" count="1" type="stmt"/>
573
- <line num="5" count="1" type="stmt"/>
574
- <line num="6" count="0" type="stmt"/>
575
- <line num="8" count="0" type="cond" truecount="0" falsecount="2"/>
576
- <line num="9" count="0" type="stmt"/>
577
- </file>
578
- <file name="remove-restricted-relations.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/sanitize/visitors/remove-restricted-relations.js">
579
- <metrics statements="37" coveredstatements="24" conditionals="14" coveredconditionals="7" methods="7" coveredmethods="5"/>
580
- <line num="3" count="1" type="stmt"/>
581
- <line num="5" count="1" type="stmt"/>
582
- <line num="7" count="1" type="stmt"/>
583
- <line num="9" count="1" type="stmt"/>
584
- <line num="10" count="4" type="stmt"/>
585
- <line num="12" count="4" type="cond" truecount="1" falsecount="1"/>
586
- <line num="13" count="0" type="stmt"/>
587
- <line num="16" count="4" type="stmt"/>
588
- <line num="17" count="0" type="stmt"/>
589
- <line num="19" count="0" type="stmt"/>
590
- <line num="20" count="0" type="stmt"/>
591
- <line num="21" count="0" type="stmt"/>
592
- <line num="23" count="0" type="cond" truecount="0" falsecount="2"/>
593
- <line num="24" count="0" type="stmt"/>
594
- <line num="29" count="0" type="cond" truecount="0" falsecount="2"/>
595
- <line num="30" count="0" type="stmt"/>
596
- <line num="32" count="0" type="stmt"/>
597
- <line num="36" count="4" type="stmt"/>
598
- <line num="37" count="2" type="stmt"/>
599
- <line num="39" count="2" type="stmt"/>
600
- <line num="42" count="2" type="cond" truecount="1" falsecount="1"/>
601
- <line num="43" count="2" type="stmt"/>
602
- <line num="47" count="4" type="stmt"/>
603
- <line num="48" count="4" type="stmt"/>
604
- <line num="51" count="4" type="cond" truecount="1" falsecount="1"/>
605
- <line num="52" count="0" type="stmt"/>
606
- <line num="53" count="0" type="stmt"/>
607
- <line num="57" count="4" type="cond" truecount="4" falsecount="0"/>
608
- <line num="59" count="2" type="stmt"/>
609
- <line num="63" count="2" type="stmt"/>
610
- <line num="66" count="1" type="stmt"/>
611
- <line num="67" count="2" type="stmt"/>
612
- <line num="68" count="2" type="stmt"/>
613
- <line num="69" count="2" type="stmt"/>
614
- <line num="70" count="0" type="stmt"/>
615
- <line num="72" count="2" type="stmt"/>
616
- <line num="76" count="2" type="stmt"/>
617
- </file>
618
- <file name="restricted-fields.js" path="/Users/alex/dev/strapi/strapi/packages/core/utils/lib/sanitize/visitors/restricted-fields.js">
619
- <metrics statements="15" coveredstatements="2" conditionals="9" coveredconditionals="0" methods="3" coveredmethods="0"/>
620
- <line num="3" count="1" type="stmt"/>
621
- <line num="5" count="1" type="stmt"/>
622
- <line num="7" count="0" type="stmt"/>
623
- <line num="9" count="0" type="cond" truecount="0" falsecount="2"/>
624
- <line num="10" count="0" type="stmt"/>
625
- <line num="11" count="0" type="stmt"/>
626
- <line num="15" count="0" type="cond" truecount="0" falsecount="2"/>
627
- <line num="16" count="0" type="stmt"/>
628
- <line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
629
- <line num="21" count="0" type="stmt"/>
630
- <line num="22" count="0" type="stmt"/>
631
- <line num="26" count="0" type="stmt"/>
632
- <line num="27" count="0" type="stmt"/>
633
- <line num="29" count="0" type="cond" truecount="0" falsecount="2"/>
634
- <line num="30" count="0" type="stmt"/>
635
- </file>
636
- </package>
637
- </project>
638
- </coverage>