Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pusher-redux

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pusher-redux - npm Package Compare versions

Comparing version 0.3.10 to 0.4.0

24

lib/pusher-redux.js

@@ -5,2 +5,5 @@ 'use strict';

var DISCONNECTED = 'PUSHER-REDUX/DISCONNECTED';
var CONNECTING = 'PUSHER-REDUX/CONNECTING';
var UNAVAILABLE = 'PUSHER-REDUX/UNAVAILABLE';
var FAILED = 'PUSHER-REDUX/FAILED';

@@ -63,2 +66,14 @@ // var Pusher = require('pusher-js');

var connecting = function () {
config.store.dispatch(pusherAction({ actionType: CONNECTING }));
};
var unavailable = function () {
config.store.dispatch(pusherAction({ actionType: UNAVAILABLE }));
};
var failed = function () {
config.store.dispatch(pusherAction({ actionType: FAILED }));
};
var runPending = function () {

@@ -79,2 +94,5 @@ // that's like a promise, but I don't want to depend on promises

config.socket.connection.bind('disconnected', disconnected);
config.socket.connection.bind('connecting', connecting);
config.socket.connection.bind('unavailable', unavailable);
config.socket.connection.bind('failed', failed);
};

@@ -96,2 +114,5 @@

config.socket.connection.bind('disconnected', disconnected);
config.socket.connection.bind('connecting', connecting);
config.socket.connection.bind('unavailable', unavailable);
config.socket.connection.bind('failed', failed);
};

@@ -156,1 +177,4 @@

module.exports.DISCONNECTED = DISCONNECTED;
module.exports.CONNECTING = CONNECTING;
module.exports.UNAVAILABLE = UNAVAILABLE;
module.exports.FAILED = FAILED;

2

package.json
{
"name": "pusher-redux",
"version": "0.3.10",
"version": "0.4.0",
"description": "Integration of Pusher into Redux",

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

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