@wikicasa-dev/utilities 1.2.0 → 1.2.1-alpha.1
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/utils/GenericUtils.cjs +1 -1
- package/dist/utils/GenericUtils.js +4 -4
- package/package.json +1 -1
- package/dist/main.cjs +0 -1
- package/dist/main.d.ts +0 -0
- package/dist/main.js +0 -1
- package/dist/vite-env.d.cjs +0 -1
- package/dist/vite-env.d.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=(t,e)=>new Promise((o,n)=>{setTimeout(()=>{try{t&&t(),o()}catch{n()}},e)});function u(t,e){if(typeof window.CustomEvent=="function")return new CustomEvent(t,e);e=e||{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),o}exports.awaitableSetTimeout=i;exports.createCustomEvent=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const u = (t, e) => new Promise((n, o) => {
|
|
2
2
|
setTimeout(() => {
|
|
3
3
|
try {
|
|
4
4
|
t && t(), n();
|
|
@@ -7,7 +7,7 @@ const c = (t, e) => new Promise((n, o) => {
|
|
|
7
7
|
}
|
|
8
8
|
}, e);
|
|
9
9
|
});
|
|
10
|
-
function
|
|
10
|
+
function c(t, e) {
|
|
11
11
|
if (typeof window.CustomEvent == "function")
|
|
12
12
|
return new CustomEvent(t, e);
|
|
13
13
|
e = e || { bubbles: !1, cancelable: !1, detail: void 0 };
|
|
@@ -20,6 +20,6 @@ function i(t, e) {
|
|
|
20
20
|
), n;
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
u as awaitableSetTimeout,
|
|
24
|
+
c as createCustomEvent
|
|
25
25
|
};
|
package/package.json
CHANGED
package/dist/main.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";console.log("Hello World");
|
package/dist/main.d.ts
DELETED
|
File without changes
|
package/dist/main.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log("Hello World");
|
package/dist/vite-env.d.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/vite-env.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|