@jsenv/dom 0.14.1 → 0.14.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/jsenv_dom.js CHANGED
@@ -226,6 +226,7 @@ const dispatchPublicCustomEvent = (
226
226
  const customEvent = new CustomEvent(customEventName, {
227
227
  detail: resolveEventDetail(customEventDetail),
228
228
  bubbles: true,
229
+ cancelable: true,
229
230
  });
230
231
  return el.dispatchEvent(customEvent);
231
232
  };
@@ -357,7 +358,7 @@ const createEventGroupLogger = () => {
357
358
  }, 0);
358
359
  };
359
360
 
360
- return (eOrMessage, sideEffect) => {
361
+ return (eOrMessage, sideEffect, ...args) => {
361
362
  if (!(eOrMessage instanceof Event)) {
362
363
  console.debug(eOrMessage);
363
364
  return;
@@ -378,7 +379,7 @@ const createEventGroupLogger = () => {
378
379
  currentInitiator = initiator;
379
380
  }
380
381
  const line = formatSideEffectLine(e, sideEffect);
381
- console.debug(line);
382
+ console.debug(line, ...args);
382
383
  scheduleGroupEnd();
383
384
  };
384
385
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/dom",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "type": "module",
5
5
  "description": "DOM utilities for writing frontend code",
6
6
  "repository": {