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

pusher-js-mock

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pusher-js-mock - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

4

lib/pusher-channel-mock.d.ts

@@ -25,2 +25,6 @@ /** Interface for all the callbacks each Pusher event could potentially have */

/**
* Unbind callbacks from all the events.
*/
unbind_all(): void;
/**
* Emit event with data.

@@ -27,0 +31,0 @@ * @param {String} name - name of the event.

@@ -30,2 +30,8 @@ "use strict";

/**
* Unbind callbacks from all the events.
*/
PusherChannelMock.prototype.unbind_all = function () {
this.callbacks = {};
};
/**
* Emit event with data.

@@ -32,0 +38,0 @@ * @param {String} name - name of the event.

2

package.json
{
"name": "pusher-js-mock",
"version": "0.3.3",
"version": "0.3.4",
"description": "Mock Pusher.js in your JavaScript tests with ease",

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

@@ -44,8 +44,8 @@ <p align="center">

- [Emitting an event 📶](#emitting-an-event-📶)
- [Listening for an event 👂](#listening-for-an-event-👂)
- [Emitting an event from connection 📶](#emitting-an-event-from-connection-📶)
- [Listening for an event from connection 👂](#listening-for-an-event-from-connection-👂)
- [Stubbing Pusher when imported from pusher-js package 📦](#stubbing-pusher-when-imported-from-pusher-js-package-📦)
- [Stubbing Pusher when used as a global variable 🌍](#stubbing-pusher-when-used-as-a-global-variable-🌍)
- [Emitting an event 📶](#emitting-an-event-)
- [Listening for an event 👂](#listening-for-an-event-)
- [Emitting an event from connection 📶](#emitting-an-event-from-connection-)
- [Listening for an event from connection 👂](#listening-for-an-event-from-connection-)
- [Stubbing Pusher when imported from pusher-js package 📦](#stubbing-pusher-when-imported-from-pusher-js-package-)
- [Stubbing Pusher when used as a global variable 🌍](#stubbing-pusher-when-used-as-a-global-variable-)
- [Mocking presence channels](#mocking-presence-channels)

@@ -52,0 +52,0 @@ - [Using custom authorizer](#using-custom-authorizer)

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