Socket
Socket
Sign inDemoInstall

luna

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luna - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

3

dist/Store.d.ts

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc