@storex/core
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -19,3 +19,3 @@ "use strict"; | ||
try { | ||
this.__dispatch_count++; | ||
this._dispatch_count++; | ||
const result = original.apply(this, arguments); | ||
@@ -30,3 +30,3 @@ // console.log(`Result: ${result}`); | ||
finally { | ||
this.__dispatch_count--; | ||
this._dispatch_count--; | ||
store.dispatch.apply(this, [eventNames]); | ||
@@ -33,0 +33,0 @@ } |
@@ -11,5 +11,5 @@ import { Store } from "./"; | ||
action1(item: any): void; | ||
action2(): void; | ||
action2(items?: any[]): void; | ||
action3(): void; | ||
action4(): void; | ||
} |
@@ -26,3 +26,5 @@ "use strict"; | ||
} | ||
action2() { } | ||
action2(items = []) { | ||
items.forEach(item => this.action1(item)); | ||
} | ||
action3() { } | ||
@@ -29,0 +31,0 @@ action4() { } |
{ | ||
"name": "@storex/core", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Binding store to your app", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
8792
240