@thednp/shorty 2.0.0-alpha18 → 2.0.0-alpha20
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/README.md +2 -2
- package/dist/shorty.cjs +1 -1
- package/dist/shorty.cjs.map +1 -1
- package/dist/shorty.d.ts +183 -184
- package/dist/shorty.js +1 -1
- package/dist/shorty.js.map +1 -1
- package/dist/shorty.mjs +3 -13
- package/dist/shorty.mjs.map +1 -1
- package/package.json +5 -4
- package/src/event/off.ts +4 -6
- package/src/event/on.ts +4 -6
- package/src/event/one.ts +8 -25
- package/src/index.ts +2 -0
- package/src/interface/event.d.ts +24 -114
package/dist/shorty.mjs
CHANGED
|
@@ -144,19 +144,9 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
144
144
|
t.removeEventListener(e, n, s);
|
|
145
145
|
}, Kt = (t, e, n, o) => {
|
|
146
146
|
const s = (r) => {
|
|
147
|
-
(r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Jt(
|
|
148
|
-
t,
|
|
149
|
-
e,
|
|
150
|
-
s,
|
|
151
|
-
o
|
|
152
|
-
));
|
|
147
|
+
(r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Jt(t, e, s, o));
|
|
153
148
|
};
|
|
154
|
-
Gt(
|
|
155
|
-
t,
|
|
156
|
-
e,
|
|
157
|
-
s,
|
|
158
|
-
o
|
|
159
|
-
);
|
|
149
|
+
Gt(t, e, s, o);
|
|
160
150
|
}, Xt = () => {
|
|
161
151
|
}, hn = (() => {
|
|
162
152
|
let t = !1;
|
|
@@ -452,7 +442,7 @@ const b = /* @__PURE__ */ new Map(), ae = (t, e) => {
|
|
|
452
442
|
}, Eo = (t) => v(t) && t.constructor.name === "WeakMap" || !1, bo = (t) => i(t) && ["SVG", "Image", "Video", "Canvas"].some((e) => t.constructor.name.includes(e)) || !1, ho = (t) => v(t) && t.constructor.name === "NodeList" || !1, yo = (t) => T(t).dir === "rtl", wo = (t) => i(t) && t.constructor.name.includes("SVG") || !1, Ao = (t) => i(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, le = (t, e) => t ? t.closest(e) || // break out of `ShadowRoot`
|
|
453
443
|
le(t.getRootNode().host, e) : null, So = (t, e) => u(t) ? t : (i(e) ? e : d()).querySelector(t), de = (t, e) => (i(e) ? e : d()).getElementsByTagName(t), No = (t) => [...de("*", t)].filter(ue), ko = (t, e) => d(e).getElementById(t) || null, Mo = (t, e) => (i(e) ? e : d()).querySelectorAll(t), To = (t, e) => (e && i(e) ? e : d()).getElementsByClassName(
|
|
454
444
|
t
|
|
455
|
-
), Do = (t, e) => t.matches(e), Co = "2.0.
|
|
445
|
+
), Do = (t, e) => t.matches(e), Co = "2.0.0alpha20";
|
|
456
446
|
export {
|
|
457
447
|
Bn as ArrayFrom,
|
|
458
448
|
P as DOMContentLoadedEvent,
|