@whitesev/utils 2.9.1 → 2.9.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 -3
- 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 -3
- 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 -3
- 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 -3
- 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 -3
- 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 -3
- 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/Utils.d.ts +10 -3
- package/package.json +1 -1
- package/src/Utils.ts +9 -7
package/dist/index.iife.js
CHANGED
|
@@ -5475,7 +5475,7 @@ var Utils = (function () {
|
|
|
5475
5475
|
}
|
|
5476
5476
|
const domUtils = new DOMUtils();
|
|
5477
5477
|
|
|
5478
|
-
const version = "2.9.
|
|
5478
|
+
const version = "2.9.2";
|
|
5479
5479
|
|
|
5480
5480
|
class Utils {
|
|
5481
5481
|
windowApi;
|
|
@@ -8195,10 +8195,12 @@ var Utils = (function () {
|
|
|
8195
8195
|
}
|
|
8196
8196
|
createFunction(...args) {
|
|
8197
8197
|
let isAsync = args[args.length - 1];
|
|
8198
|
-
if (typeof isAsync
|
|
8198
|
+
if (typeof isAsync === "boolean") {
|
|
8199
|
+
args.splice(args.length - 1, 1);
|
|
8200
|
+
}
|
|
8201
|
+
else {
|
|
8199
8202
|
isAsync = false;
|
|
8200
8203
|
}
|
|
8201
|
-
args.splice(args.length - 1, 1);
|
|
8202
8204
|
if (isAsync) {
|
|
8203
8205
|
const AsyncFunctionConstructor = Object.getPrototypeOf(async function () { }).constructor;
|
|
8204
8206
|
return new AsyncFunctionConstructor(...args);
|