🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

pusher-js-mock

Package Overview
Dependencies
Maintainers
1
Versions
17
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

to
0.3.5

6

lib/pusher-channel-mock.d.ts

@@ -34,3 +34,9 @@ /** Interface for all the callbacks each Pusher event could potentially have */

emit(name: string, data?: any): void;
/**
* Trigger event with data.
* @param {String} name - name of the event.
* @param {*} data - data you want to pass in to callback function that gets called.
*/
trigger(name: string, data?: any): void;
}
export default PusherChannelMock;

@@ -46,4 +46,12 @@ "use strict";

};
/**
* Trigger event with data.
* @param {String} name - name of the event.
* @param {*} data - data you want to pass in to callback function that gets called.
*/
PusherChannelMock.prototype.trigger = function (name, data) {
this.emit(name, data);
};
return PusherChannelMock;
}());
exports.default = PusherChannelMock;

2

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

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