@endge/utils 0.24.0 → 0.24.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/index.d.ts CHANGED
@@ -241,7 +241,7 @@ export declare class EventBus<StaticEvents extends Record<string, any>, CustomEv
241
241
  /**
242
242
  * Создает экземпляр EventBus и подготавливает базовое состояние.
243
243
  */
244
- constructor(predefinedEvents: Array<keyof StaticEvents>);
244
+ constructor(predefinedEvents?: Array<keyof StaticEvents>);
245
245
  /**
246
246
  * Обрабатывает входящее событие EventBus.
247
247
  */
package/dist/utils.js CHANGED
@@ -34,7 +34,7 @@ class M {
34
34
  /**
35
35
  * Создает экземпляр EventBus и подготавливает базовое состояние.
36
36
  */
37
- constructor(t) {
37
+ constructor(t = []) {
38
38
  a(this, "listeners", /* @__PURE__ */ new Map());
39
39
  t.forEach((e) => {
40
40
  this.listeners.set(e, /* @__PURE__ */ new Set());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@endge/utils",
3
3
  "private": false,
4
- "version": "0.24.0",
4
+ "version": "0.24.1",
5
5
  "type": "module",
6
6
  "module": "./dist/utils.js",
7
7
  "types": "./dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "uuid": "^11.0.3"
37
37
  },
38
38
  "peerDependencies": {
39
- "pinia": "^3.0.0",
39
+ "pinia": "^2.1.7 || ^3.0.0",
40
40
  "vue": "^3.5.13"
41
41
  },
42
42
  "devDependencies": {