minimal-piral 1.5.0-beta.6446 → 1.5.0-beta.6489

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.
@@ -3633,12 +3633,12 @@ function installPiralDebug(options) {
3633
3633
  debug: debugApiVersion,
3634
3634
  instance: {
3635
3635
  name: "minimal-piral",
3636
- version: "1.5.0-beta.6446",
3636
+ version: "1.5.0-beta.6489",
3637
3637
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
3638
3638
  },
3639
3639
  build: {
3640
- date: "2024-01-05T10:57:14.215Z",
3641
- cli: "1.5.0-beta.6446",
3640
+ date: "2024-01-17T17:15:39.257Z",
3641
+ cli: "1.5.0-beta.6489",
3642
3642
  compat: "1"
3643
3643
  }
3644
3644
  };
@@ -44491,7 +44491,7 @@ function nameOf(type) {
44491
44491
  function createListener() {
44492
44492
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
44493
44493
  var eventListeners = [];
44494
- return {
44494
+ var events = {
44495
44495
  on: function on(type, callback) {
44496
44496
  var listener = function listener(_ref7) {
44497
44497
  var detail = _ref7.detail;
@@ -44499,15 +44499,14 @@ function createListener() {
44499
44499
  };
44500
44500
  document.body.addEventListener(nameOf(type), listener);
44501
44501
  eventListeners.push([callback, listener]);
44502
- return this;
44502
+ return events;
44503
44503
  },
44504
44504
  once: function once(type, callback) {
44505
- var _this = this;
44506
44505
  var cb = function cb(ev) {
44507
- _this.off(type, cb);
44506
+ events.off(type, cb);
44508
44507
  callback(ev);
44509
44508
  };
44510
- return this.on(type, cb);
44509
+ return events.on(type, cb);
44511
44510
  },
44512
44511
  off: function off(type, callback) {
44513
44512
  var _eventListeners$filte = eventListeners.filter(function (m) {
@@ -44519,7 +44518,7 @@ function createListener() {
44519
44518
  document.body.removeEventListener(nameOf(type), listener[1]);
44520
44519
  eventListeners.splice(eventListeners.indexOf(listener), 1);
44521
44520
  }
44522
- return this;
44521
+ return events;
44523
44522
  },
44524
44523
  emit: function emit(type, arg) {
44525
44524
  document.body.dispatchEvent(new CustomEvent(nameOf(type), {
@@ -44530,9 +44529,10 @@ function createListener() {
44530
44529
  state: state
44531
44530
  }
44532
44531
  }));
44533
- return this;
44532
+ return events;
44534
44533
  }
44535
44534
  };
44535
+ return events;
44536
44536
  }
44537
44537
 
44538
44538
  /*!
@@ -44723,4 +44723,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
44723
44723
 
44724
44724
  /******/ })()
44725
44725
  ;
44726
- //# sourceMappingURL=index.ad0c3f.js.map
44726
+ //# sourceMappingURL=index.5ca365.js.map