@whitesev/pops 3.1.1 → 3.1.2
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/index.amd.js +5 -27
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +5 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +5 -27
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +5 -27
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +5 -27
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +5 -27
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/PopsCore.d.ts +8 -16
- package/package.json +1 -1
- package/src/PopsCore.ts +4 -31
- package/src/utils/PopsUtils.ts +4 -4
package/dist/index.system.js
CHANGED
|
@@ -185,19 +185,9 @@ System.register('pops', [], (function (exports) {
|
|
|
185
185
|
window: window,
|
|
186
186
|
globalThis: globalThis,
|
|
187
187
|
self: self,
|
|
188
|
-
setTimeout: globalThis.setTimeout.bind(globalThis),
|
|
189
|
-
setInterval: globalThis.setInterval.bind(globalThis),
|
|
190
|
-
clearTimeout: globalThis.clearTimeout.bind(globalThis),
|
|
191
|
-
clearInterval: globalThis.clearInterval.bind(globalThis),
|
|
192
188
|
};
|
|
193
189
|
const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
|
|
194
190
|
const PopsCore = {
|
|
195
|
-
init(option) {
|
|
196
|
-
if (!option) {
|
|
197
|
-
option = Object.assign({}, PopsCoreDefaultEnv);
|
|
198
|
-
}
|
|
199
|
-
Object.assign(PopsCoreEnv, option);
|
|
200
|
-
},
|
|
201
191
|
get document() {
|
|
202
192
|
return PopsCoreEnv.document;
|
|
203
193
|
},
|
|
@@ -210,18 +200,6 @@ System.register('pops', [], (function (exports) {
|
|
|
210
200
|
get self() {
|
|
211
201
|
return PopsCoreEnv.self;
|
|
212
202
|
},
|
|
213
|
-
get setTimeout() {
|
|
214
|
-
return PopsCoreEnv.setTimeout;
|
|
215
|
-
},
|
|
216
|
-
get setInterval() {
|
|
217
|
-
return PopsCoreEnv.setInterval;
|
|
218
|
-
},
|
|
219
|
-
get clearTimeout() {
|
|
220
|
-
return PopsCoreEnv.clearTimeout;
|
|
221
|
-
},
|
|
222
|
-
get clearInterval() {
|
|
223
|
-
return PopsCoreEnv.clearInterval;
|
|
224
|
-
},
|
|
225
203
|
};
|
|
226
204
|
const OriginPrototype = {
|
|
227
205
|
Object: {
|
|
@@ -743,7 +721,7 @@ System.register('pops', [], (function (exports) {
|
|
|
743
721
|
return setTimeout$1(callback, timeout);
|
|
744
722
|
}
|
|
745
723
|
catch {
|
|
746
|
-
return
|
|
724
|
+
return setTimeout(callback, timeout);
|
|
747
725
|
}
|
|
748
726
|
}
|
|
749
727
|
/**
|
|
@@ -759,7 +737,7 @@ System.register('pops', [], (function (exports) {
|
|
|
759
737
|
// TODO
|
|
760
738
|
}
|
|
761
739
|
finally {
|
|
762
|
-
|
|
740
|
+
clearTimeout(timeId);
|
|
763
741
|
}
|
|
764
742
|
}
|
|
765
743
|
/**
|
|
@@ -770,7 +748,7 @@ System.register('pops', [], (function (exports) {
|
|
|
770
748
|
return setInterval$1(callback, timeout);
|
|
771
749
|
}
|
|
772
750
|
catch {
|
|
773
|
-
return
|
|
751
|
+
return setInterval(callback, timeout);
|
|
774
752
|
}
|
|
775
753
|
}
|
|
776
754
|
/**
|
|
@@ -786,7 +764,7 @@ System.register('pops', [], (function (exports) {
|
|
|
786
764
|
// 忽略
|
|
787
765
|
}
|
|
788
766
|
finally {
|
|
789
|
-
|
|
767
|
+
clearInterval(timeId);
|
|
790
768
|
}
|
|
791
769
|
}
|
|
792
770
|
/**
|
|
@@ -13364,7 +13342,7 @@ System.register('pops', [], (function (exports) {
|
|
|
13364
13342
|
},
|
|
13365
13343
|
};
|
|
13366
13344
|
|
|
13367
|
-
const version = "3.1.
|
|
13345
|
+
const version = "3.1.2";
|
|
13368
13346
|
|
|
13369
13347
|
class Pops {
|
|
13370
13348
|
/** 配置 */
|