Skip to content

Commit 73ffb1f

Browse files
committed
Rebuild
1 parent e64c6c1 commit 73ffb1f

File tree

4 files changed

+63
-63
lines changed

4 files changed

+63
-63
lines changed

dist/index.browser.umd.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ var ArrayFixed = function () {
10411041
if (!this._array.hasOwnProperty(index)) {
10421042
this._array[index] = value;
10431043
++this._count;
1044-
return;
1044+
return index;
10451045
}
10461046
var emptyIndex = null;
10471047
for (var i = index - 1; i >= 0; --i) {
@@ -1056,7 +1056,7 @@ var ArrayFixed = function () {
10561056
this._array.copyWithin(emptyIndex, emptyIndex + 1, index + 1);
10571057
this._array[index] = value;
10581058
++this._count;
1059-
return;
1059+
return index;
10601060
}
10611061
}, {
10621062
key: 'caretRight',
@@ -1070,7 +1070,7 @@ var ArrayFixed = function () {
10701070
if (!this._array.hasOwnProperty(index)) {
10711071
this._array[index] = value;
10721072
++this._count;
1073-
return;
1073+
return index;
10741074
}
10751075
var emptyIndex = null;
10761076
for (var i = index + 1; i < this._array.length; ++i) {
@@ -1085,7 +1085,7 @@ var ArrayFixed = function () {
10851085
this._array.copyWithin(index + 1, index, emptyIndex);
10861086
this._array[index] = value;
10871087
++this._count;
1088-
return;
1088+
return index;
10891089
}
10901090
}, {
10911091
key: 'caret',
@@ -1101,7 +1101,7 @@ var ArrayFixed = function () {
11011101
if (!this._array.hasOwnProperty(index)) {
11021102
this._array[index] = value;
11031103
++this._count;
1104-
return;
1104+
return index;
11051105
}
11061106
var emptyDirectionAndIndex = null;
11071107
var i = index - 1,
@@ -1181,7 +1181,7 @@ var ArrayFixed = function () {
11811181
}
11821182
this._array[index] = value;
11831183
++this._count;
1184-
return;
1184+
return index;
11851185
}
11861186
}, {
11871187
key: 'length',
@@ -1832,7 +1832,7 @@ var ArrayFixedDense = function (_ArrayFixed) {
18321832

18331833
function ArrayFixedDense() {
18341834
var sizeOrArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
1835-
var direction_ = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1835+
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
18361836

18371837
_classCallCheck(this, ArrayFixedDense);
18381838

@@ -1841,7 +1841,7 @@ var ArrayFixedDense = function (_ArrayFixed) {
18411841
var arrayNew = _Object$keys(sizeOrArray).map(function (k) {
18421842
return sizeOrArray[k];
18431843
});
1844-
if (direction_) {
1844+
if (direction) {
18451845
arrayNew.length = sizeOrArray.length;
18461846
sizeOrArray = arrayNew;
18471847
} else {
@@ -1851,7 +1851,7 @@ var ArrayFixedDense = function (_ArrayFixed) {
18511851

18521852
var _this = _possibleConstructorReturn(this, (ArrayFixedDense.__proto__ || _Object$getPrototypeOf(ArrayFixedDense)).call(this, sizeOrArray));
18531853

1854-
_this._direction = direction_;
1854+
_this._direction = direction;
18551855
return _this;
18561856
}
18571857

@@ -1864,14 +1864,14 @@ var ArrayFixedDense = function (_ArrayFixed) {
18641864

18651865
_createClass(ArrayFixedDense, [{
18661866
key: 'switchDirection',
1867-
value: function switchDirection(direction_) {
1868-
if (direction_ !== this._direction) {
1869-
if (direction_) {
1867+
value: function switchDirection(direction) {
1868+
if (direction !== this._direction) {
1869+
if (direction) {
18701870
_get(ArrayFixedDense.prototype.__proto__ || _Object$getPrototypeOf(ArrayFixedDense.prototype), 'collapseLeft', this).call(this);
18711871
} else {
18721872
_get(ArrayFixedDense.prototype.__proto__ || _Object$getPrototypeOf(ArrayFixedDense.prototype), 'collapseRight', this).call(this);
18731873
}
1874-
this._direction = direction_;
1874+
this._direction = direction;
18751875
}
18761876
}
18771877
}, {
@@ -2071,7 +2071,7 @@ var ArrayFixedDense = function (_ArrayFixed) {
20712071
}
20722072
this._array[index] = value;
20732073
++this._count;
2074-
return;
2074+
return index;
20752075
}
20762076
}, {
20772077
key: 'caretRight',
@@ -2100,7 +2100,7 @@ var ArrayFixedDense = function (_ArrayFixed) {
21002100
}
21012101
this._array[index] = value;
21022102
++this._count;
2103-
return;
2103+
return index;
21042104
}
21052105
}, {
21062106
key: 'caret',
@@ -2120,12 +2120,12 @@ var ArrayFixedDense = function (_ArrayFixed) {
21202120
}], [{
21212121
key: 'fromArray',
21222122
value: function fromArray(array, count) {
2123-
var direction_ = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2123+
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
21242124

21252125
var arrayFixedDense = new ArrayFixedDense(array.length);
21262126
arrayFixedDense._array = array;
21272127
arrayFixedDense._count = count;
2128-
arrayFixedDense._direction = direction_;
2128+
arrayFixedDense._direction = direction;
21292129
return arrayFixedDense;
21302130
}
21312131
}]);

dist/index.node.cjs.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class ArrayFixed {
217217
if (!this._array.hasOwnProperty(index)) {
218218
this._array[index] = value;
219219
++this._count;
220-
return;
220+
return index;
221221
}
222222
let emptyIndex = null;
223223
for (let i = index - 1; i >= 0; --i) {
@@ -232,7 +232,7 @@ class ArrayFixed {
232232
this._array.copyWithin(emptyIndex, emptyIndex + 1, index + 1);
233233
this._array[index] = value;
234234
++this._count;
235-
return;
235+
return index;
236236
}
237237

238238
caretRight(index, value) {
@@ -245,7 +245,7 @@ class ArrayFixed {
245245
if (!this._array.hasOwnProperty(index)) {
246246
this._array[index] = value;
247247
++this._count;
248-
return;
248+
return index;
249249
}
250250
let emptyIndex = null;
251251
for (let i = index + 1; i < this._array.length; ++i) {
@@ -260,7 +260,7 @@ class ArrayFixed {
260260
this._array.copyWithin(index + 1, index, emptyIndex);
261261
this._array[index] = value;
262262
++this._count;
263-
return;
263+
return index;
264264
}
265265

266266
caret(index, value, preferredDirection = true) {
@@ -273,7 +273,7 @@ class ArrayFixed {
273273
if (!this._array.hasOwnProperty(index)) {
274274
this._array[index] = value;
275275
++this._count;
276-
return;
276+
return index;
277277
}
278278
let emptyDirectionAndIndex = null;
279279
let i = index - 1,
@@ -354,7 +354,7 @@ class ArrayFixed {
354354
}
355355
this._array[index] = value;
356356
++this._count;
357-
return;
357+
return index;
358358
}
359359

360360
}
@@ -367,46 +367,46 @@ class ArrayFixed {
367367
*/
368368
class ArrayFixedDense extends ArrayFixed {
369369

370-
constructor(sizeOrArray = 0, direction_ = true) {
370+
constructor(sizeOrArray = 0, direction = true) {
371371
if (Array.isArray(sizeOrArray)) {
372372
// $FlowFixMe: Arrays are objects
373373
const arrayNew = _Object$keys(sizeOrArray).map(k => sizeOrArray[k]);
374-
if (direction_) {
374+
if (direction) {
375375
arrayNew.length = sizeOrArray.length;
376376
sizeOrArray = arrayNew;
377377
} else {
378378
sizeOrArray = new Array(sizeOrArray.length - arrayNew.length).concat(arrayNew);
379379
}
380380
}
381381
super(sizeOrArray);
382-
this._direction = direction_;
382+
this._direction = direction;
383383
}
384384

385385
/**
386386
* Construct from reference.
387387
* This skips the integrity process in the normal constructor.
388388
* The array must already be dense, and have the correct count and direction.
389389
*/
390-
static fromArray(array, count, direction_ = true) {
390+
static fromArray(array, count, direction = true) {
391391
const arrayFixedDense = new ArrayFixedDense(array.length);
392392
arrayFixedDense._array = array;
393393
arrayFixedDense._count = count;
394-
arrayFixedDense._direction = direction_;
394+
arrayFixedDense._direction = direction;
395395
return arrayFixedDense;
396396
}
397397

398398
get direction() {
399399
return this._direction;
400400
}
401401

402-
switchDirection(direction_) {
403-
if (direction_ !== this._direction) {
404-
if (direction_) {
402+
switchDirection(direction) {
403+
if (direction !== this._direction) {
404+
if (direction) {
405405
super.collapseLeft();
406406
} else {
407407
super.collapseRight();
408408
}
409-
this._direction = direction_;
409+
this._direction = direction;
410410
}
411411
}
412412

@@ -575,7 +575,7 @@ class ArrayFixedDense extends ArrayFixed {
575575
}
576576
this._array[index] = value;
577577
++this._count;
578-
return;
578+
return index;
579579
}
580580

581581
caretRight(index, value) {
@@ -603,7 +603,7 @@ class ArrayFixedDense extends ArrayFixed {
603603
}
604604
this._array[index] = value;
605605
++this._count;
606-
return;
606+
return index;
607607
}
608608

609609
caret(index, value) {

dist/index.node.es.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class ArrayFixed {
211211
if (!this._array.hasOwnProperty(index)) {
212212
this._array[index] = value;
213213
++this._count;
214-
return;
214+
return index;
215215
}
216216
let emptyIndex = null;
217217
for (let i = index - 1; i >= 0; --i) {
@@ -226,7 +226,7 @@ class ArrayFixed {
226226
this._array.copyWithin(emptyIndex, emptyIndex + 1, index + 1);
227227
this._array[index] = value;
228228
++this._count;
229-
return;
229+
return index;
230230
}
231231

232232
caretRight(index, value) {
@@ -239,7 +239,7 @@ class ArrayFixed {
239239
if (!this._array.hasOwnProperty(index)) {
240240
this._array[index] = value;
241241
++this._count;
242-
return;
242+
return index;
243243
}
244244
let emptyIndex = null;
245245
for (let i = index + 1; i < this._array.length; ++i) {
@@ -254,7 +254,7 @@ class ArrayFixed {
254254
this._array.copyWithin(index + 1, index, emptyIndex);
255255
this._array[index] = value;
256256
++this._count;
257-
return;
257+
return index;
258258
}
259259

260260
caret(index, value, preferredDirection = true) {
@@ -267,7 +267,7 @@ class ArrayFixed {
267267
if (!this._array.hasOwnProperty(index)) {
268268
this._array[index] = value;
269269
++this._count;
270-
return;
270+
return index;
271271
}
272272
let emptyDirectionAndIndex = null;
273273
let i = index - 1,
@@ -348,7 +348,7 @@ class ArrayFixed {
348348
}
349349
this._array[index] = value;
350350
++this._count;
351-
return;
351+
return index;
352352
}
353353

354354
}
@@ -361,46 +361,46 @@ class ArrayFixed {
361361
*/
362362
class ArrayFixedDense extends ArrayFixed {
363363

364-
constructor(sizeOrArray = 0, direction_ = true) {
364+
constructor(sizeOrArray = 0, direction = true) {
365365
if (Array.isArray(sizeOrArray)) {
366366
// $FlowFixMe: Arrays are objects
367367
const arrayNew = _Object$keys(sizeOrArray).map(k => sizeOrArray[k]);
368-
if (direction_) {
368+
if (direction) {
369369
arrayNew.length = sizeOrArray.length;
370370
sizeOrArray = arrayNew;
371371
} else {
372372
sizeOrArray = new Array(sizeOrArray.length - arrayNew.length).concat(arrayNew);
373373
}
374374
}
375375
super(sizeOrArray);
376-
this._direction = direction_;
376+
this._direction = direction;
377377
}
378378

379379
/**
380380
* Construct from reference.
381381
* This skips the integrity process in the normal constructor.
382382
* The array must already be dense, and have the correct count and direction.
383383
*/
384-
static fromArray(array, count, direction_ = true) {
384+
static fromArray(array, count, direction = true) {
385385
const arrayFixedDense = new ArrayFixedDense(array.length);
386386
arrayFixedDense._array = array;
387387
arrayFixedDense._count = count;
388-
arrayFixedDense._direction = direction_;
388+
arrayFixedDense._direction = direction;
389389
return arrayFixedDense;
390390
}
391391

392392
get direction() {
393393
return this._direction;
394394
}
395395

396-
switchDirection(direction_) {
397-
if (direction_ !== this._direction) {
398-
if (direction_) {
396+
switchDirection(direction) {
397+
if (direction !== this._direction) {
398+
if (direction) {
399399
super.collapseLeft();
400400
} else {
401401
super.collapseRight();
402402
}
403-
this._direction = direction_;
403+
this._direction = direction;
404404
}
405405
}
406406

@@ -569,7 +569,7 @@ class ArrayFixedDense extends ArrayFixed {
569569
}
570570
this._array[index] = value;
571571
++this._count;
572-
return;
572+
return index;
573573
}
574574

575575
caretRight(index, value) {
@@ -597,7 +597,7 @@ class ArrayFixedDense extends ArrayFixed {
597597
}
598598
this._array[index] = value;
599599
++this._count;
600-
return;
600+
return index;
601601
}
602602

603603
caret(index, value) {

0 commit comments

Comments
 (0)