@mx-space/api-client 0.7.3 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adaptors/umi-request.ts +1 -1
- package/build/index.cjs.js +26 -16
- package/build/index.cjs.js.map +1 -1
- package/build/index.cjs.min.js +1 -1
- package/build/index.cjs.min.js.map +1 -1
- package/build/index.esm.js +26 -16
- package/build/index.esm.js.map +1 -1
- package/build/index.esm.min.js +1 -1
- package/build/index.esm.min.js.map +1 -1
- package/build/index.umd.js +26 -16
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +1 -1
- package/build/index.umd.min.js.map +1 -1
- package/controllers/aggregate.ts +1 -1
- package/controllers/base.ts +1 -1
- package/controllers/category.ts +10 -10
- package/controllers/comment.ts +2 -2
- package/controllers/link.ts +20 -2
- package/controllers/note.ts +1 -1
- package/controllers/page.ts +1 -1
- package/controllers/post.ts +1 -1
- package/controllers/project.ts +2 -2
- package/controllers/recently.ts +1 -1
- package/controllers/say.ts +2 -2
- package/controllers/search.ts +2 -2
- package/controllers/severless.ts +1 -1
- package/controllers/snippet.ts +1 -1
- package/controllers/user.ts +2 -2
- package/core/attach-request.ts +4 -4
- package/core/client.ts +8 -14
- package/coverage/clover.xml +144 -136
- package/coverage/coverage-final.json +23 -22
- package/coverage/lcov-report/adaptors/axios.ts.html +1 -1
- package/coverage/lcov-report/adaptors/index.html +1 -1
- package/coverage/lcov-report/adaptors/umi-request.ts.html +2 -2
- package/coverage/lcov-report/controllers/aggregate.ts.html +4 -4
- package/coverage/lcov-report/controllers/base.ts.html +5 -5
- package/coverage/lcov-report/controllers/category.ts.html +16 -16
- package/coverage/lcov-report/controllers/comment.ts.html +5 -5
- package/coverage/lcov-report/controllers/index.html +10 -10
- package/coverage/lcov-report/controllers/index.ts.html +1 -1
- package/coverage/lcov-report/controllers/link.ts.html +54 -9
- package/coverage/lcov-report/controllers/note.ts.html +4 -4
- package/coverage/lcov-report/controllers/page.ts.html +4 -4
- package/coverage/lcov-report/controllers/post.ts.html +4 -4
- package/coverage/lcov-report/controllers/project.ts.html +5 -5
- package/coverage/lcov-report/controllers/recently.ts.html +4 -4
- package/coverage/lcov-report/controllers/say.ts.html +5 -5
- package/coverage/lcov-report/controllers/search.ts.html +5 -5
- package/coverage/lcov-report/controllers/severless.ts.html +4 -4
- package/coverage/lcov-report/controllers/snippet.ts.html +4 -4
- package/coverage/lcov-report/controllers/user.ts.html +5 -5
- package/coverage/lcov-report/core/attach-request.ts.html +14 -14
- package/coverage/lcov-report/core/client.ts.html +46 -64
- package/coverage/lcov-report/core/error.ts.html +1 -1
- package/coverage/lcov-report/core/index.html +15 -15
- package/coverage/lcov-report/core/index.ts.html +1 -1
- package/coverage/lcov-report/index.html +31 -31
- package/coverage/lcov-report/models/aggregate.ts.html +1 -1
- package/coverage/lcov-report/models/category.ts.html +1 -1
- package/coverage/lcov-report/models/index.html +1 -1
- package/coverage/lcov-report/utils/auto-bind.ts.html +10 -10
- package/coverage/lcov-report/utils/index.html +24 -9
- package/coverage/lcov-report/utils/index.ts.html +3 -3
- package/coverage/lcov-report/utils/path.ts.html +103 -0
- package/coverage/lcov.info +260 -242
- package/esm/adaptors/umi-request.js.map +1 -1
- package/esm/controllers/aggregate.d.ts +1 -1
- package/esm/controllers/aggregate.js.map +1 -1
- package/esm/controllers/base.d.ts +1 -1
- package/esm/controllers/base.js.map +1 -1
- package/esm/controllers/category.d.ts +6 -6
- package/esm/controllers/category.js +3 -3
- package/esm/controllers/category.js.map +1 -1
- package/esm/controllers/comment.d.ts +2 -2
- package/esm/controllers/comment.js.map +1 -1
- package/esm/controllers/link.d.ts +6 -2
- package/esm/controllers/link.js +10 -1
- package/esm/controllers/link.js.map +1 -1
- package/esm/controllers/note.d.ts +1 -1
- package/esm/controllers/note.js.map +1 -1
- package/esm/controllers/page.d.ts +1 -1
- package/esm/controllers/page.js.map +1 -1
- package/esm/controllers/post.d.ts +1 -1
- package/esm/controllers/post.js.map +1 -1
- package/esm/controllers/project.d.ts +2 -2
- package/esm/controllers/project.js +1 -1
- package/esm/controllers/project.js.map +1 -1
- package/esm/controllers/recently.d.ts +1 -1
- package/esm/controllers/recently.js.map +1 -1
- package/esm/controllers/say.d.ts +2 -2
- package/esm/controllers/say.js +1 -1
- package/esm/controllers/say.js.map +1 -1
- package/esm/controllers/search.d.ts +50 -50
- package/esm/controllers/search.js.map +1 -1
- package/esm/controllers/severless.d.ts +1 -1
- package/esm/controllers/severless.js.map +1 -1
- package/esm/controllers/snippet.d.ts +1 -1
- package/esm/controllers/snippet.js.map +1 -1
- package/esm/controllers/user.d.ts +1 -1
- package/esm/controllers/user.js +1 -1
- package/esm/controllers/user.js.map +1 -1
- package/esm/core/attach-request.js +4 -4
- package/esm/core/attach-request.js.map +1 -1
- package/esm/core/client.d.ts +0 -1
- package/esm/core/client.js +6 -11
- package/esm/core/client.js.map +1 -1
- package/esm/models/link.d.ts +1 -0
- package/esm/models/snippet.d.ts +1 -0
- package/esm/utils/path.d.ts +1 -0
- package/esm/utils/path.js +7 -0
- package/esm/utils/path.js.map +1 -0
- package/interfaces/request.ts +2 -2
- package/lib/controllers/aggregate.d.ts +1 -1
- package/lib/controllers/aggregate.js.map +1 -1
- package/lib/controllers/base.d.ts +1 -1
- package/lib/controllers/base.js.map +1 -1
- package/lib/controllers/category.d.ts +6 -6
- package/lib/controllers/category.js +3 -3
- package/lib/controllers/category.js.map +1 -1
- package/lib/controllers/comment.d.ts +2 -2
- package/lib/controllers/comment.js.map +1 -1
- package/lib/controllers/link.d.ts +6 -2
- package/lib/controllers/link.js +10 -1
- package/lib/controllers/link.js.map +1 -1
- package/lib/controllers/note.d.ts +1 -1
- package/lib/controllers/note.js.map +1 -1
- package/lib/controllers/page.d.ts +1 -1
- package/lib/controllers/page.js.map +1 -1
- package/lib/controllers/post.d.ts +1 -1
- package/lib/controllers/post.js.map +1 -1
- package/lib/controllers/project.d.ts +2 -2
- package/lib/controllers/project.js +1 -1
- package/lib/controllers/project.js.map +1 -1
- package/lib/controllers/recently.d.ts +1 -1
- package/lib/controllers/recently.js.map +1 -1
- package/lib/controllers/say.d.ts +2 -2
- package/lib/controllers/say.js +1 -1
- package/lib/controllers/say.js.map +1 -1
- package/lib/controllers/search.d.ts +50 -50
- package/lib/controllers/search.js.map +1 -1
- package/lib/controllers/severless.d.ts +1 -1
- package/lib/controllers/severless.js.map +1 -1
- package/lib/controllers/snippet.d.ts +1 -1
- package/lib/controllers/snippet.js.map +1 -1
- package/lib/controllers/user.d.ts +1 -1
- package/lib/controllers/user.js +1 -1
- package/lib/controllers/user.js.map +1 -1
- package/lib/core/attach-request.js +4 -4
- package/lib/core/attach-request.js.map +1 -1
- package/lib/core/client.d.ts +0 -1
- package/lib/core/client.js +6 -11
- package/lib/core/client.js.map +1 -1
- package/lib/models/link.d.ts +1 -0
- package/lib/models/snippet.d.ts +1 -0
- package/lib/utils/path.d.ts +1 -0
- package/lib/utils/path.js +11 -0
- package/lib/utils/path.js.map +1 -0
- package/models/link.ts +1 -0
- package/models/snippet.ts +1 -1
- package/package.json +3 -2
- package/readme.md +84 -0
- package/types/controllers/aggregate.d.ts +1 -1
- package/types/controllers/base.d.ts +1 -1
- package/types/controllers/category.d.ts +6 -6
- package/types/controllers/comment.d.ts +2 -2
- package/types/controllers/link.d.ts +6 -2
- package/types/controllers/note.d.ts +1 -1
- package/types/controllers/page.d.ts +1 -1
- package/types/controllers/post.d.ts +1 -1
- package/types/controllers/project.d.ts +2 -2
- package/types/controllers/recently.d.ts +1 -1
- package/types/controllers/say.d.ts +2 -2
- package/types/controllers/search.d.ts +50 -50
- package/types/controllers/severless.d.ts +1 -1
- package/types/controllers/snippet.d.ts +1 -1
- package/types/controllers/user.d.ts +1 -1
- package/types/core/client.d.ts +0 -1
- package/types/models/link.d.ts +1 -0
- package/types/models/snippet.d.ts +1 -0
- package/types/utils/path.d.ts +1 -0
- package/utils/path.ts +6 -0
package/coverage/clover.xml
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1647675053347" clover="3.2.0">
|
|
3
|
+
<project timestamp="1647675053347" name="All files">
|
|
4
|
+
<metrics statements="474" coveredstatements="447" conditionals="130" coveredconditionals="99" methods="163" coveredmethods="148" elements="767" coveredelements="694" complexity="0" loc="474" ncloc="474" packages="6" files="31" classes="31"/>
|
|
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">
|
|
8
8
|
<metrics statements="54" coveredstatements="50" conditionals="2" coveredconditionals="1" methods="17" coveredmethods="16"/>
|
|
9
9
|
<line num="1" count="2" type="stmt"/>
|
|
10
10
|
<line num="2" count="2" type="stmt"/>
|
|
11
|
-
<line num="
|
|
11
|
+
<line num="3" count="2" type="stmt"/>
|
|
12
12
|
<line num="6" count="2" type="stmt"/>
|
|
13
13
|
<line num="8" count="2" type="stmt"/>
|
|
14
14
|
<line num="10" count="2" type="stmt"/>
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
<metrics statements="10" coveredstatements="10" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
|
|
66
66
|
<line num="2" count="2" type="stmt"/>
|
|
67
67
|
<line num="3" count="2" type="stmt"/>
|
|
68
|
+
<line num="5" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
68
69
|
<line num="6" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
69
|
-
<line num="
|
|
70
|
+
<line num="8" count="2" type="stmt"/>
|
|
70
71
|
<line num="9" count="2" type="stmt"/>
|
|
71
72
|
<line num="10" count="2" type="stmt"/>
|
|
72
73
|
<line num="11" count="2" type="stmt"/>
|
|
73
|
-
<line num="
|
|
74
|
-
<line num="
|
|
75
|
-
<line num="19" count="2" type="stmt"/>
|
|
74
|
+
<line num="13" count="2" type="stmt"/>
|
|
75
|
+
<line num="18" count="2" type="stmt"/>
|
|
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"/>
|
|
@@ -86,15 +86,15 @@
|
|
|
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
88
|
<line num="2" count="13" type="stmt"/>
|
|
89
|
-
<line num="4" count="
|
|
89
|
+
<line num="4" count="56" type="stmt"/>
|
|
90
90
|
<line num="6" count="13" type="cond" truecount="1" falsecount="0"/>
|
|
91
|
-
<line num="7" count="
|
|
92
|
-
<line num="13" count="
|
|
93
|
-
<line num="14" count="
|
|
94
|
-
<line num="15" count="
|
|
95
|
-
<line num="21" count="
|
|
91
|
+
<line num="7" count="56" type="stmt"/>
|
|
92
|
+
<line num="13" count="56" type="stmt"/>
|
|
93
|
+
<line num="14" count="56" type="stmt"/>
|
|
94
|
+
<line num="15" count="56" type="cond" truecount="1" falsecount="1"/>
|
|
95
|
+
<line num="21" count="56" type="stmt"/>
|
|
96
96
|
<line num="23" count="0" type="stmt"/>
|
|
97
|
-
<line num="31" count="
|
|
97
|
+
<line num="31" count="56" type="stmt"/>
|
|
98
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"/>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<line num="40" count="27" type="stmt"/>
|
|
104
104
|
<line num="41" count="27" type="cond" truecount="0" falsecount="1"/>
|
|
105
105
|
<line num="42" count="0" type="stmt"/>
|
|
106
|
-
<line num="
|
|
106
|
+
<line num="46" count="27" type="stmt"/>
|
|
107
107
|
</file>
|
|
108
108
|
</package>
|
|
109
109
|
<package name="adaptors">
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
</file>
|
|
139
139
|
</package>
|
|
140
140
|
<package name="controllers">
|
|
141
|
-
<metrics statements="
|
|
141
|
+
<metrics statements="208" coveredstatements="206" conditionals="29" coveredconditionals="27" methods="85" coveredmethods="80"/>
|
|
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="16" type="stmt"/>
|
|
145
144
|
<line num="13" count="16" type="stmt"/>
|
|
145
|
+
<line num="14" count="16" type="stmt"/>
|
|
146
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"/>
|
|
@@ -157,21 +157,21 @@
|
|
|
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="
|
|
160
|
+
<line num="4" count="16" type="stmt"/>
|
|
161
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
|
-
<line num="12" count="
|
|
164
|
+
<line num="12" count="5" type="stmt"/>
|
|
165
165
|
<line num="16" count="2" type="stmt"/>
|
|
166
166
|
<line num="20" count="2" type="stmt"/>
|
|
167
167
|
<line num="28" count="3" type="stmt"/>
|
|
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="
|
|
172
|
-
<line num="
|
|
173
|
-
<line num="
|
|
174
|
-
<line num="
|
|
171
|
+
<line num="2" count="16" type="stmt"/>
|
|
172
|
+
<line num="3" count="16" type="stmt"/>
|
|
173
|
+
<line num="18" count="16" type="stmt"/>
|
|
174
|
+
<line num="19" count="16" type="stmt"/>
|
|
175
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"/>
|
|
@@ -201,7 +201,7 @@
|
|
|
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="
|
|
204
|
+
<line num="9" count="16" type="stmt"/>
|
|
205
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"/>
|
|
@@ -248,19 +248,22 @@
|
|
|
248
248
|
<line num="69" count="17" type="stmt"/>
|
|
249
249
|
</file>
|
|
250
250
|
<file name="link.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/link.ts">
|
|
251
|
-
<metrics statements="
|
|
252
|
-
<line num="
|
|
251
|
+
<metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
|
|
252
|
+
<line num="2" count="16" type="stmt"/>
|
|
253
253
|
<line num="5" count="16" type="stmt"/>
|
|
254
254
|
<line num="17" count="16" type="stmt"/>
|
|
255
255
|
<line num="21" count="4" type="stmt"/>
|
|
256
256
|
<line num="22" count="4" type="stmt"/>
|
|
257
257
|
<line num="23" count="4" type="stmt"/>
|
|
258
|
-
<line num="
|
|
259
|
-
<line num="
|
|
258
|
+
<line num="28" count="1" type="stmt"/>
|
|
259
|
+
<line num="29" count="1" type="stmt"/>
|
|
260
|
+
<line num="38" count="1" type="stmt"/>
|
|
261
|
+
<line num="41" count="4" type="stmt"/>
|
|
262
|
+
<line num="42" count="4" type="stmt"/>
|
|
260
263
|
</file>
|
|
261
264
|
<file name="note.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/note.ts">
|
|
262
265
|
<metrics statements="15" coveredstatements="15" conditionals="6" coveredconditionals="6" methods="7" coveredmethods="7"/>
|
|
263
|
-
<line num="
|
|
266
|
+
<line num="8" count="16" type="stmt"/>
|
|
264
267
|
<line num="26" count="16" type="stmt"/>
|
|
265
268
|
<line num="27" count="6" type="stmt"/>
|
|
266
269
|
<line num="28" count="6" type="stmt"/>
|
|
@@ -278,7 +281,7 @@
|
|
|
278
281
|
</file>
|
|
279
282
|
<file name="page.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/page.ts">
|
|
280
283
|
<metrics statements="11" coveredstatements="11" conditionals="3" coveredconditionals="3" methods="5" coveredmethods="5"/>
|
|
281
|
-
<line num="
|
|
284
|
+
<line num="8" count="16" type="stmt"/>
|
|
282
285
|
<line num="25" count="16" type="stmt"/>
|
|
283
286
|
<line num="26" count="4" type="stmt"/>
|
|
284
287
|
<line num="27" count="4" type="stmt"/>
|
|
@@ -292,7 +295,7 @@
|
|
|
292
295
|
</file>
|
|
293
296
|
<file name="post.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/post.ts">
|
|
294
297
|
<metrics statements="14" coveredstatements="14" conditionals="5" coveredconditionals="5" methods="6" coveredmethods="6"/>
|
|
295
|
-
<line num="
|
|
298
|
+
<line num="8" count="16" type="stmt"/>
|
|
296
299
|
<line num="26" count="16" type="stmt"/>
|
|
297
300
|
<line num="27" count="8" type="stmt"/>
|
|
298
301
|
<line num="28" count="8" type="stmt"/>
|
|
@@ -309,7 +312,7 @@
|
|
|
309
312
|
</file>
|
|
310
313
|
<file name="project.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/project.ts">
|
|
311
314
|
<metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
312
|
-
<line num="
|
|
315
|
+
<line num="2" count="16" type="stmt"/>
|
|
313
316
|
<line num="5" count="16" type="stmt"/>
|
|
314
317
|
<line num="16" count="16" type="stmt"/>
|
|
315
318
|
<line num="20" count="3" type="stmt"/>
|
|
@@ -320,7 +323,7 @@
|
|
|
320
323
|
</file>
|
|
321
324
|
<file name="recently.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/recently.ts">
|
|
322
325
|
<metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
|
|
323
|
-
<line num="
|
|
326
|
+
<line num="6" count="16" type="stmt"/>
|
|
324
327
|
<line num="18" count="16" type="stmt"/>
|
|
325
328
|
<line num="19" count="4" type="stmt"/>
|
|
326
329
|
<line num="20" count="4" type="stmt"/>
|
|
@@ -333,7 +336,7 @@
|
|
|
333
336
|
</file>
|
|
334
337
|
<file name="say.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/say.ts">
|
|
335
338
|
<metrics statements="10" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="2"/>
|
|
336
|
-
<line num="
|
|
339
|
+
<line num="2" count="16" type="stmt"/>
|
|
337
340
|
<line num="7" count="16" type="stmt"/>
|
|
338
341
|
<line num="18" count="16" type="stmt"/>
|
|
339
342
|
<line num="22" count="4" type="stmt"/>
|
|
@@ -346,7 +349,7 @@
|
|
|
346
349
|
</file>
|
|
347
350
|
<file name="search.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/search.ts">
|
|
348
351
|
<metrics statements="9" coveredstatements="9" conditionals="1" coveredconditionals="1" methods="4" coveredmethods="4"/>
|
|
349
|
-
<line num="
|
|
352
|
+
<line num="9" count="16" type="stmt"/>
|
|
350
353
|
<line num="27" count="16" type="stmt"/>
|
|
351
354
|
<line num="28" count="4" type="stmt"/>
|
|
352
355
|
<line num="29" count="4" type="stmt"/>
|
|
@@ -358,7 +361,7 @@
|
|
|
358
361
|
</file>
|
|
359
362
|
<file name="severless.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/severless.ts">
|
|
360
363
|
<metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
|
|
361
|
-
<line num="
|
|
364
|
+
<line num="5" count="16" type="stmt"/>
|
|
362
365
|
<line num="16" count="16" type="stmt"/>
|
|
363
366
|
<line num="17" count="4" type="stmt"/>
|
|
364
367
|
<line num="18" count="4" type="stmt"/>
|
|
@@ -369,7 +372,7 @@
|
|
|
369
372
|
</file>
|
|
370
373
|
<file name="snippet.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/snippet.ts">
|
|
371
374
|
<metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
|
|
372
|
-
<line num="
|
|
375
|
+
<line num="6" count="16" type="stmt"/>
|
|
373
376
|
<line num="17" count="16" type="stmt"/>
|
|
374
377
|
<line num="18" count="4" type="stmt"/>
|
|
375
378
|
<line num="19" count="4" type="stmt"/>
|
|
@@ -381,7 +384,7 @@
|
|
|
381
384
|
</file>
|
|
382
385
|
<file name="user.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/controllers/user.ts">
|
|
383
386
|
<metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
|
|
384
|
-
<line num="
|
|
387
|
+
<line num="6" count="16" type="stmt"/>
|
|
385
388
|
<line num="18" count="16" type="stmt"/>
|
|
386
389
|
<line num="19" count="4" type="stmt"/>
|
|
387
390
|
<line num="20" count="4" type="stmt"/>
|
|
@@ -394,108 +397,106 @@
|
|
|
394
397
|
</file>
|
|
395
398
|
</package>
|
|
396
399
|
<package name="core">
|
|
397
|
-
<metrics statements="
|
|
400
|
+
<metrics statements="101" coveredstatements="99" conditionals="41" coveredconditionals="33" methods="29" coveredmethods="28"/>
|
|
398
401
|
<file name="attach-request.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/attach-request.ts">
|
|
399
402
|
<metrics statements="18" coveredstatements="16" conditionals="10" coveredconditionals="7" methods="6" coveredmethods="6"/>
|
|
400
403
|
<line num="3" count="16" type="stmt"/>
|
|
401
404
|
<line num="4" count="29" type="stmt"/>
|
|
402
|
-
<line num="7" count="
|
|
403
|
-
<line num="8" count="
|
|
404
|
-
<line num="10" count="
|
|
405
|
+
<line num="7" count="72" type="cond" truecount="1" falsecount="0"/>
|
|
406
|
+
<line num="8" count="72" type="stmt"/>
|
|
407
|
+
<line num="10" count="72" type="cond" truecount="2" falsecount="0"/>
|
|
405
408
|
<line num="13" count="29" type="stmt"/>
|
|
406
409
|
<line num="14" count="116" type="stmt"/>
|
|
407
|
-
<line num="16" count="
|
|
408
|
-
<line num="23" count="
|
|
410
|
+
<line num="16" count="6" type="stmt"/>
|
|
411
|
+
<line num="23" count="72" type="cond" truecount="1" falsecount="2"/>
|
|
409
412
|
<line num="24" count="0" type="stmt"/>
|
|
410
|
-
<line num="27" count="
|
|
413
|
+
<line num="27" count="72" type="cond" truecount="0" falsecount="1"/>
|
|
411
414
|
<line num="28" count="0" type="stmt"/>
|
|
412
|
-
<line num="30" count="
|
|
413
|
-
<line num="32" count="
|
|
415
|
+
<line num="30" count="72" type="stmt"/>
|
|
416
|
+
<line num="32" count="72" type="stmt"/>
|
|
414
417
|
<line num="33" count="73" type="cond" truecount="1" falsecount="0"/>
|
|
415
418
|
<line num="37" count="31" type="stmt"/>
|
|
416
419
|
<line num="39" count="42" type="stmt"/>
|
|
417
|
-
<line num="42" count="
|
|
420
|
+
<line num="42" count="72" type="stmt"/>
|
|
418
421
|
</file>
|
|
419
422
|
<file name="client.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/client.ts">
|
|
420
|
-
<metrics statements="
|
|
423
|
+
<metrics statements="76" coveredstatements="76" conditionals="31" coveredconditionals="26" methods="22" coveredmethods="21"/>
|
|
421
424
|
<line num="1" count="16" type="stmt"/>
|
|
422
|
-
<line num="
|
|
423
|
-
<line num="
|
|
424
|
-
<line num="
|
|
425
|
+
<line num="2" count="16" type="stmt"/>
|
|
426
|
+
<line num="3" count="16" type="stmt"/>
|
|
427
|
+
<line num="4" count="16" type="stmt"/>
|
|
425
428
|
<line num="14" count="16" type="stmt"/>
|
|
426
|
-
<line num="
|
|
427
|
-
<line num="
|
|
429
|
+
<line num="15" count="16" type="stmt"/>
|
|
430
|
+
<line num="17" count="16" type="stmt"/>
|
|
428
431
|
<line num="25" count="29" type="stmt"/>
|
|
429
|
-
<line num="
|
|
430
|
-
<line num="
|
|
431
|
-
<line num="
|
|
432
|
-
<line num="
|
|
433
|
-
<line num="37" count="
|
|
434
|
-
<line num="
|
|
435
|
-
<line num="40" count="
|
|
436
|
-
<line num="41" count="
|
|
437
|
-
<line num="
|
|
438
|
-
<line num="
|
|
439
|
-
<line num="59" count="20" type="
|
|
440
|
-
<line num="60" count="
|
|
441
|
-
<line num="
|
|
442
|
-
<line num="63" count="
|
|
443
|
-
<line num="64" count="
|
|
444
|
-
<line num="
|
|
445
|
-
<line num="
|
|
446
|
-
<line num="
|
|
447
|
-
<line num="
|
|
448
|
-
<line num="
|
|
449
|
-
<line num="
|
|
450
|
-
<line num="
|
|
451
|
-
<line num="
|
|
452
|
-
<line num="
|
|
453
|
-
<line num="110" count="
|
|
454
|
-
<line num="
|
|
455
|
-
<line num="
|
|
456
|
-
<line num="
|
|
457
|
-
<line num="
|
|
458
|
-
<line num="
|
|
459
|
-
<line num="
|
|
460
|
-
<line num="
|
|
461
|
-
<line num="
|
|
462
|
-
<line num="
|
|
463
|
-
<line num="
|
|
464
|
-
<line num="
|
|
465
|
-
<line num="
|
|
466
|
-
<line num="
|
|
467
|
-
<line num="
|
|
468
|
-
<line num="
|
|
469
|
-
<line num="
|
|
470
|
-
<line num="
|
|
471
|
-
<line num="
|
|
472
|
-
<line num="
|
|
473
|
-
<line num="
|
|
474
|
-
<line num="
|
|
475
|
-
<line num="
|
|
476
|
-
<line num="
|
|
477
|
-
<line num="
|
|
478
|
-
<line num="
|
|
479
|
-
<line num="
|
|
480
|
-
<line num="
|
|
481
|
-
<line num="
|
|
482
|
-
<line num="
|
|
483
|
-
<line num="
|
|
484
|
-
<line num="
|
|
485
|
-
<line num="
|
|
486
|
-
<line num="
|
|
487
|
-
<line num="
|
|
488
|
-
<line num="
|
|
489
|
-
<line num="
|
|
490
|
-
<line num="
|
|
432
|
+
<line num="26" count="29" type="stmt"/>
|
|
433
|
+
<line num="29" count="29" type="stmt"/>
|
|
434
|
+
<line num="31" count="29" type="stmt"/>
|
|
435
|
+
<line num="33" count="29" type="stmt"/>
|
|
436
|
+
<line num="37" count="29" type="stmt"/>
|
|
437
|
+
<line num="38" count="493" type="stmt"/>
|
|
438
|
+
<line num="40" count="95" type="stmt"/>
|
|
439
|
+
<line num="41" count="95" type="cond" truecount="1" falsecount="0"/>
|
|
440
|
+
<line num="42" count="17" type="stmt"/>
|
|
441
|
+
<line num="48" count="78" type="stmt"/>
|
|
442
|
+
<line num="59" count="20" type="cond" truecount="2" falsecount="0"/>
|
|
443
|
+
<line num="60" count="20" type="stmt"/>
|
|
444
|
+
<line num="61" count="61" type="stmt"/>
|
|
445
|
+
<line num="63" count="61" type="cond" truecount="2" falsecount="0"/>
|
|
446
|
+
<line num="64" count="12" type="stmt"/>
|
|
447
|
+
<line num="65" count="24" type="stmt"/>
|
|
448
|
+
<line num="68" count="49" type="stmt"/>
|
|
449
|
+
<line num="73" count="73" type="stmt"/>
|
|
450
|
+
<line num="75" count="78" type="stmt"/>
|
|
451
|
+
<line num="84" count="79" type="stmt"/>
|
|
452
|
+
<line num="88" count="80" type="stmt"/>
|
|
453
|
+
<line num="97" count="78" type="cond" truecount="1" falsecount="1"/>
|
|
454
|
+
<line num="104" count="80" type="stmt"/>
|
|
455
|
+
<line num="109" count="29" type="stmt"/>
|
|
456
|
+
<line num="110" count="29" type="stmt"/>
|
|
457
|
+
<line num="111" count="29" type="stmt"/>
|
|
458
|
+
<line num="119" count="29" type="stmt"/>
|
|
459
|
+
<line num="121" count="29" type="stmt"/>
|
|
460
|
+
<line num="122" count="29" type="stmt"/>
|
|
461
|
+
<line num="124" count="29" type="stmt"/>
|
|
462
|
+
<line num="126" count="117" type="cond" truecount="1" falsecount="0"/>
|
|
463
|
+
<line num="127" count="2" type="stmt"/>
|
|
464
|
+
<line num="128" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
465
|
+
<line num="129" count="1" type="stmt"/>
|
|
466
|
+
<line num="130" count="1" type="stmt"/>
|
|
467
|
+
<line num="131" count="1" type="stmt"/>
|
|
468
|
+
<line num="133" count="1" type="stmt"/>
|
|
469
|
+
<line num="134" count="1" type="stmt"/>
|
|
470
|
+
<line num="135" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
471
|
+
<line num="138" count="115" type="cond" truecount="1" falsecount="0"/>
|
|
472
|
+
<line num="139" count="78" type="stmt"/>
|
|
473
|
+
<line num="140" count="78" type="stmt"/>
|
|
474
|
+
<line num="141" count="78" type="stmt"/>
|
|
475
|
+
<line num="143" count="78" type="stmt"/>
|
|
476
|
+
<line num="144" count="78" type="stmt"/>
|
|
477
|
+
<line num="150" count="3" type="stmt"/>
|
|
478
|
+
<line num="164" count="75" type="stmt"/>
|
|
479
|
+
<line num="165" count="75" type="cond" truecount="1" falsecount="0"/>
|
|
480
|
+
<line num="166" count="3" type="stmt"/>
|
|
481
|
+
<line num="170" count="72" type="cond" truecount="2" falsecount="0"/>
|
|
482
|
+
<line num="174" count="72" type="cond" truecount="3" falsecount="0"/>
|
|
483
|
+
<line num="175" count="69" type="stmt"/>
|
|
484
|
+
<line num="177" count="45" type="stmt"/>
|
|
485
|
+
<line num="185" count="69" type="stmt"/>
|
|
486
|
+
<line num="187" count="10" type="stmt"/>
|
|
487
|
+
<line num="197" count="72" type="stmt"/>
|
|
488
|
+
<line num="200" count="37" type="stmt"/>
|
|
489
|
+
<line num="201" count="37" type="stmt"/>
|
|
490
|
+
<line num="205" count="108" type="stmt"/>
|
|
491
|
+
<line num="206" count="108" type="stmt"/>
|
|
492
|
+
<line num="210" count="29" type="stmt"/>
|
|
493
|
+
<line num="215" count="16" type="stmt"/>
|
|
491
494
|
<line num="216" count="29" type="stmt"/>
|
|
492
|
-
<line num="
|
|
493
|
-
<line num="
|
|
494
|
-
<line num="
|
|
495
|
-
<line num="
|
|
496
|
-
<line num="
|
|
497
|
-
<line num="235" count="1" type="stmt"/>
|
|
498
|
-
<line num="237" count="29" type="stmt"/>
|
|
495
|
+
<line num="226" count="29" type="stmt"/>
|
|
496
|
+
<line num="227" count="29" type="cond" truecount="2" falsecount="0"/>
|
|
497
|
+
<line num="228" count="29" type="cond" truecount="1" falsecount="0"/>
|
|
498
|
+
<line num="229" count="1" type="stmt"/>
|
|
499
|
+
<line num="231" count="29" type="stmt"/>
|
|
499
500
|
</file>
|
|
500
501
|
<file name="error.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/core/error.ts">
|
|
501
502
|
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
@@ -527,39 +528,39 @@
|
|
|
527
528
|
</file>
|
|
528
529
|
</package>
|
|
529
530
|
<package name="utils">
|
|
530
|
-
<metrics statements="
|
|
531
|
+
<metrics statements="48" coveredstatements="41" conditionals="33" coveredconditionals="24" methods="10" coveredmethods="8"/>
|
|
531
532
|
<file name="auto-bind.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/utils/auto-bind.ts">
|
|
532
533
|
<metrics statements="22" coveredstatements="19" conditionals="13" coveredconditionals="9" methods="4" coveredmethods="3"/>
|
|
533
534
|
<line num="5" count="17" type="stmt"/>
|
|
534
535
|
<line num="6" count="75" type="stmt"/>
|
|
535
536
|
<line num="8" count="75" type="stmt"/>
|
|
536
537
|
<line num="9" count="97" type="stmt"/>
|
|
537
|
-
<line num="10" count="
|
|
538
|
+
<line num="10" count="440" type="stmt"/>
|
|
538
539
|
<line num="17" count="75" type="stmt"/>
|
|
539
540
|
<line num="20" count="17" type="cond" truecount="1" falsecount="0"/>
|
|
540
541
|
<line num="21" count="75" type="stmt"/>
|
|
541
|
-
<line num="22" count="
|
|
542
|
+
<line num="22" count="343" type="stmt"/>
|
|
542
543
|
<line num="23" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
543
|
-
<line num="25" count="
|
|
544
|
+
<line num="25" count="343" type="cond" truecount="0" falsecount="1"/>
|
|
544
545
|
<line num="26" count="0" type="stmt"/>
|
|
545
|
-
<line num="29" count="
|
|
546
|
+
<line num="29" count="343" type="cond" truecount="0" falsecount="1"/>
|
|
546
547
|
<line num="30" count="0" type="stmt"/>
|
|
547
|
-
<line num="33" count="
|
|
548
|
+
<line num="33" count="343" type="stmt"/>
|
|
548
549
|
<line num="36" count="75" type="stmt"/>
|
|
549
|
-
<line num="37" count="
|
|
550
|
+
<line num="37" count="440" type="cond" truecount="3" falsecount="0"/>
|
|
550
551
|
<line num="38" count="97" type="stmt"/>
|
|
551
|
-
<line num="41" count="
|
|
552
|
-
<line num="42" count="
|
|
553
|
-
<line num="43" count="
|
|
552
|
+
<line num="41" count="343" type="stmt"/>
|
|
553
|
+
<line num="42" count="343" type="cond" truecount="3" falsecount="0"/>
|
|
554
|
+
<line num="43" count="263" type="stmt"/>
|
|
554
555
|
<line num="47" count="75" type="stmt"/>
|
|
555
556
|
</file>
|
|
556
557
|
<file name="index.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/utils/index.ts">
|
|
557
558
|
<metrics statements="22" coveredstatements="18" conditionals="19" coveredconditionals="14" methods="5" coveredmethods="4"/>
|
|
558
559
|
<line num="3" count="17" type="stmt"/>
|
|
559
|
-
<line num="4" count="
|
|
560
|
+
<line num="4" count="81" type="cond" truecount="3" falsecount="0"/>
|
|
560
561
|
<line num="8" count="17" type="stmt"/>
|
|
561
562
|
<line num="9" count="0" type="stmt"/>
|
|
562
|
-
<line num="16" count="
|
|
563
|
+
<line num="16" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
563
564
|
<line num="17" count="17" type="stmt"/>
|
|
564
565
|
<line num="18" count="9" type="cond" truecount="0" falsecount="1"/>
|
|
565
566
|
<line num="19" count="0" type="stmt"/>
|
|
@@ -578,6 +579,13 @@
|
|
|
578
579
|
<line num="43" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
579
580
|
<line num="48" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
580
581
|
</file>
|
|
582
|
+
<file name="path.ts" path="/Users/xiaoxun/github/innei-repo/mx-space/mx-api-client/src/utils/path.ts">
|
|
583
|
+
<metrics statements="4" coveredstatements="4" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
584
|
+
<line num="1" count="17" type="stmt"/>
|
|
585
|
+
<line num="2" count="80" type="cond" truecount="1" falsecount="0"/>
|
|
586
|
+
<line num="3" count="57" type="stmt"/>
|
|
587
|
+
<line num="5" count="80" type="stmt"/>
|
|
588
|
+
</file>
|
|
581
589
|
</package>
|
|
582
590
|
</project>
|
|
583
591
|
</coverage>
|