@figliolia/galena 2.0.3 → 2.0.4
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.
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from "@figliolia/event-emitter";
|
|
2
1
|
import type { State } from "../Galena/State";
|
|
3
|
-
import type { MiddlewareEvent } from "./types";
|
|
4
2
|
/**
|
|
5
3
|
* # Middleware
|
|
6
4
|
*
|
|
@@ -30,7 +28,7 @@ import type { MiddlewareEvent } from "./types";
|
|
|
30
28
|
* ```
|
|
31
29
|
*/
|
|
32
30
|
export declare class Middleware<T extends any = any> {
|
|
33
|
-
static Emitter
|
|
31
|
+
private static Emitter;
|
|
34
32
|
constructor();
|
|
35
33
|
/**
|
|
36
34
|
* Validate Event
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@figliolia/galena",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "A performant state management library supporting mutable state, batched updates, middleware and a rich development API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@ import { MiddlewareEvents } from "Middleware/types";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class Middleware<T extends any = any> {
|
|
36
|
-
|
|
36
|
+
private static Emitter = new EventEmitter<MiddlewareEvent<any>>();
|
|
37
37
|
constructor() {
|
|
38
38
|
const extension = Object.getPrototypeOf(this);
|
|
39
39
|
const methods = Object.getOwnPropertyNames(extension);
|