@koine/dom 2.0.0-beta.121 → 2.0.0-beta.124

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/listen.cjs.js CHANGED
@@ -25,7 +25,7 @@ l&&r&&// Loop through each event type
25
25
  i.split(",").forEach(function(i){// If no event of this type yet, setup
26
26
  _listenDelegation.activeEvents[// Remove whitespace
27
27
  i=i.trim()]||(_listenDelegation.activeEvents[i]=[],on.on(window,i,_listenDelegation.eventHandler,!0)),// Push to active events
28
- _listenDelegation.activeEvents[i]?.push({selector:l,// @ts-expect-error FIXME: type...
28
+ _listenDelegation.activeEvents[i]?.push({selector:l,// FIXME: remove assertion, fix type
29
29
  callback:r});});};
30
30
 
31
31
  exports.default = listen;
package/listen.esm.js CHANGED
@@ -21,7 +21,7 @@ l&&r&&// Loop through each event type
21
21
  i.split(",").forEach(function(i){// If no event of this type yet, setup
22
22
  activeEvents[// Remove whitespace
23
23
  i=i.trim()]||(activeEvents[i]=[],on(window,i,eventHandler,!0)),// Push to active events
24
- activeEvents[i]?.push({selector:l,// @ts-expect-error FIXME: type...
24
+ activeEvents[i]?.push({selector:l,// FIXME: remove assertion, fix type
25
25
  callback:r});});};
26
26
 
27
27
  export { listen as default, listen };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@koine/dom",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/utils": "2.0.0-beta.121"
5
+ "@koine/utils": "2.0.0-beta.124"
6
6
  },
7
7
  "exports": {
8
8
  "./package.json": "./package.json",
@@ -244,5 +244,5 @@
244
244
  },
245
245
  "module": "./index.esm.js",
246
246
  "main": "./index.cjs.js",
247
- "version": "2.0.0-beta.121"
247
+ "version": "2.0.0-beta.124"
248
248
  }
package/unlisten.cjs.js CHANGED
@@ -24,7 +24,7 @@ r.split(",").forEach(r=>{let f=_listenDelegation.activeEvents[// Remove whitespa
24
24
  r=r.trim()];// if event type doesn't exist, bail
25
25
  if(!f)return;// If it's the last event of it's type, remove entirely
26
26
  if(f.length<2||!n){delete _listenDelegation.activeEvents[r],off.off(window,r,_listenDelegation.eventHandler,!0);return}// Otherwise, remove event
27
- // @ts-expect-error FIXME: type...
27
+ // FIXME: remove assertion, fix type
28
28
  let p=_listenDelegation.getIndex(f,n,o);p<0||// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
29
29
  _listenDelegation.activeEvents[r].splice(p,1);});};
30
30
 
package/unlisten.esm.js CHANGED
@@ -20,7 +20,7 @@ r.split(",").forEach(r=>{let f=activeEvents[// Remove whitespace
20
20
  r=r.trim()];// if event type doesn't exist, bail
21
21
  if(!f)return;// If it's the last event of it's type, remove entirely
22
22
  if(f.length<2||!n){delete activeEvents[r],off(window,r,eventHandler,!0);return}// Otherwise, remove event
23
- // @ts-expect-error FIXME: type...
23
+ // FIXME: remove assertion, fix type
24
24
  let p=getIndex(f,n,o);p<0||// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
25
25
  activeEvents[r].splice(p,1);});};
26
26