@mx-space/api-client 0.7.2 → 0.7.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.
Files changed (70) hide show
  1. package/build/index.cjs.js +18 -0
  2. package/build/index.cjs.js.map +1 -1
  3. package/build/index.cjs.min.js +1 -1
  4. package/build/index.cjs.min.js.map +1 -1
  5. package/build/index.esm.js +18 -1
  6. package/build/index.esm.js.map +1 -1
  7. package/build/index.esm.min.js +1 -1
  8. package/build/index.esm.min.js.map +1 -1
  9. package/build/index.umd.js +18 -0
  10. package/build/index.umd.js.map +1 -1
  11. package/build/index.umd.min.js +1 -1
  12. package/build/index.umd.min.js.map +1 -1
  13. package/controllers/index.ts +4 -0
  14. package/controllers/severless.ts +31 -0
  15. package/controllers/snippet.ts +2 -2
  16. package/coverage/clover.xml +201 -188
  17. package/coverage/coverage-final.json +26 -25
  18. package/coverage/lcov-report/adaptors/axios.ts.html +4 -4
  19. package/coverage/lcov-report/adaptors/index.html +1 -1
  20. package/coverage/lcov-report/adaptors/umi-request.ts.html +1 -1
  21. package/coverage/lcov-report/controllers/aggregate.ts.html +4 -4
  22. package/coverage/lcov-report/controllers/base.ts.html +3 -3
  23. package/coverage/lcov-report/controllers/category.ts.html +6 -6
  24. package/coverage/lcov-report/controllers/comment.ts.html +3 -3
  25. package/coverage/lcov-report/controllers/index.html +26 -11
  26. package/coverage/lcov-report/controllers/index.ts.html +41 -29
  27. package/coverage/lcov-report/controllers/link.ts.html +4 -4
  28. package/coverage/lcov-report/controllers/note.ts.html +4 -4
  29. package/coverage/lcov-report/controllers/page.ts.html +4 -4
  30. package/coverage/lcov-report/controllers/post.ts.html +4 -4
  31. package/coverage/lcov-report/controllers/project.ts.html +4 -4
  32. package/coverage/lcov-report/controllers/recently.ts.html +3 -3
  33. package/coverage/lcov-report/controllers/say.ts.html +4 -4
  34. package/coverage/lcov-report/controllers/search.ts.html +3 -3
  35. package/coverage/lcov-report/controllers/severless.ts.html +178 -0
  36. package/coverage/lcov-report/controllers/snippet.ts.html +5 -5
  37. package/coverage/lcov-report/controllers/user.ts.html +3 -3
  38. package/coverage/lcov-report/core/attach-request.ts.html +13 -13
  39. package/coverage/lcov-report/core/client.ts.html +63 -63
  40. package/coverage/lcov-report/core/error.ts.html +2 -2
  41. package/coverage/lcov-report/core/index.html +1 -1
  42. package/coverage/lcov-report/core/index.ts.html +3 -3
  43. package/coverage/lcov-report/index.html +15 -15
  44. package/coverage/lcov-report/models/aggregate.ts.html +1 -1
  45. package/coverage/lcov-report/models/category.ts.html +4 -4
  46. package/coverage/lcov-report/models/index.html +1 -1
  47. package/coverage/lcov-report/utils/auto-bind.ts.html +20 -20
  48. package/coverage/lcov-report/utils/index.html +1 -1
  49. package/coverage/lcov-report/utils/index.ts.html +7 -7
  50. package/coverage/lcov.info +299 -272
  51. package/esm/controllers/index.d.ts +4 -3
  52. package/esm/controllers/index.js +4 -1
  53. package/esm/controllers/index.js.map +1 -1
  54. package/esm/controllers/severless.d.ts +24 -0
  55. package/esm/controllers/severless.js +16 -0
  56. package/esm/controllers/severless.js.map +1 -0
  57. package/esm/controllers/snippet.d.ts +4 -4
  58. package/esm/controllers/snippet.js.map +1 -1
  59. package/lib/controllers/index.d.ts +4 -3
  60. package/lib/controllers/index.js +5 -1
  61. package/lib/controllers/index.js.map +1 -1
  62. package/lib/controllers/severless.d.ts +24 -0
  63. package/lib/controllers/severless.js +20 -0
  64. package/lib/controllers/severless.js.map +1 -0
  65. package/lib/controllers/snippet.d.ts +4 -4
  66. package/lib/controllers/snippet.js.map +1 -1
  67. package/package.json +2 -2
  68. package/types/controllers/index.d.ts +4 -3
  69. package/types/controllers/severless.d.ts +24 -0
  70. package/types/controllers/snippet.d.ts +4 -4
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1644301197000" clover="3.2.0">
3
- <project timestamp="1644301197000" name="All files">
4
- <metrics statements="459" coveredstatements="432" conditionals="130" coveredconditionals="99" methods="157" coveredmethods="142" elements="746" coveredelements="673" complexity="0" loc="459" ncloc="459" packages="6" files="29" classes="29"/>
2
+ <coverage generated="1647006452971" clover="3.2.0">
3
+ <project timestamp="1647006452971" name="All files">
4
+ <metrics statements="469" coveredstatements="442" conditionals="130" coveredconditionals="99" methods="161" coveredmethods="146" elements="760" coveredelements="687" complexity="0" loc="469" ncloc="469" packages="6" files="30" classes="30"/>
5
5
  <package name="__tests__.helpers">
6
6
  <metrics statements="89" coveredstatements="82" conditionals="15" coveredconditionals="10" methods="25" coveredmethods="24"/>
7
7
  <file name="adaptor-test.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/__tests__/helpers/adaptor-test.ts">
@@ -76,26 +76,26 @@
76
76
  </file>
77
77
  <file name="instance.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/__tests__/helpers/instance.ts">
78
78
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
79
- <line num="1" count="12" type="stmt"/>
80
- <line num="2" count="12" type="stmt"/>
81
- <line num="5" count="12" type="stmt"/>
82
- <line num="8" count="12" type="stmt"/>
83
- <line num="9" count="12" type="stmt"/>
84
- <line num="10" count="12" type="stmt"/>
79
+ <line num="1" count="13" type="stmt"/>
80
+ <line num="2" count="13" type="stmt"/>
81
+ <line num="5" count="13" type="stmt"/>
82
+ <line num="8" count="13" type="stmt"/>
83
+ <line num="9" count="13" type="stmt"/>
84
+ <line num="10" count="13" type="stmt"/>
85
85
  </file>
86
86
  <file name="response.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/__tests__/helpers/response.ts">
87
87
  <metrics statements="19" coveredstatements="16" conditionals="11" coveredconditionals="7" methods="5" coveredmethods="5"/>
88
- <line num="2" count="12" type="stmt"/>
89
- <line num="4" count="53" type="stmt"/>
90
- <line num="6" count="12" type="cond" truecount="1" falsecount="0"/>
91
- <line num="7" count="53" type="stmt"/>
92
- <line num="13" count="53" type="stmt"/>
93
- <line num="14" count="53" type="stmt"/>
94
- <line num="15" count="53" type="cond" truecount="1" falsecount="1"/>
95
- <line num="21" count="53" type="stmt"/>
88
+ <line num="2" count="13" type="stmt"/>
89
+ <line num="4" count="54" type="stmt"/>
90
+ <line num="6" count="13" type="cond" truecount="1" falsecount="0"/>
91
+ <line num="7" count="54" type="stmt"/>
92
+ <line num="13" count="54" type="stmt"/>
93
+ <line num="14" count="54" type="stmt"/>
94
+ <line num="15" count="54" type="cond" truecount="1" falsecount="1"/>
95
+ <line num="21" count="54" type="stmt"/>
96
96
  <line num="23" count="0" type="stmt"/>
97
- <line num="31" count="53" type="stmt"/>
98
- <line num="34" count="12" type="stmt"/>
97
+ <line num="31" count="54" type="stmt"/>
98
+ <line num="34" count="13" type="stmt"/>
99
99
  <line num="35" count="18" type="stmt"/>
100
100
  <line num="36" count="18" type="cond" truecount="0" falsecount="1"/>
101
101
  <line num="37" count="0" type="stmt"/>
@@ -110,9 +110,9 @@
110
110
  <metrics statements="22" coveredstatements="13" conditionals="8" coveredconditionals="1" methods="12" coveredmethods="6"/>
111
111
  <file name="axios.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/adaptors/axios.ts">
112
112
  <metrics statements="13" coveredstatements="7" conditionals="8" coveredconditionals="1" methods="6" coveredmethods="3"/>
113
- <line num="1" count="14" type="stmt"/>
114
- <line num="3" count="14" type="stmt"/>
115
- <line num="6" count="14" type="stmt"/>
113
+ <line num="1" count="15" type="stmt"/>
114
+ <line num="3" count="15" type="stmt"/>
115
+ <line num="6" count="15" type="stmt"/>
116
116
  <line num="11" count="2" type="stmt"/>
117
117
  <line num="16" count="6" type="stmt"/>
118
118
  <line num="19" count="1" type="cond" truecount="1" falsecount="1"/>
@@ -138,12 +138,12 @@
138
138
  </file>
139
139
  </package>
140
140
  <package name="controllers">
141
- <metrics statements="195" coveredstatements="193" conditionals="29" coveredconditionals="27" methods="79" coveredmethods="74"/>
141
+ <metrics statements="205" coveredstatements="203" conditionals="29" coveredconditionals="27" methods="83" coveredmethods="78"/>
142
142
  <file name="aggregate.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/aggregate.ts">
143
143
  <metrics statements="13" coveredstatements="13" conditionals="5" coveredconditionals="4" methods="6" coveredmethods="6"/>
144
- <line num="12" count="15" type="stmt"/>
145
- <line num="13" count="15" type="stmt"/>
146
- <line num="25" count="15" type="stmt"/>
144
+ <line num="12" count="16" type="stmt"/>
145
+ <line num="13" count="16" type="stmt"/>
146
+ <line num="25" count="16" type="stmt"/>
147
147
  <line num="26" count="4" type="stmt"/>
148
148
  <line num="27" count="4" type="stmt"/>
149
149
  <line num="28" count="4" type="stmt"/>
@@ -157,8 +157,8 @@
157
157
  </file>
158
158
  <file name="base.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/base.ts">
159
159
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
160
- <line num="3" count="15" type="stmt"/>
161
- <line num="6" count="15" type="stmt"/>
160
+ <line num="3" count="16" type="stmt"/>
161
+ <line num="6" count="16" type="stmt"/>
162
162
  <line num="8" count="11" type="stmt"/>
163
163
  <line num="9" count="11" type="stmt"/>
164
164
  <line num="12" count="3" type="stmt"/>
@@ -168,11 +168,11 @@
168
168
  </file>
169
169
  <file name="category.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/category.ts">
170
170
  <metrics statements="30" coveredstatements="29" conditionals="4" coveredconditionals="3" methods="8" coveredmethods="8"/>
171
- <line num="8" count="15" type="stmt"/>
172
- <line num="9" count="15" type="stmt"/>
173
- <line num="11" count="15" type="stmt"/>
174
- <line num="12" count="15" type="stmt"/>
175
- <line num="30" count="15" type="stmt"/>
171
+ <line num="8" count="16" type="stmt"/>
172
+ <line num="9" count="16" type="stmt"/>
173
+ <line num="11" count="16" type="stmt"/>
174
+ <line num="12" count="16" type="stmt"/>
175
+ <line num="30" count="16" type="stmt"/>
176
176
  <line num="31" count="4" type="stmt"/>
177
177
  <line num="32" count="4" type="stmt"/>
178
178
  <line num="33" count="4" type="stmt"/>
@@ -201,8 +201,8 @@
201
201
  </file>
202
202
  <file name="comment.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/comment.ts">
203
203
  <metrics statements="12" coveredstatements="12" conditionals="5" coveredconditionals="5" methods="6" coveredmethods="6"/>
204
- <line num="7" count="15" type="stmt"/>
205
- <line num="20" count="15" type="stmt"/>
204
+ <line num="7" count="16" type="stmt"/>
205
+ <line num="20" count="16" type="stmt"/>
206
206
  <line num="21" count="4" type="stmt"/>
207
207
  <line num="22" count="4" type="stmt"/>
208
208
  <line num="24" count="4" type="stmt"/>
@@ -215,41 +215,43 @@
215
215
  <line num="64" count="1" type="stmt"/>
216
216
  </file>
217
217
  <file name="index.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/index.ts">
218
- <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="13" coveredmethods="9"/>
219
- <line num="1" count="15" type="stmt"/>
220
- <line num="2" count="15" type="stmt"/>
221
- <line num="3" count="15" type="stmt"/>
222
- <line num="4" count="15" type="stmt"/>
223
- <line num="5" count="15" type="stmt"/>
224
- <line num="6" count="15" type="stmt"/>
225
- <line num="7" count="15" type="stmt"/>
226
- <line num="8" count="15" type="stmt"/>
227
- <line num="9" count="15" type="stmt"/>
228
- <line num="10" count="15" type="stmt"/>
229
- <line num="11" count="15" type="stmt"/>
230
- <line num="12" count="15" type="stmt"/>
231
- <line num="13" count="15" type="stmt"/>
232
- <line num="15" count="15" type="stmt"/>
233
- <line num="31" count="15" type="stmt"/>
234
- <line num="53" count="16" type="stmt"/>
235
- <line num="54" count="16" type="stmt"/>
236
- <line num="55" count="15" type="stmt"/>
237
- <line num="56" count="16" type="stmt"/>
238
- <line num="57" count="18" type="stmt"/>
239
- <line num="58" count="15" type="stmt"/>
240
- <line num="59" count="20" type="stmt"/>
241
- <line num="60" count="15" type="stmt"/>
218
+ <metrics statements="30" coveredstatements="30" conditionals="0" coveredconditionals="0" methods="14" coveredmethods="10"/>
219
+ <line num="1" count="16" type="stmt"/>
220
+ <line num="2" count="16" type="stmt"/>
221
+ <line num="3" count="16" type="stmt"/>
222
+ <line num="4" count="16" type="stmt"/>
223
+ <line num="5" count="16" type="stmt"/>
224
+ <line num="6" count="16" type="stmt"/>
225
+ <line num="7" count="16" type="stmt"/>
226
+ <line num="8" count="16" type="stmt"/>
227
+ <line num="9" count="16" type="stmt"/>
228
+ <line num="10" count="16" type="stmt"/>
229
+ <line num="11" count="16" type="stmt"/>
230
+ <line num="12" count="16" type="stmt"/>
231
+ <line num="13" count="16" type="stmt"/>
232
+ <line num="14" count="16" type="stmt"/>
233
+ <line num="16" count="16" type="stmt"/>
234
+ <line num="33" count="16" type="stmt"/>
235
+ <line num="56" count="17" type="stmt"/>
236
+ <line num="57" count="17" type="stmt"/>
237
+ <line num="58" count="16" type="stmt"/>
238
+ <line num="59" count="17" type="stmt"/>
239
+ <line num="60" count="19" type="stmt"/>
242
240
  <line num="61" count="16" type="stmt"/>
243
- <line num="62" count="15" type="stmt"/>
241
+ <line num="62" count="21" type="stmt"/>
244
242
  <line num="63" count="16" type="stmt"/>
245
- <line num="64" count="16" type="stmt"/>
243
+ <line num="64" count="17" type="stmt"/>
246
244
  <line num="65" count="16" type="stmt"/>
245
+ <line num="66" count="17" type="stmt"/>
246
+ <line num="67" count="17" type="stmt"/>
247
+ <line num="68" count="17" type="stmt"/>
248
+ <line num="69" count="17" type="stmt"/>
247
249
  </file>
248
250
  <file name="link.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/link.ts">
249
251
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
250
- <line num="3" count="15" type="stmt"/>
251
- <line num="5" count="15" type="stmt"/>
252
- <line num="17" count="15" type="stmt"/>
252
+ <line num="3" count="16" type="stmt"/>
253
+ <line num="5" count="16" type="stmt"/>
254
+ <line num="17" count="16" type="stmt"/>
253
255
  <line num="21" count="4" type="stmt"/>
254
256
  <line num="22" count="4" type="stmt"/>
255
257
  <line num="23" count="4" type="stmt"/>
@@ -258,8 +260,8 @@
258
260
  </file>
259
261
  <file name="note.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/note.ts">
260
262
  <metrics statements="15" coveredstatements="15" conditionals="6" coveredconditionals="6" methods="7" coveredmethods="7"/>
261
- <line num="7" count="15" type="stmt"/>
262
- <line num="26" count="15" type="stmt"/>
263
+ <line num="7" count="16" type="stmt"/>
264
+ <line num="26" count="16" type="stmt"/>
263
265
  <line num="27" count="6" type="stmt"/>
264
266
  <line num="28" count="6" type="stmt"/>
265
267
  <line num="30" count="6" type="stmt"/>
@@ -276,8 +278,8 @@
276
278
  </file>
277
279
  <file name="page.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/page.ts">
278
280
  <metrics statements="11" coveredstatements="11" conditionals="3" coveredconditionals="3" methods="5" coveredmethods="5"/>
279
- <line num="7" count="15" type="stmt"/>
280
- <line num="25" count="15" type="stmt"/>
281
+ <line num="7" count="16" type="stmt"/>
282
+ <line num="25" count="16" type="stmt"/>
281
283
  <line num="26" count="4" type="stmt"/>
282
284
  <line num="27" count="4" type="stmt"/>
283
285
  <line num="29" count="4" type="stmt"/>
@@ -290,8 +292,8 @@
290
292
  </file>
291
293
  <file name="post.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/post.ts">
292
294
  <metrics statements="14" coveredstatements="14" conditionals="5" coveredconditionals="5" methods="6" coveredmethods="6"/>
293
- <line num="7" count="15" type="stmt"/>
294
- <line num="26" count="15" type="stmt"/>
295
+ <line num="7" count="16" type="stmt"/>
296
+ <line num="26" count="16" type="stmt"/>
295
297
  <line num="27" count="8" type="stmt"/>
296
298
  <line num="28" count="8" type="stmt"/>
297
299
  <line num="31" count="8" type="stmt"/>
@@ -307,9 +309,9 @@
307
309
  </file>
308
310
  <file name="project.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/project.ts">
309
311
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
310
- <line num="3" count="15" type="stmt"/>
311
- <line num="5" count="15" type="stmt"/>
312
- <line num="16" count="15" type="stmt"/>
312
+ <line num="3" count="16" type="stmt"/>
313
+ <line num="5" count="16" type="stmt"/>
314
+ <line num="16" count="16" type="stmt"/>
313
315
  <line num="20" count="3" type="stmt"/>
314
316
  <line num="21" count="3" type="stmt"/>
315
317
  <line num="22" count="3" type="stmt"/>
@@ -318,8 +320,8 @@
318
320
  </file>
319
321
  <file name="recently.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/recently.ts">
320
322
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
321
- <line num="5" count="15" type="stmt"/>
322
- <line num="18" count="15" type="stmt"/>
323
+ <line num="5" count="16" type="stmt"/>
324
+ <line num="18" count="16" type="stmt"/>
323
325
  <line num="19" count="4" type="stmt"/>
324
326
  <line num="20" count="4" type="stmt"/>
325
327
  <line num="22" count="4" type="stmt"/>
@@ -331,9 +333,9 @@
331
333
  </file>
332
334
  <file name="say.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/say.ts">
333
335
  <metrics statements="10" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="2"/>
334
- <line num="5" count="15" type="stmt"/>
335
- <line num="7" count="15" type="stmt"/>
336
- <line num="18" count="15" type="stmt"/>
336
+ <line num="5" count="16" type="stmt"/>
337
+ <line num="7" count="16" type="stmt"/>
338
+ <line num="18" count="16" type="stmt"/>
337
339
  <line num="22" count="4" type="stmt"/>
338
340
  <line num="23" count="4" type="stmt"/>
339
341
  <line num="25" count="4" type="stmt"/>
@@ -344,8 +346,8 @@
344
346
  </file>
345
347
  <file name="search.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/search.ts">
346
348
  <metrics statements="9" coveredstatements="9" conditionals="1" coveredconditionals="1" methods="4" coveredmethods="4"/>
347
- <line num="7" count="15" type="stmt"/>
348
- <line num="27" count="15" type="stmt"/>
349
+ <line num="7" count="16" type="stmt"/>
350
+ <line num="27" count="16" type="stmt"/>
349
351
  <line num="28" count="4" type="stmt"/>
350
352
  <line num="29" count="4" type="stmt"/>
351
353
  <line num="31" count="4" type="stmt"/>
@@ -354,10 +356,21 @@
354
356
  <line num="71" count="6" type="stmt"/>
355
357
  <line num="83" count="1" type="stmt"/>
356
358
  </file>
359
+ <file name="severless.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/severless.ts">
360
+ <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
361
+ <line num="4" count="16" type="stmt"/>
362
+ <line num="16" count="16" type="stmt"/>
363
+ <line num="17" count="4" type="stmt"/>
364
+ <line num="18" count="4" type="stmt"/>
365
+ <line num="20" count="4" type="stmt"/>
366
+ <line num="21" count="4" type="stmt"/>
367
+ <line num="25" count="1" type="stmt"/>
368
+ <line num="29" count="1" type="stmt"/>
369
+ </file>
357
370
  <file name="snippet.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/snippet.ts">
358
371
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
359
- <line num="5" count="15" type="stmt"/>
360
- <line num="17" count="15" type="stmt"/>
372
+ <line num="5" count="16" type="stmt"/>
373
+ <line num="17" count="16" type="stmt"/>
361
374
  <line num="18" count="4" type="stmt"/>
362
375
  <line num="19" count="4" type="stmt"/>
363
376
  <line num="21" count="4" type="stmt"/>
@@ -368,8 +381,8 @@
368
381
  </file>
369
382
  <file name="user.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/user.ts">
370
383
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
371
- <line num="5" count="15" type="stmt"/>
372
- <line num="18" count="15" type="stmt"/>
384
+ <line num="5" count="16" type="stmt"/>
385
+ <line num="18" count="16" type="stmt"/>
373
386
  <line num="19" count="4" type="stmt"/>
374
387
  <line num="20" count="4" type="stmt"/>
375
388
  <line num="23" count="4" type="stmt"/>
@@ -384,68 +397,68 @@
384
397
  <metrics statements="103" coveredstatements="101" conditionals="42" coveredconditionals="34" methods="30" coveredmethods="29"/>
385
398
  <file name="attach-request.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/attach-request.ts">
386
399
  <metrics statements="18" coveredstatements="16" conditionals="10" coveredconditionals="7" methods="6" coveredmethods="6"/>
387
- <line num="3" count="15" type="stmt"/>
388
- <line num="4" count="28" type="stmt"/>
389
- <line num="7" count="70" type="cond" truecount="1" falsecount="0"/>
390
- <line num="8" count="70" type="stmt"/>
391
- <line num="10" count="70" type="cond" truecount="2" falsecount="0"/>
392
- <line num="13" count="28" type="stmt"/>
393
- <line num="14" count="112" type="stmt"/>
400
+ <line num="3" count="16" type="stmt"/>
401
+ <line num="4" count="29" type="stmt"/>
402
+ <line num="7" count="71" type="cond" truecount="1" falsecount="0"/>
403
+ <line num="8" count="71" type="stmt"/>
404
+ <line num="10" count="71" type="cond" truecount="2" falsecount="0"/>
405
+ <line num="13" count="29" type="stmt"/>
406
+ <line num="14" count="116" type="stmt"/>
394
407
  <line num="16" count="5" type="stmt"/>
395
- <line num="23" count="70" type="cond" truecount="1" falsecount="2"/>
408
+ <line num="23" count="71" type="cond" truecount="1" falsecount="2"/>
396
409
  <line num="24" count="0" type="stmt"/>
397
- <line num="27" count="70" type="cond" truecount="0" falsecount="1"/>
410
+ <line num="27" count="71" type="cond" truecount="0" falsecount="1"/>
398
411
  <line num="28" count="0" type="stmt"/>
399
- <line num="30" count="70" type="stmt"/>
400
- <line num="32" count="70" type="stmt"/>
412
+ <line num="30" count="71" type="stmt"/>
413
+ <line num="32" count="71" type="stmt"/>
401
414
  <line num="33" count="73" type="cond" truecount="1" falsecount="0"/>
402
415
  <line num="37" count="31" type="stmt"/>
403
416
  <line num="39" count="42" type="stmt"/>
404
- <line num="42" count="70" type="stmt"/>
417
+ <line num="42" count="71" type="stmt"/>
405
418
  </file>
406
419
  <file name="client.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/client.ts">
407
420
  <metrics statements="78" coveredstatements="78" conditionals="32" coveredconditionals="27" methods="23" coveredmethods="22"/>
408
- <line num="1" count="15" type="stmt"/>
409
- <line num="11" count="15" type="stmt"/>
410
- <line num="12" count="15" type="stmt"/>
411
- <line num="13" count="15" type="stmt"/>
412
- <line num="14" count="15" type="stmt"/>
413
- <line num="16" count="15" type="stmt"/>
414
- <line num="24" count="28" type="stmt"/>
415
- <line num="25" count="28" type="stmt"/>
416
- <line num="28" count="28" type="stmt"/>
417
- <line num="30" count="28" type="stmt"/>
418
- <line num="32" count="28" type="stmt"/>
419
- <line num="36" count="28" type="stmt"/>
420
- <line num="37" count="448" type="stmt"/>
421
- <line num="39" count="91" type="stmt"/>
422
- <line num="40" count="91" type="cond" truecount="1" falsecount="0"/>
423
- <line num="41" count="16" type="stmt"/>
424
- <line num="47" count="75" type="stmt"/>
425
- <line num="58" count="19" type="cond" truecount="2" falsecount="0"/>
426
- <line num="59" count="19" type="stmt"/>
427
- <line num="60" count="57" type="stmt"/>
428
- <line num="62" count="57" type="cond" truecount="2" falsecount="0"/>
421
+ <line num="1" count="16" type="stmt"/>
422
+ <line num="11" count="16" type="stmt"/>
423
+ <line num="12" count="16" type="stmt"/>
424
+ <line num="13" count="16" type="stmt"/>
425
+ <line num="14" count="16" type="stmt"/>
426
+ <line num="16" count="16" type="stmt"/>
427
+ <line num="24" count="29" type="stmt"/>
428
+ <line num="25" count="29" type="stmt"/>
429
+ <line num="28" count="29" type="stmt"/>
430
+ <line num="30" count="29" type="stmt"/>
431
+ <line num="32" count="29" type="stmt"/>
432
+ <line num="36" count="29" type="stmt"/>
433
+ <line num="37" count="493" type="stmt"/>
434
+ <line num="39" count="93" type="stmt"/>
435
+ <line num="40" count="93" type="cond" truecount="1" falsecount="0"/>
436
+ <line num="41" count="17" type="stmt"/>
437
+ <line num="47" count="76" type="stmt"/>
438
+ <line num="58" count="20" type="cond" truecount="2" falsecount="0"/>
439
+ <line num="59" count="20" type="stmt"/>
440
+ <line num="60" count="61" type="stmt"/>
441
+ <line num="62" count="61" type="cond" truecount="2" falsecount="0"/>
429
442
  <line num="63" count="12" type="stmt"/>
430
443
  <line num="64" count="24" type="stmt"/>
431
- <line num="67" count="45" type="stmt"/>
432
- <line num="72" count="69" type="stmt"/>
433
- <line num="74" count="75" type="stmt"/>
434
- <line num="83" count="76" type="stmt"/>
435
- <line num="87" count="77" type="stmt"/>
436
- <line num="96" count="75" type="cond" truecount="1" falsecount="1"/>
437
- <line num="103" count="77" type="stmt"/>
438
- <line num="107" count="76" type="cond" truecount="1" falsecount="0"/>
444
+ <line num="67" count="49" type="stmt"/>
445
+ <line num="72" count="73" type="stmt"/>
446
+ <line num="74" count="76" type="stmt"/>
447
+ <line num="83" count="77" type="stmt"/>
448
+ <line num="87" count="78" type="stmt"/>
449
+ <line num="96" count="76" type="cond" truecount="1" falsecount="1"/>
450
+ <line num="103" count="78" type="stmt"/>
451
+ <line num="107" count="77" type="cond" truecount="1" falsecount="0"/>
439
452
  <line num="108" count="55" type="stmt"/>
440
- <line num="110" count="76" type="stmt"/>
441
- <line num="115" count="28" type="stmt"/>
442
- <line num="116" count="28" type="stmt"/>
443
- <line num="117" count="28" type="stmt"/>
444
- <line num="125" count="28" type="stmt"/>
445
- <line num="127" count="28" type="stmt"/>
446
- <line num="128" count="28" type="stmt"/>
447
- <line num="130" count="28" type="stmt"/>
448
- <line num="132" count="112" type="cond" truecount="1" falsecount="0"/>
453
+ <line num="110" count="77" type="stmt"/>
454
+ <line num="115" count="29" type="stmt"/>
455
+ <line num="116" count="29" type="stmt"/>
456
+ <line num="117" count="29" type="stmt"/>
457
+ <line num="125" count="29" type="stmt"/>
458
+ <line num="127" count="29" type="stmt"/>
459
+ <line num="128" count="29" type="stmt"/>
460
+ <line num="130" count="29" type="stmt"/>
461
+ <line num="132" count="113" type="cond" truecount="1" falsecount="0"/>
449
462
  <line num="133" count="2" type="stmt"/>
450
463
  <line num="134" count="2" type="cond" truecount="2" falsecount="0"/>
451
464
  <line num="135" count="1" type="stmt"/>
@@ -454,39 +467,39 @@
454
467
  <line num="139" count="1" type="stmt"/>
455
468
  <line num="140" count="1" type="stmt"/>
456
469
  <line num="141" count="1" type="cond" truecount="1" falsecount="1"/>
457
- <line num="144" count="110" type="cond" truecount="1" falsecount="0"/>
458
- <line num="145" count="75" type="stmt"/>
459
- <line num="146" count="75" type="stmt"/>
460
- <line num="147" count="75" type="stmt"/>
461
- <line num="149" count="75" type="stmt"/>
462
- <line num="150" count="75" type="stmt"/>
470
+ <line num="144" count="111" type="cond" truecount="1" falsecount="0"/>
471
+ <line num="145" count="76" type="stmt"/>
472
+ <line num="146" count="76" type="stmt"/>
473
+ <line num="147" count="76" type="stmt"/>
474
+ <line num="149" count="76" type="stmt"/>
475
+ <line num="150" count="76" type="stmt"/>
463
476
  <line num="156" count="3" type="stmt"/>
464
- <line num="170" count="72" type="stmt"/>
465
- <line num="171" count="72" type="cond" truecount="1" falsecount="0"/>
477
+ <line num="170" count="73" type="stmt"/>
478
+ <line num="171" count="73" type="cond" truecount="1" falsecount="0"/>
466
479
  <line num="172" count="2" type="stmt"/>
467
- <line num="176" count="70" type="cond" truecount="2" falsecount="0"/>
468
- <line num="180" count="70" type="cond" truecount="3" falsecount="0"/>
469
- <line num="181" count="67" type="stmt"/>
470
- <line num="183" count="44" type="stmt"/>
471
- <line num="191" count="67" type="stmt"/>
480
+ <line num="176" count="71" type="cond" truecount="2" falsecount="0"/>
481
+ <line num="180" count="71" type="cond" truecount="3" falsecount="0"/>
482
+ <line num="181" count="68" type="stmt"/>
483
+ <line num="183" count="45" type="stmt"/>
484
+ <line num="191" count="68" type="stmt"/>
472
485
  <line num="193" count="10" type="stmt"/>
473
- <line num="203" count="70" type="stmt"/>
486
+ <line num="203" count="71" type="stmt"/>
474
487
  <line num="206" count="35" type="stmt"/>
475
488
  <line num="207" count="35" type="stmt"/>
476
- <line num="211" count="103" type="stmt"/>
477
- <line num="212" count="103" type="stmt"/>
478
- <line num="216" count="28" type="stmt"/>
479
- <line num="221" count="15" type="stmt"/>
480
- <line num="222" count="28" type="stmt"/>
481
- <line num="232" count="28" type="stmt"/>
482
- <line num="233" count="28" type="cond" truecount="2" falsecount="0"/>
483
- <line num="234" count="28" type="cond" truecount="1" falsecount="0"/>
489
+ <line num="211" count="106" type="stmt"/>
490
+ <line num="212" count="106" type="stmt"/>
491
+ <line num="216" count="29" type="stmt"/>
492
+ <line num="221" count="16" type="stmt"/>
493
+ <line num="222" count="29" type="stmt"/>
494
+ <line num="232" count="29" type="stmt"/>
495
+ <line num="233" count="29" type="cond" truecount="2" falsecount="0"/>
496
+ <line num="234" count="29" type="cond" truecount="1" falsecount="0"/>
484
497
  <line num="235" count="1" type="stmt"/>
485
- <line num="237" count="28" type="stmt"/>
498
+ <line num="237" count="29" type="stmt"/>
486
499
  </file>
487
500
  <file name="error.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/error.ts">
488
501
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
489
- <line num="1" count="15" type="stmt"/>
502
+ <line num="1" count="16" type="stmt"/>
490
503
  <line num="4" count="3" type="stmt"/>
491
504
  <line num="5" count="3" type="stmt"/>
492
505
  <line num="6" count="3" type="stmt"/>
@@ -494,8 +507,8 @@
494
507
  </file>
495
508
  <file name="index.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/index.ts">
496
509
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
497
- <line num="1" count="15" type="stmt"/>
498
- <line num="2" count="15" type="stmt"/>
510
+ <line num="1" count="16" type="stmt"/>
511
+ <line num="2" count="16" type="stmt"/>
499
512
  </file>
500
513
  </package>
501
514
  <package name="models">
@@ -508,46 +521,46 @@
508
521
  </file>
509
522
  <file name="category.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/models/category.ts">
510
523
  <metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
511
- <line num="4" count="15" type="cond" truecount="2" falsecount="0"/>
512
- <line num="5" count="15" type="stmt"/>
513
- <line num="6" count="15" type="stmt"/>
524
+ <line num="4" count="16" type="cond" truecount="2" falsecount="0"/>
525
+ <line num="5" count="16" type="stmt"/>
526
+ <line num="6" count="16" type="stmt"/>
514
527
  </file>
515
528
  </package>
516
529
  <package name="utils">
517
530
  <metrics statements="44" coveredstatements="37" conditionals="32" coveredconditionals="23" methods="9" coveredmethods="7"/>
518
531
  <file name="auto-bind.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/utils/auto-bind.ts">
519
532
  <metrics statements="22" coveredstatements="19" conditionals="13" coveredconditionals="9" methods="4" coveredmethods="3"/>
520
- <line num="5" count="16" type="stmt"/>
521
- <line num="6" count="71" type="stmt"/>
522
- <line num="8" count="71" type="stmt"/>
523
- <line num="9" count="93" type="stmt"/>
524
- <line num="10" count="412" type="stmt"/>
525
- <line num="17" count="71" type="stmt"/>
526
- <line num="20" count="16" type="cond" truecount="1" falsecount="0"/>
527
- <line num="21" count="71" type="stmt"/>
528
- <line num="22" count="319" type="stmt"/>
533
+ <line num="5" count="17" type="stmt"/>
534
+ <line num="6" count="75" type="stmt"/>
535
+ <line num="8" count="75" type="stmt"/>
536
+ <line num="9" count="97" type="stmt"/>
537
+ <line num="10" count="424" type="stmt"/>
538
+ <line num="17" count="75" type="stmt"/>
539
+ <line num="20" count="17" type="cond" truecount="1" falsecount="0"/>
540
+ <line num="21" count="75" type="stmt"/>
541
+ <line num="22" count="327" type="stmt"/>
529
542
  <line num="23" count="0" type="cond" truecount="0" falsecount="2"/>
530
- <line num="25" count="319" type="cond" truecount="0" falsecount="1"/>
543
+ <line num="25" count="327" type="cond" truecount="0" falsecount="1"/>
531
544
  <line num="26" count="0" type="stmt"/>
532
- <line num="29" count="319" type="cond" truecount="0" falsecount="1"/>
545
+ <line num="29" count="327" type="cond" truecount="0" falsecount="1"/>
533
546
  <line num="30" count="0" type="stmt"/>
534
- <line num="33" count="319" type="stmt"/>
535
- <line num="36" count="71" type="stmt"/>
536
- <line num="37" count="412" type="cond" truecount="3" falsecount="0"/>
537
- <line num="38" count="93" type="stmt"/>
538
- <line num="41" count="319" type="stmt"/>
539
- <line num="42" count="319" type="cond" truecount="3" falsecount="0"/>
540
- <line num="43" count="243" type="stmt"/>
541
- <line num="47" count="71" type="stmt"/>
547
+ <line num="33" count="327" type="stmt"/>
548
+ <line num="36" count="75" type="stmt"/>
549
+ <line num="37" count="424" type="cond" truecount="3" falsecount="0"/>
550
+ <line num="38" count="97" type="stmt"/>
551
+ <line num="41" count="327" type="stmt"/>
552
+ <line num="42" count="327" type="cond" truecount="3" falsecount="0"/>
553
+ <line num="43" count="247" type="stmt"/>
554
+ <line num="47" count="75" type="stmt"/>
542
555
  </file>
543
556
  <file name="index.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/utils/index.ts">
544
557
  <metrics statements="22" coveredstatements="18" conditionals="19" coveredconditionals="14" methods="5" coveredmethods="4"/>
545
- <line num="3" count="16" type="stmt"/>
546
- <line num="4" count="79" type="cond" truecount="3" falsecount="0"/>
547
- <line num="8" count="16" type="stmt"/>
558
+ <line num="3" count="17" type="stmt"/>
559
+ <line num="4" count="80" type="cond" truecount="3" falsecount="0"/>
560
+ <line num="8" count="17" type="stmt"/>
548
561
  <line num="9" count="0" type="stmt"/>
549
- <line num="16" count="85" type="cond" truecount="2" falsecount="0"/>
550
- <line num="17" count="16" type="stmt"/>
562
+ <line num="16" count="86" type="cond" truecount="2" falsecount="0"/>
563
+ <line num="17" count="17" type="stmt"/>
551
564
  <line num="18" count="9" type="cond" truecount="0" falsecount="1"/>
552
565
  <line num="19" count="0" type="stmt"/>
553
566
  <line num="21" count="9" type="cond" truecount="0" falsecount="1"/>
@@ -559,7 +572,7 @@
559
572
  <line num="32" count="4" type="stmt"/>
560
573
  <line num="33" count="4" type="stmt"/>
561
574
  <line num="36" count="5" type="stmt"/>
562
- <line num="39" count="16" type="stmt"/>
575
+ <line num="39" count="17" type="stmt"/>
563
576
  <line num="40" count="6" type="cond" truecount="2" falsecount="1"/>
564
577
  <line num="41" count="0" type="stmt"/>
565
578
  <line num="43" count="6" type="cond" truecount="2" falsecount="0"/>