table 3.8.2 → 3.8.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.
@@ -5,264 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.drawBorderTop = exports.drawBorderJoin = exports.drawBorderBottom = exports.drawBorder = undefined;
7
7
 
8
- var cov_a6zw0ub9o = function () {
9
- var path = '/Users/gajuskuizinas/Documents/dev/gajus/table/src/drawBorder.js',
10
- hash = '4e518697633f89fcc2ec65c54c9d288ff127a8f1',
11
- global = new Function('return this')(),
12
- gcv = '__coverage__',
13
- coverageData = {
14
- path: '/Users/gajuskuizinas/Documents/dev/gajus/table/src/drawBorder.js',
15
- statementMap: {
16
- '0': {
17
- start: {
18
- line: 16,
19
- column: 19
20
- },
21
- end: {
22
- line: 24,
23
- column: 1
24
- }
25
- },
26
- '1': {
27
- start: {
28
- line: 17,
29
- column: 18
30
- },
31
- end: {
32
- line: 21,
33
- column: 21
34
- }
35
- },
36
- '2': {
37
- start: {
38
- line: 19,
39
- column: 6
40
- },
41
- end: {
42
- line: 19,
43
- column: 40
44
- }
45
- },
46
- '3': {
47
- start: {
48
- line: 23,
49
- column: 2
50
- },
51
- end: {
52
- line: 23,
53
- column: 51
54
- }
55
- },
56
- '4': {
57
- start: {
58
- line: 39,
59
- column: 22
60
- },
61
- end: {
62
- line: 46,
63
- column: 1
64
- }
65
- },
66
- '5': {
67
- start: {
68
- line: 40,
69
- column: 2
70
- },
71
- end: {
72
- line: 45,
73
- column: 5
74
- }
75
- },
76
- '6': {
77
- start: {
78
- line: 61,
79
- column: 23
80
- },
81
- end: {
82
- line: 68,
83
- column: 1
84
- }
85
- },
86
- '7': {
87
- start: {
88
- line: 62,
89
- column: 2
90
- },
91
- end: {
92
- line: 67,
93
- column: 5
94
- }
95
- },
96
- '8': {
97
- start: {
98
- line: 83,
99
- column: 25
100
- },
101
- end: {
102
- line: 90,
103
- column: 1
104
- }
105
- },
106
- '9': {
107
- start: {
108
- line: 84,
109
- column: 2
110
- },
111
- end: {
112
- line: 89,
113
- column: 5
114
- }
115
- }
116
- },
117
- fnMap: {
118
- '0': {
119
- name: '(anonymous_0)',
120
- decl: {
121
- start: {
122
- line: 16,
123
- column: 19
124
- },
125
- end: {
126
- line: 16,
127
- column: 20
128
- }
129
- },
130
- loc: {
131
- start: {
132
- line: 16,
133
- column: 47
134
- },
135
- end: {
136
- line: 24,
137
- column: 1
138
- }
139
- }
140
- },
141
- '1': {
142
- name: '(anonymous_1)',
143
- decl: {
144
- start: {
145
- line: 18,
146
- column: 26
147
- },
148
- end: {
149
- line: 18,
150
- column: 27
151
- }
152
- },
153
- loc: {
154
- start: {
155
- line: 18,
156
- column: 36
157
- },
158
- end: {
159
- line: 20,
160
- column: 5
161
- }
162
- }
163
- },
164
- '2': {
165
- name: '(anonymous_2)',
166
- decl: {
167
- start: {
168
- line: 39,
169
- column: 22
170
- },
171
- end: {
172
- line: 39,
173
- column: 23
174
- }
175
- },
176
- loc: {
177
- start: {
178
- line: 39,
179
- column: 50
180
- },
181
- end: {
182
- line: 46,
183
- column: 1
184
- }
185
- }
186
- },
187
- '3': {
188
- name: '(anonymous_3)',
189
- decl: {
190
- start: {
191
- line: 61,
192
- column: 23
193
- },
194
- end: {
195
- line: 61,
196
- column: 24
197
- }
198
- },
199
- loc: {
200
- start: {
201
- line: 61,
202
- column: 51
203
- },
204
- end: {
205
- line: 68,
206
- column: 1
207
- }
208
- }
209
- },
210
- '4': {
211
- name: '(anonymous_4)',
212
- decl: {
213
- start: {
214
- line: 83,
215
- column: 25
216
- },
217
- end: {
218
- line: 83,
219
- column: 26
220
- }
221
- },
222
- loc: {
223
- start: {
224
- line: 83,
225
- column: 53
226
- },
227
- end: {
228
- line: 90,
229
- column: 1
230
- }
231
- }
232
- }
233
- },
234
- branchMap: {},
235
- s: {
236
- '0': 0,
237
- '1': 0,
238
- '2': 0,
239
- '3': 0,
240
- '4': 0,
241
- '5': 0,
242
- '6': 0,
243
- '7': 0,
244
- '8': 0,
245
- '9': 0
246
- },
247
- f: {
248
- '0': 0,
249
- '1': 0,
250
- '2': 0,
251
- '3': 0,
252
- '4': 0
253
- },
254
- b: {}
255
- },
256
- coverage = global[gcv] || (global[gcv] = {});
257
-
258
- if (coverage[path] && coverage[path].hash === hash) {
259
- return coverage[path];
260
- }
261
-
262
- coverageData.hash = hash;
263
- return coverage[path] = coverageData;
264
- }();
265
-
266
8
  var _lodash = require('lodash');
267
9
 
268
10
  var _lodash2 = _interopRequireDefault(_lodash);
@@ -282,19 +24,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
282
24
  * @param {drawBorder~parts} parts
283
25
  * @returns {string}
284
26
  */
285
- const drawBorder = (++cov_a6zw0ub9o.s[0], (columnSizeIndex, parts) => {
286
- ++cov_a6zw0ub9o.f[0];
287
-
288
- const columns = (++cov_a6zw0ub9o.s[1], _lodash2.default.map(columnSizeIndex, size => {
289
- ++cov_a6zw0ub9o.f[1];
290
- ++cov_a6zw0ub9o.s[2];
291
-
27
+ const drawBorder = (columnSizeIndex, parts) => {
28
+ const columns = _lodash2.default.map(columnSizeIndex, size => {
292
29
  return _lodash2.default.repeat(parts.body, size);
293
- }).join(parts.join));
30
+ }).join(parts.join);
294
31
 
295
- ++cov_a6zw0ub9o.s[3];
296
32
  return parts.left + columns + parts.right + '\n';
297
- });
33
+ };
298
34
 
299
35
  /**
300
36
  * @typedef drawBorderTop~parts
@@ -309,17 +45,14 @@ const drawBorder = (++cov_a6zw0ub9o.s[0], (columnSizeIndex, parts) => {
309
45
  * @param {drawBorderTop~parts} parts
310
46
  * @returns {string}
311
47
  */
312
- const drawBorderTop = (++cov_a6zw0ub9o.s[4], (columnSizeIndex, parts) => {
313
- ++cov_a6zw0ub9o.f[2];
314
- ++cov_a6zw0ub9o.s[5];
315
-
48
+ const drawBorderTop = (columnSizeIndex, parts) => {
316
49
  return drawBorder(columnSizeIndex, {
317
50
  body: parts.topBody,
318
51
  join: parts.topJoin,
319
52
  left: parts.topLeft,
320
53
  right: parts.topRight
321
54
  });
322
- });
55
+ };
323
56
 
324
57
  /**
325
58
  * @typedef drawBorderJoin~parts
@@ -334,17 +67,14 @@ const drawBorderTop = (++cov_a6zw0ub9o.s[4], (columnSizeIndex, parts) => {
334
67
  * @param {drawBorderJoin~parts} parts
335
68
  * @returns {string}
336
69
  */
337
- const drawBorderJoin = (++cov_a6zw0ub9o.s[6], (columnSizeIndex, parts) => {
338
- ++cov_a6zw0ub9o.f[3];
339
- ++cov_a6zw0ub9o.s[7];
340
-
70
+ const drawBorderJoin = (columnSizeIndex, parts) => {
341
71
  return drawBorder(columnSizeIndex, {
342
72
  body: parts.joinBody,
343
73
  join: parts.joinJoin,
344
74
  left: parts.joinLeft,
345
75
  right: parts.joinRight
346
76
  });
347
- });
77
+ };
348
78
 
349
79
  /**
350
80
  * @typedef drawBorderBottom~parts
@@ -359,17 +89,14 @@ const drawBorderJoin = (++cov_a6zw0ub9o.s[6], (columnSizeIndex, parts) => {
359
89
  * @param {drawBorderBottom~parts} parts
360
90
  * @returns {string}
361
91
  */
362
- const drawBorderBottom = (++cov_a6zw0ub9o.s[8], (columnSizeIndex, parts) => {
363
- ++cov_a6zw0ub9o.f[4];
364
- ++cov_a6zw0ub9o.s[9];
365
-
92
+ const drawBorderBottom = (columnSizeIndex, parts) => {
366
93
  return drawBorder(columnSizeIndex, {
367
94
  body: parts.bottomBody,
368
95
  join: parts.bottomJoin,
369
96
  left: parts.bottomLeft,
370
97
  right: parts.bottomRight
371
98
  });
372
- });
99
+ };
373
100
 
374
101
  exports.drawBorder = drawBorder;
375
102
  exports.drawBorderBottom = drawBorderBottom;
package/dist/drawRow.js CHANGED
@@ -4,69 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var cov_htwvnqv09 = function () {
8
- var path = '/Users/gajuskuizinas/Documents/dev/gajus/table/src/drawRow.js',
9
- hash = '0dd31170d58b254867e7d0076541ce12f723bd20',
10
- global = new Function('return this')(),
11
- gcv = '__coverage__',
12
- coverageData = {
13
- path: '/Users/gajuskuizinas/Documents/dev/gajus/table/src/drawRow.js',
14
- statementMap: {
15
- '0': {
16
- start: {
17
- line: 14,
18
- column: 2
19
- },
20
- end: {
21
- line: 14,
22
- column: 83
23
- }
24
- }
25
- },
26
- fnMap: {
27
- '0': {
28
- name: '(anonymous_0)',
29
- decl: {
30
- start: {
31
- line: 13,
32
- column: 15
33
- },
34
- end: {
35
- line: 13,
36
- column: 16
37
- }
38
- },
39
- loc: {
40
- start: {
41
- line: 13,
42
- column: 36
43
- },
44
- end: {
45
- line: 15,
46
- column: 1
47
- }
48
- }
49
- }
50
- },
51
- branchMap: {},
52
- s: {
53
- '0': 0
54
- },
55
- f: {
56
- '0': 0
57
- },
58
- b: {}
59
- },
60
- coverage = global[gcv] || (global[gcv] = {});
61
-
62
- if (coverage[path] && coverage[path].hash === hash) {
63
- return coverage[path];
64
- }
65
-
66
- coverageData.hash = hash;
67
- return coverage[path] = coverageData;
68
- }();
69
-
70
7
  /**
71
8
  * @typedef {Object} drawRow~border
72
9
  * @property {string} bodyLeft
@@ -80,9 +17,6 @@ var cov_htwvnqv09 = function () {
80
17
  * @returns {string}
81
18
  */
82
19
  exports.default = (columns, border) => {
83
- ++cov_htwvnqv09.f[0];
84
- ++cov_htwvnqv09.s[0];
85
-
86
20
  return border.bodyLeft + columns.join(border.bodyJoin) + border.bodyRight + '\n';
87
21
  };
88
22