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.7 to 0.3.8

8

lib/pusher-channel-mock.d.ts

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

*/
bind(name: string, callback: () => void): void;
bind(name: string, callback: () => void): this;
/**

@@ -24,7 +24,7 @@ * Unbind callback from an event name.

*/
unbind(name: string, callback: () => void): void;
unbind(name: string, callback: () => void): this;
/**
* Unbind callbacks from all the events.
*/
unbind_all(): void;
unbind_all(): this;
/**

@@ -35,3 +35,3 @@ * Emit event with data.

*/
emit(name: string, data?: any): void;
emit(name: string, data?: any): this;
/**

@@ -38,0 +38,0 @@ * Trigger event with data.

@@ -20,2 +20,3 @@ "use strict";

this.callbacks[name].push(callback);
return this;
};

@@ -29,2 +30,3 @@ /**

this.callbacks[name] = (this.callbacks[name] || []).filter(function (cb) { return cb !== callback; });
return this;
};

@@ -36,2 +38,3 @@ /**

this.callbacks = {};
return this;
};

@@ -48,2 +51,3 @@ /**

}
return this;
};

@@ -50,0 +54,0 @@ /**

@@ -7,3 +7,3 @@ import Members from "./members";

/** Alias to match actual API for client events */
trigger: (name: string, data?: any) => void;
trigger: (name: string, data?: any) => this;
IS_PROXY?: boolean;

@@ -10,0 +10,0 @@ /**

{
"name": "pusher-js-mock",
"version": "0.3.7",
"version": "0.3.8",
"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