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.
package/dist/wrapWord.js CHANGED
@@ -4,236 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var cov_2in591hdkb = function () {
8
- var path = '/Users/gajuskuizinas/Documents/dev/gajus/table/src/wrapWord.js',
9
- hash = 'b859c23198f963a8e98116f29b9c80fef9051c0e',
10
- global = new Function('return this')(),
11
- gcv = '__coverage__',
12
- coverageData = {
13
- path: '/Users/gajuskuizinas/Documents/dev/gajus/table/src/wrapWord.js',
14
- statementMap: {
15
- '0': {
16
- start: {
17
- line: 13,
18
- column: 2
19
- },
20
- end: {
21
- line: 13,
22
- column: 18
23
- }
24
- },
25
- '1': {
26
- start: {
27
- line: 15,
28
- column: 17
29
- },
30
- end: {
31
- line: 15,
32
- column: 19
33
- }
34
- },
35
- '2': {
36
- start: {
37
- line: 18,
38
- column: 13
39
- },
40
- end: {
41
- line: 18,
42
- column: 102
43
- }
44
- },
45
- '3': {
46
- start: {
47
- line: 20,
48
- column: 2
49
- },
50
- end: {
51
- line: 37,
52
- column: 33
53
- }
54
- },
55
- '4': {
56
- start: {
57
- line: 23,
58
- column: 4
59
- },
60
- end: {
61
- line: 23,
62
- column: 30
63
- }
64
- },
65
- '5': {
66
- start: {
67
- line: 25,
68
- column: 4
69
- },
70
- end: {
71
- line: 34,
72
- column: 5
73
- }
74
- },
75
- '6': {
76
- start: {
77
- line: 26,
78
- column: 6
79
- },
80
- end: {
81
- line: 26,
82
- column: 23
83
- }
84
- },
85
- '7': {
86
- start: {
87
- line: 28,
88
- column: 6
89
- },
90
- end: {
91
- line: 28,
92
- column: 51
93
- }
94
- },
95
- '8': {
96
- start: {
97
- line: 30,
98
- column: 6
99
- },
100
- end: {
101
- line: 30,
102
- column: 28
103
- }
104
- },
105
- '9': {
106
- start: {
107
- line: 32,
108
- column: 6
109
- },
110
- end: {
111
- line: 32,
112
- column: 38
113
- }
114
- },
115
- '10': {
116
- start: {
117
- line: 33,
118
- column: 6
119
- },
120
- end: {
121
- line: 33,
122
- column: 37
123
- }
124
- },
125
- '11': {
126
- start: {
127
- line: 36,
128
- column: 4
129
- },
130
- end: {
131
- line: 36,
132
- column: 23
133
- }
134
- },
135
- '12': {
136
- start: {
137
- line: 39,
138
- column: 2
139
- },
140
- end: {
141
- line: 39,
142
- column: 16
143
- }
144
- }
145
- },
146
- fnMap: {
147
- '0': {
148
- name: '(anonymous_0)',
149
- decl: {
150
- start: {
151
- line: 10,
152
- column: 15
153
- },
154
- end: {
155
- line: 10,
156
- column: 16
157
- }
158
- },
159
- loc: {
160
- start: {
161
- line: 10,
162
- column: 32
163
- },
164
- end: {
165
- line: 40,
166
- column: 1
167
- }
168
- }
169
- }
170
- },
171
- branchMap: {
172
- '0': {
173
- loc: {
174
- start: {
175
- line: 25,
176
- column: 4
177
- },
178
- end: {
179
- line: 34,
180
- column: 5
181
- }
182
- },
183
- type: 'if',
184
- locations: [{
185
- start: {
186
- line: 25,
187
- column: 4
188
- },
189
- end: {
190
- line: 34,
191
- column: 5
192
- }
193
- }, {
194
- start: {
195
- line: 25,
196
- column: 4
197
- },
198
- end: {
199
- line: 34,
200
- column: 5
201
- }
202
- }]
203
- }
204
- },
205
- s: {
206
- '0': 0,
207
- '1': 0,
208
- '2': 0,
209
- '3': 0,
210
- '4': 0,
211
- '5': 0,
212
- '6': 0,
213
- '7': 0,
214
- '8': 0,
215
- '9': 0,
216
- '10': 0,
217
- '11': 0,
218
- '12': 0
219
- },
220
- f: {
221
- '0': 0
222
- },
223
- b: {
224
- '0': [0, 0]
225
- }
226
- },
227
- coverage = global[gcv] || (global[gcv] = {});
228
-
229
- if (coverage[path] && coverage[path].hash === hash) {
230
- return coverage[path];
231
- }
232
-
233
- coverageData.hash = hash;
234
- return coverage[path] = coverageData;
235
- }();
236
-
237
7
  var _lodash = require('lodash');
238
8
 
239
9
  var _lodash2 = _interopRequireDefault(_lodash);
@@ -254,51 +24,34 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
254
24
  * @returns {Array}
255
25
  */
256
26
  exports.default = (input, size) => {
257
- ++cov_2in591hdkb.f[0];
258
-
259
27
  let subject;
260
28
 
261
- ++cov_2in591hdkb.s[0];
262
29
  subject = input;
263
30
 
264
- const chunks = (++cov_2in591hdkb.s[1], []);
31
+ const chunks = [];
265
32
 
266
33
  // https://regex101.com/r/gY5kZ1/1
267
- const re = (++cov_2in591hdkb.s[2], new RegExp('(^.{1,' + size + '}(\\s+|$))|(^.{1,' + (size - 1) + '}(\\\\|/|_|\\.|,|;|-))'));
34
+ const re = new RegExp('(^.{1,' + size + '}(\\s+|$))|(^.{1,' + (size - 1) + '}(\\\\|/|_|\\.|,|;|-))');
268
35
 
269
- ++cov_2in591hdkb.s[3];
270
36
  do {
271
37
  let chunk;
272
38
 
273
- ++cov_2in591hdkb.s[4];
274
39
  chunk = subject.match(re);
275
40
 
276
- ++cov_2in591hdkb.s[5];
277
41
  if (chunk) {
278
- ++cov_2in591hdkb.b[0][0];
279
- ++cov_2in591hdkb.s[6];
280
-
281
42
  chunk = chunk[0];
282
43
 
283
- ++cov_2in591hdkb.s[7];
284
44
  subject = (0, _sliceAnsi2.default)(subject, (0, _stringWidth2.default)(chunk));
285
45
 
286
- ++cov_2in591hdkb.s[8];
287
46
  chunk = _lodash2.default.trim(chunk);
288
47
  } else {
289
- ++cov_2in591hdkb.b[0][1];
290
- ++cov_2in591hdkb.s[9];
291
-
292
48
  chunk = (0, _sliceAnsi2.default)(subject, 0, size);
293
- ++cov_2in591hdkb.s[10];
294
49
  subject = (0, _sliceAnsi2.default)(subject, size);
295
50
  }
296
51
 
297
- ++cov_2in591hdkb.s[11];
298
52
  chunks.push(chunk);
299
53
  } while ((0, _stringWidth2.default)(subject));
300
54
 
301
- ++cov_2in591hdkb.s[12];
302
55
  return chunks;
303
56
  };
304
57
 
package/package.json CHANGED
@@ -62,7 +62,8 @@
62
62
  "make-readme": "gitdown ./.README/README.md --output-file ./README.md",
63
63
  "make-validators": "ajv compile --all-errors --inline-refs=false -s src/schemas/config -c ajv-keywords/keywords/typeof -o dist/validateConfig.js && ajv compile --all-errors --inline-refs=false -s src/schemas/streamConfig -c ajv-keywords/keywords/typeof -o dist/validateStreamConfig.js",
64
64
  "precommit": "npm run lint && npm run test",
65
+ "prepublish": "NODE_ENV=production npm run build",
65
66
  "test": "npm run build && nyc --check-coverage mocha"
66
67
  },
67
- "version": "3.8.2"
68
+ "version": "3.8.3"
68
69
  }