Comparing version 1.4.0 to 1.5.0
@@ -10,6 +10,7 @@ /** Created by ge on 12/4/15. */ | ||
rootReducer: Reducer; | ||
dispatch: (action: Action | Thunk) => void; | ||
update$: Subject<StateActionBundle<TState>>; | ||
action$: Subject<Action>; | ||
constructor(rootReducer: Reducer | Hash<Reducer>, initialState?: TState); | ||
dispatch(action: Action | Thunk): void; | ||
_dispatch(action: Action | Thunk): void; | ||
getState(): TState; | ||
@@ -16,0 +17,0 @@ select<TRState>(key: string): Observable<TRState>; |
@@ -23,2 +23,3 @@ "use strict"; | ||
}; | ||
this.dispatch = this._dispatch.bind(this); | ||
this.rootReducer = combineReducers_1.passOrCombineReducers(rootReducer); | ||
@@ -37,3 +38,3 @@ // action$ is a stream for action objects | ||
} | ||
Store.prototype.dispatch = function (action) { | ||
Store.prototype._dispatch = function (action) { | ||
var _action, _actionThunk, newAction; | ||
@@ -40,0 +41,0 @@ if (typeof action === 'function') { |
{ | ||
"name": "luna", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "a reactive redux-like store", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,2 +12,3 @@ /** Created by ge on 12/4/15. */ | ||
public rootReducer: Reducer; | ||
public dispatch: (action: Action|Thunk) => void; | ||
public update$: Subject<StateActionBundle<TState>>; | ||
@@ -20,2 +21,3 @@ public action$: Subject<Action>; | ||
super(passOrCombineReducers(rootReducer)(initialState, INIT_STORE_ACTION)); | ||
this.dispatch = this._dispatch.bind(this); | ||
this.rootReducer = passOrCombineReducers(rootReducer); | ||
@@ -41,3 +43,3 @@ | ||
dispatch(action: Action|Thunk) { | ||
_dispatch(action: Action|Thunk) { | ||
let _action: Action, | ||
@@ -44,0 +46,0 @@ _actionThunk: Thunk, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50814
1058