manner.js 1.0.17 → 1.0.18
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/client/class/ClientFetch.js +1 -1
- package/coverage/clover.xml +85 -32
- package/coverage/coverage-final.json +5 -4
- package/coverage/lcov-report/class/Blocks.js.html +1 -1
- package/coverage/lcov-report/class/MultiFetch.js.html +5 -2
- package/coverage/lcov-report/class/index.html +1 -1
- package/coverage/lcov-report/client/class/ClientFetch.js.html +379 -0
- package/coverage/lcov-report/client/class/index.html +116 -0
- package/coverage/lcov-report/index.html +26 -11
- package/coverage/lcov-report/lib/byteArray.js.html +1 -1
- package/coverage/lcov-report/lib/errorHandle.js.html +1 -1
- package/coverage/lcov-report/lib/formatHttpDate.js.html +1 -1
- package/coverage/lcov-report/lib/formatHttpKey.js.html +1 -1
- package/coverage/lcov-report/lib/getOwnIpAddresses.js.html +1 -1
- package/coverage/lcov-report/lib/index.html +1 -1
- package/coverage/lcov-report/lib/isIntranetIpv4Address.js.html +9 -9
- package/coverage/lcov-report/lib/isIpv6Address.js.html +4 -4
- package/coverage/lcov-report/lib/nonZeroByteArray.js.html +1 -1
- package/coverage/lcov-report/lib/parseHttpDate.js.html +1 -1
- package/coverage/lcov-report/lib/wrapIpv6.js.html +1 -1
- package/coverage/lcov-report/server/class/Blocks.js.html +403 -0
- package/coverage/lcov-report/server/class/MultiFetch.js.html +262 -0
- package/coverage/lcov-report/server/class/index.html +131 -0
- package/coverage/lcov-report/server/lib/byteArray.js.html +154 -0
- package/coverage/lcov-report/server/lib/errorHandle.js.html +124 -0
- package/coverage/lcov-report/server/lib/formatHttpDate.js.html +103 -0
- package/coverage/lcov-report/server/lib/formatHttpKey.js.html +100 -0
- package/coverage/lcov-report/server/lib/getOwnIpAddresses.js.html +220 -0
- package/coverage/lcov-report/server/lib/index.html +251 -0
- package/coverage/lcov-report/server/lib/isIntranetIpv4Address.js.html +196 -0
- package/coverage/lcov-report/server/lib/isIpv6Address.js.html +148 -0
- package/coverage/lcov-report/server/lib/nonZeroByteArray.js.html +157 -0
- package/coverage/lcov-report/server/lib/parseHttpDate.js.html +238 -0
- package/coverage/lcov-report/server/lib/wrapIpv6.js.html +94 -0
- package/coverage/lcov.info +143 -50
- package/package.json +1 -1
- package/server/class/MultiFetch.js +1 -1
package/coverage/lcov.info
CHANGED
|
@@ -1,4 +1,97 @@
|
|
|
1
1
|
TN:
|
|
2
|
+
SF:src/client/class/ClientFetch.js
|
|
3
|
+
FN:2,(anonymous_0)
|
|
4
|
+
FN:7,(anonymous_1)
|
|
5
|
+
FN:14,(anonymous_2)
|
|
6
|
+
FN:22,(anonymous_3)
|
|
7
|
+
FN:36,(anonymous_4)
|
|
8
|
+
FN:41,(anonymous_5)
|
|
9
|
+
FN:43,(anonymous_6)
|
|
10
|
+
FN:52,(anonymous_7)
|
|
11
|
+
FNF:8
|
|
12
|
+
FNH:0
|
|
13
|
+
FNDA:0,(anonymous_0)
|
|
14
|
+
FNDA:0,(anonymous_1)
|
|
15
|
+
FNDA:0,(anonymous_2)
|
|
16
|
+
FNDA:0,(anonymous_3)
|
|
17
|
+
FNDA:0,(anonymous_4)
|
|
18
|
+
FNDA:0,(anonymous_5)
|
|
19
|
+
FNDA:0,(anonymous_6)
|
|
20
|
+
FNDA:0,(anonymous_7)
|
|
21
|
+
DA:3,0
|
|
22
|
+
DA:4,0
|
|
23
|
+
DA:8,0
|
|
24
|
+
DA:9,0
|
|
25
|
+
DA:11,0
|
|
26
|
+
DA:15,0
|
|
27
|
+
DA:16,0
|
|
28
|
+
DA:17,0
|
|
29
|
+
DA:19,0
|
|
30
|
+
DA:23,0
|
|
31
|
+
DA:24,0
|
|
32
|
+
DA:26,0
|
|
33
|
+
DA:27,0
|
|
34
|
+
DA:29,0
|
|
35
|
+
DA:30,0
|
|
36
|
+
DA:31,0
|
|
37
|
+
DA:33,0
|
|
38
|
+
DA:37,0
|
|
39
|
+
DA:38,0
|
|
40
|
+
DA:42,0
|
|
41
|
+
DA:43,0
|
|
42
|
+
DA:44,0
|
|
43
|
+
DA:45,0
|
|
44
|
+
DA:48,0
|
|
45
|
+
DA:49,0
|
|
46
|
+
DA:53,0
|
|
47
|
+
DA:54,0
|
|
48
|
+
DA:55,0
|
|
49
|
+
DA:56,0
|
|
50
|
+
DA:58,0
|
|
51
|
+
DA:59,0
|
|
52
|
+
DA:60,0
|
|
53
|
+
DA:61,0
|
|
54
|
+
DA:70,0
|
|
55
|
+
DA:71,0
|
|
56
|
+
DA:73,0
|
|
57
|
+
DA:74,0
|
|
58
|
+
DA:75,0
|
|
59
|
+
DA:77,0
|
|
60
|
+
DA:81,0
|
|
61
|
+
DA:86,0
|
|
62
|
+
DA:87,0
|
|
63
|
+
DA:88,0
|
|
64
|
+
DA:90,0
|
|
65
|
+
DA:91,0
|
|
66
|
+
DA:92,0
|
|
67
|
+
DA:93,0
|
|
68
|
+
LF:47
|
|
69
|
+
LH:0
|
|
70
|
+
BRDA:8,0,0,0
|
|
71
|
+
BRDA:8,0,1,0
|
|
72
|
+
BRDA:16,1,0,0
|
|
73
|
+
BRDA:16,1,1,0
|
|
74
|
+
BRDA:16,2,0,0
|
|
75
|
+
BRDA:16,2,1,0
|
|
76
|
+
BRDA:23,3,0,0
|
|
77
|
+
BRDA:23,3,1,0
|
|
78
|
+
BRDA:23,4,0,0
|
|
79
|
+
BRDA:23,4,1,0
|
|
80
|
+
BRDA:26,5,0,0
|
|
81
|
+
BRDA:26,5,1,0
|
|
82
|
+
BRDA:30,6,0,0
|
|
83
|
+
BRDA:30,6,1,0
|
|
84
|
+
BRDA:44,7,0,0
|
|
85
|
+
BRDA:44,7,1,0
|
|
86
|
+
BRDA:59,8,0,0
|
|
87
|
+
BRDA:59,8,1,0
|
|
88
|
+
BRDA:71,9,0,0
|
|
89
|
+
BRDA:86,10,0,0
|
|
90
|
+
BRDA:86,10,1,0
|
|
91
|
+
BRF:21
|
|
92
|
+
BRH:0
|
|
93
|
+
end_of_record
|
|
94
|
+
TN:
|
|
2
95
|
SF:src/server/class/Blocks.js
|
|
3
96
|
FN:4,getIntervalFromTime
|
|
4
97
|
FN:10,(anonymous_1)
|
|
@@ -114,67 +207,67 @@ BRH:15
|
|
|
114
207
|
end_of_record
|
|
115
208
|
TN:
|
|
116
209
|
SF:src/server/class/MultiFetch.js
|
|
117
|
-
FN:
|
|
118
|
-
FN:
|
|
119
|
-
FN:
|
|
210
|
+
FN:8,(anonymous_0)
|
|
211
|
+
FN:17,(anonymous_1)
|
|
212
|
+
FN:35,(anonymous_2)
|
|
120
213
|
FNF:3
|
|
121
214
|
FNH:3
|
|
122
215
|
FNDA:1,(anonymous_0)
|
|
123
216
|
FNDA:1,(anonymous_1)
|
|
124
217
|
FNDA:20,(anonymous_2)
|
|
125
|
-
DA:8,1
|
|
126
218
|
DA:9,1
|
|
127
219
|
DA:10,1
|
|
128
220
|
DA:11,1
|
|
129
|
-
DA:12,
|
|
130
|
-
DA:
|
|
131
|
-
DA:18,
|
|
221
|
+
DA:12,1
|
|
222
|
+
DA:13,0
|
|
223
|
+
DA:18,1
|
|
132
224
|
DA:19,0
|
|
133
225
|
DA:20,0
|
|
134
226
|
DA:21,0
|
|
135
|
-
DA:
|
|
136
|
-
DA:25,
|
|
227
|
+
DA:22,0
|
|
228
|
+
DA:25,1
|
|
137
229
|
DA:26,0
|
|
138
|
-
DA:
|
|
230
|
+
DA:27,0
|
|
139
231
|
DA:29,0
|
|
140
|
-
DA:
|
|
141
|
-
DA:36,
|
|
142
|
-
DA:
|
|
143
|
-
DA:39,
|
|
144
|
-
DA:
|
|
232
|
+
DA:30,0
|
|
233
|
+
DA:36,20
|
|
234
|
+
DA:37,0
|
|
235
|
+
DA:39,20
|
|
236
|
+
DA:40,0
|
|
145
237
|
DA:42,20
|
|
146
|
-
DA:43,
|
|
147
|
-
DA:
|
|
148
|
-
DA:
|
|
238
|
+
DA:43,20
|
|
239
|
+
DA:44,16
|
|
240
|
+
DA:46,4
|
|
149
241
|
DA:48,20
|
|
150
242
|
DA:49,20
|
|
151
|
-
DA:50,
|
|
243
|
+
DA:50,20
|
|
152
244
|
DA:51,0
|
|
153
|
-
DA:
|
|
245
|
+
DA:52,0
|
|
154
246
|
DA:54,20
|
|
247
|
+
DA:55,20
|
|
155
248
|
LF:30
|
|
156
249
|
LH:17
|
|
157
|
-
BRDA:
|
|
158
|
-
BRDA:
|
|
159
|
-
BRDA:
|
|
160
|
-
BRDA:
|
|
161
|
-
BRDA:
|
|
162
|
-
BRDA:
|
|
163
|
-
BRDA:
|
|
164
|
-
BRDA:
|
|
165
|
-
BRDA:
|
|
166
|
-
BRDA:
|
|
167
|
-
BRDA:
|
|
168
|
-
BRDA:
|
|
169
|
-
BRDA:
|
|
170
|
-
BRDA:
|
|
171
|
-
BRDA:
|
|
172
|
-
BRDA:
|
|
173
|
-
BRDA:
|
|
174
|
-
BRDA:
|
|
175
|
-
BRDA:
|
|
176
|
-
BRDA:
|
|
177
|
-
BRDA:
|
|
250
|
+
BRDA:12,0,0,0
|
|
251
|
+
BRDA:12,0,1,1
|
|
252
|
+
BRDA:18,1,0,0
|
|
253
|
+
BRDA:18,1,1,1
|
|
254
|
+
BRDA:21,2,0,0
|
|
255
|
+
BRDA:21,2,1,0
|
|
256
|
+
BRDA:25,3,0,0
|
|
257
|
+
BRDA:25,3,1,1
|
|
258
|
+
BRDA:26,4,0,0
|
|
259
|
+
BRDA:26,4,1,0
|
|
260
|
+
BRDA:29,5,0,0
|
|
261
|
+
BRDA:29,5,1,0
|
|
262
|
+
BRDA:35,6,0,20
|
|
263
|
+
BRDA:36,7,0,0
|
|
264
|
+
BRDA:36,7,1,20
|
|
265
|
+
BRDA:39,8,0,0
|
|
266
|
+
BRDA:39,8,1,20
|
|
267
|
+
BRDA:43,9,0,16
|
|
268
|
+
BRDA:43,9,1,4
|
|
269
|
+
BRDA:50,10,0,0
|
|
270
|
+
BRDA:50,10,1,20
|
|
178
271
|
BRF:21
|
|
179
272
|
BRH:9
|
|
180
273
|
end_of_record
|
|
@@ -376,11 +469,11 @@ FNDA:3,isIpv6Address
|
|
|
376
469
|
DA:2,3
|
|
377
470
|
DA:3,3
|
|
378
471
|
DA:4,3
|
|
379
|
-
DA:5,
|
|
380
|
-
DA:6,
|
|
472
|
+
DA:5,98
|
|
473
|
+
DA:6,98
|
|
381
474
|
DA:9,22
|
|
382
475
|
DA:10,22
|
|
383
|
-
DA:12,
|
|
476
|
+
DA:12,76
|
|
384
477
|
DA:13,0
|
|
385
478
|
DA:17,3
|
|
386
479
|
DA:18,1
|
|
@@ -389,13 +482,13 @@ LF:12
|
|
|
389
482
|
LH:11
|
|
390
483
|
BRDA:6,0,0,3
|
|
391
484
|
BRDA:6,0,1,22
|
|
392
|
-
BRDA:6,0,2,
|
|
485
|
+
BRDA:6,0,2,76
|
|
393
486
|
BRDA:12,1,0,0
|
|
394
|
-
BRDA:12,1,1,
|
|
395
|
-
BRDA:12,2,0,
|
|
396
|
-
BRDA:12,2,1,
|
|
397
|
-
BRDA:12,2,2,
|
|
398
|
-
BRDA:12,2,3,
|
|
487
|
+
BRDA:12,1,1,76
|
|
488
|
+
BRDA:12,2,0,76
|
|
489
|
+
BRDA:12,2,1,76
|
|
490
|
+
BRDA:12,2,2,16
|
|
491
|
+
BRDA:12,2,3,16
|
|
399
492
|
BRDA:17,3,0,1
|
|
400
493
|
BRDA:17,3,1,2
|
|
401
494
|
BRF:11
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _https=_interopRequireDefault(require("https")),_net=_interopRequireDefault(require("net")),_nodeFetch=_interopRequireDefault(require("node-fetch")),_advising=require("advising.js");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class MultiFetch{constructor(e,r){this.index=-1,this.dealParams(e,r),this.bases=e,void 0!==r&&(this.interval=r)}dealParams(e,r){if(!Array.isArray(e))throw new Error("[Error] The bases parameter bases should be a array type.");if(void 0!==r){if(!Number.isInteger(r))throw new Error("[Error] The interval parameter should be of integer type.");if(r<=0)throw new Error("[Error] The interval should be a positive integer otherwise it has no meaning.")}}async fetch(e,r,t=0){if("string"!=typeof e)throw new Error("[Error] The path parameter path should be of string type.");if("object"!=typeof r)throw new Error("[Error] The options parameter should be a object type.");var i=this.bases,a=(this.index<i.length-1?this.index+=1:this.index=0,this).index,i=i[a],a=(i.startsWith("https")&&(a=new _https.default.Agent({rejectUnauthorized:!1}),r.agent=a),i+e);return(0,_nodeFetch.default)(a,r)}}var _default=exports.default=MultiFetch;
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _https=_interopRequireDefault(require("https")),_http=_interopRequireDefault(require("http")),_net=_interopRequireDefault(require("net")),_nodeFetch=_interopRequireDefault(require("node-fetch")),_advising=require("advising.js");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class MultiFetch{constructor(e,r){this.index=-1,this.dealParams(e,r),this.bases=e,void 0!==r&&(this.interval=r)}dealParams(e,r){if(!Array.isArray(e))throw new Error("[Error] The bases parameter bases should be a array type.");if(void 0!==r){if(!Number.isInteger(r))throw new Error("[Error] The interval parameter should be of integer type.");if(r<=0)throw new Error("[Error] The interval should be a positive integer otherwise it has no meaning.")}}async fetch(e,r,t=0){if("string"!=typeof e)throw new Error("[Error] The path parameter path should be of string type.");if("object"!=typeof r)throw new Error("[Error] The options parameter should be a object type.");var i=this.bases,a=(this.index<i.length-1?this.index+=1:this.index=0,this).index,i=i[a],a=(i.startsWith("https")&&(a=new _https.default.Agent({rejectUnauthorized:!1}),r.agent=a),i+e);return(0,_nodeFetch.default)(a,r)}}var _default=exports.default=MultiFetch;
|