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.1.1 to 1.1.3

2

dist/Store.js

@@ -37,3 +37,3 @@ "use strict";

this.action$ = new rxjs_1.BehaviorSubject(exports.INIT_STORE_ACTION);
this.update$ = new rxjs_1.ReplaySubject(1);
this.update$ = new rxjs_1.ReplaySubject(0);
this.action$

@@ -40,0 +40,0 @@ .subscribe(function (action) {

{
"name": "luna",
"version": "1.1.1",
"version": "1.1.3",
"description": "a reactive redux-like store",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -42,3 +42,3 @@ # Luna, a reactive redux library with built-in support for async action creator and Thunks

The `store$.update$` is a replay subject for `{state, action}` bundle. It receives updated state/action bundle after the action has been applied to the store. This stream is used as a `post-action` hook for middlewares such as [luna-saga](https://github.com/escherpad/luna-saga). The reason this `update$` stream is useful is because the `store$` stream does not update when the state returned is identical to before. Therefore to get `{state, action}` updates for `noop` actions, we need this dedicated update stream.
The `store$.update$` is a replay subject for `{state, action}` bundle. It receives updated state/action bundle after the action has been applied to the store. This stream is used as a `post-action` hook for middlewares such as [luna-saga](https://github.com/escherpad/luna-saga).

@@ -45,0 +45,0 @@

@@ -22,3 +22,3 @@ /** Created by ge on 12/4/15. */

this.action$ = new BehaviorSubject<Action>(INIT_STORE_ACTION);
this.update$ = new ReplaySubject<StateActionBundle<TState>>(1);
this.update$ = new ReplaySubject<StateActionBundle<TState>>(0);
this.action$

@@ -25,0 +25,0 @@ .subscribe(

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc