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.4 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",

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