Skip to content

Commit 8ad90f3

Browse files
committed
fix (package.json): packages version
1 parent 52ef82f commit 8ad90f3

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

build/OneLoop.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ var getElements = (element, context) => typeof element === 'string' ?
380380
:
381381
element.length >= 0 ? element : [element];
382382

383-
const instances$2 = [];
383+
const instances = [];
384384

385385
class ThrottledEvent extends MainLoopEntry {
386386
constructor(target, eventType, name) {
@@ -417,10 +417,10 @@ class ThrottledEvent extends MainLoopEntry {
417417
}
418418

419419
destroy() {
420-
const index = instances$2.indexOf(this);
420+
const index = instances.indexOf(this);
421421

422422
if (index > -1) {
423-
instances$2.splice(index, 1);
423+
instances.splice(index, 1);
424424
}
425425

426426
this._target.removeEventListener(this._eventType, this._onEvent);
@@ -476,25 +476,25 @@ class ThrottledEvent extends MainLoopEntry {
476476

477477
name = name || '';
478478

479-
for (let i = 0; i < instances$2.length; i++) {
480-
let instance = instances$2[i];
479+
for (let i = 0; i < instances.length; i++) {
480+
let instance = instances[i];
481481
if (instance._eventType === eventType && instance._target === target && instance._name === name) {
482-
found = instances$2[i];
482+
found = instances[i];
483483
break
484484
}
485485
}
486486

487487
if (!found) {
488488
found = new ThrottledEvent(target, eventType, name);
489-
instances$2.push(found);
489+
instances.push(found);
490490
}
491491

492492
return found
493493
}
494494

495495
static destroy() {
496-
while (instances$2[0]) {
497-
instances$2[0].destroy();
496+
while (instances[0]) {
497+
instances[0].destroy();
498498
}
499499
}
500500
}
@@ -716,7 +716,7 @@ function getMinOrMax(v) {
716716
const
717717
instances$1 = [];
718718
let autoRefreshTimer = null,
719-
resize$1 = null,
719+
resize = null,
720720
scroll = null;
721721

722722
class ScrollObserver extends MainLoopEntry {
@@ -731,10 +731,10 @@ class ScrollObserver extends MainLoopEntry {
731731
this._needsUpdate = true;
732732
this._lastSize = getDocumentScrollSize();
733733

734-
resize$1 = resize$1 || new ThrottledEvent(window, 'resize');
734+
resize = resize || new ThrottledEvent(window, 'resize');
735735
scroll = scroll || new ThrottledEvent(window, 'scroll');
736736

737-
resize$1.add('resize', this._onResize);
737+
resize.add('resize', this._onResize);
738738
scroll.add('scrollstart', this._onScroll);
739739

740740
instances$1.push(this);
@@ -751,11 +751,11 @@ class ScrollObserver extends MainLoopEntry {
751751

752752
if (instances$1.length === 0) {
753753
ScrollObserver.stopAutoRefresh();
754-
resize$1.destroy();
754+
resize.destroy();
755755
scroll.destroy();
756-
resize$1 = scroll = null;
756+
resize = scroll = null;
757757
} else {
758-
resize$1.remove('resize', this._onResize);
758+
resize.remove('resize', this._onResize);
759759
scroll.remove('scrollstart', this._onScroll);
760760
}
761761
}
@@ -895,10 +895,10 @@ class ScrollObserver extends MainLoopEntry {
895895
/* eslint-disable no-empty-character-class */
896896

897897
const
898-
instances = [],
898+
instances$2 = [],
899899
specialCharRegExp = /(((?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])((\u200D(\u2640|\u2642)\uFE0F)|[]))|&([a-zA-Z]{2,6}|#[0-9]{2,5});|<|>)/g,
900900
whiteCharRegExp = /(\s)/;
901-
let resize = null;
901+
let resize$1 = null;
902902

903903
class SplittedText {
904904
constructor(element, options) {
@@ -908,35 +908,35 @@ class SplittedText {
908908
this._element = element;
909909
this._onResize = this.split.bind(this);
910910

911-
if (!resize) {
912-
resize = new ThrottledEvent(window, 'resize');
911+
if (!resize$1) {
912+
resize$1 = new ThrottledEvent(window, 'resize');
913913
}
914914

915915
if (this.autoSplit) {
916916
this.split();
917917
}
918918

919-
instances.push(this);
919+
instances$2.push(this);
920920
}
921921

922922
destroy() {
923-
const index = instances.indexOf(this);
923+
const index = instances$2.indexOf(this);
924924

925925
if (index > -1) {
926926
this.restore();
927927

928-
instances.splice(index, 1);
928+
instances$2.splice(index, 1);
929929

930-
if (!instances.length) {
931-
resize.destroy();
932-
resize = null;
930+
if (!instances$2.length) {
931+
resize$1.destroy();
932+
resize$1 = null;
933933
}
934934
}
935935
}
936936

937937
restore() {
938938
this._element.innerHTML = this._originalInnerHTML;
939-
resize.remove('resize', this._onResize);
939+
resize$1.remove('resize', this._onResize);
940940

941941
return this
942942
}
@@ -964,7 +964,7 @@ class SplittedText {
964964
html = '',
965965
lastOffsetTop = children[0].offsetTop;
966966

967-
resize.add('resize', this._onResize);
967+
resize$1.add('resize', this._onResize);
968968

969969
for (let i = 0; i < children.length; i++) {
970970
const
@@ -1108,8 +1108,8 @@ function wrapByWord(element, wrapper) {
11081108
// static
11091109
// ----
11101110
SplittedText.destroy = function() {
1111-
while (instances[0]) {
1112-
instances[0].destroy();
1111+
while (instances$2[0]) {
1112+
instances$2[0].destroy();
11131113
}
11141114
};
11151115

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@
3535
"splitted-text",
3636
"throttled-event"
3737
],
38-
"dependencies": {},
3938
"devDependencies": {
40-
"concurrently": "^5.3.0",
41-
"eslint": "^8.36.0",
42-
"http-server": "^0.12.3",
43-
"rollup": "^2.23.1",
44-
"rollup-plugin-uglify": "^6.0.4"
39+
"concurrently": "5.3.0",
40+
"eslint": "8.36.0",
41+
"http-server": "0.12.3",
42+
"rollup": "2.23.1",
43+
"rollup-plugin-uglify": "6.0.4"
4544
}
4645
}

0 commit comments

Comments
 (0)