Skip to content

Commit f721cc2

Browse files
authored
Merge pull request #2 from n-langle/dependabot/npm_and_yarn/rollup-2.79.2
Bump rollup from 2.23.1 to 2.79.2
2 parents 8ad90f3 + 99d71f3 commit f721cc2

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20.18.0

build/OneLoop.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2022 OneLoop.js
44
* Author: Nicolas Langle
55
* Repository: https://github.com/n-langle/OneLoop.js
6-
* Version: 5.1.2
6+
* Version: 5.1.3
77
* SPDX-License-Identifier: MIT
88
*
99
* Credit for easing functions goes to : https://github.com/ai/easings.net/blob/master/src/easings/easingsFunctions.ts
@@ -380,7 +380,7 @@ var getElements = (element, context) => typeof element === 'string' ?
380380
:
381381
element.length >= 0 ? element : [element];
382382

383-
const instances = [];
383+
const instances$2 = [];
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.indexOf(this);
420+
const index = instances$2.indexOf(this);
421421

422422
if (index > -1) {
423-
instances.splice(index, 1);
423+
instances$2.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.length; i++) {
480-
let instance = instances[i];
479+
for (let i = 0; i < instances$2.length; i++) {
480+
let instance = instances$2[i];
481481
if (instance._eventType === eventType && instance._target === target && instance._name === name) {
482-
found = instances[i];
482+
found = instances$2[i];
483483
break
484484
}
485485
}
486486

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

492492
return found
493493
}
494494

495495
static destroy() {
496-
while (instances[0]) {
497-
instances[0].destroy();
496+
while (instances$2[0]) {
497+
instances$2[0].destroy();
498498
}
499499
}
500500
}
@@ -716,7 +716,7 @@ function getMinOrMax(v) {
716716
const
717717
instances$1 = [];
718718
let autoRefreshTimer = null,
719-
resize = null,
719+
resize$1 = 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 = resize || new ThrottledEvent(window, 'resize');
734+
resize$1 = resize$1 || new ThrottledEvent(window, 'resize');
735735
scroll = scroll || new ThrottledEvent(window, 'scroll');
736736

737-
resize.add('resize', this._onResize);
737+
resize$1.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.destroy();
754+
resize$1.destroy();
755755
scroll.destroy();
756-
resize = scroll = null;
756+
resize$1 = scroll = null;
757757
} else {
758-
resize.remove('resize', this._onResize);
758+
resize$1.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$2 = [],
898+
instances = [],
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$1 = null;
901+
let resize = 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$1) {
912-
resize$1 = new ThrottledEvent(window, 'resize');
911+
if (!resize) {
912+
resize = new ThrottledEvent(window, 'resize');
913913
}
914914

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

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

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

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

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

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

937937
restore() {
938938
this._element.innerHTML = this._originalInnerHTML;
939-
resize$1.remove('resize', this._onResize);
939+
resize.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$1.add('resize', this._onResize);
967+
resize.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$2[0]) {
1112-
instances$2[0].destroy();
1111+
while (instances[0]) {
1112+
instances[0].destroy();
11131113
}
11141114
};
11151115

build/OneLoop.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oneloop.js",
3-
"version": "5.1.2",
3+
"version": "5.1.3",
44
"description": "Javascript animation library. Provide scroll observer, tween, throttled event, splitted text, vector2, easings in a bundle of about 5kb gzipped",
55
"type": "module",
66
"main": "./build/OneLoop.min.js",
@@ -38,8 +38,8 @@
3838
"devDependencies": {
3939
"concurrently": "5.3.0",
4040
"eslint": "8.36.0",
41-
"http-server": "0.12.3",
42-
"rollup": "2.23.1",
43-
"rollup-plugin-uglify": "6.0.4"
41+
"http-server": "^14.1.1",
42+
"rollup": "2.79.2",
43+
"rollup-plugin-uglify": "^5.0.2"
4444
}
4545
}

0 commit comments

Comments
 (0)