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

laravel-echo

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-echo - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

LICENSE.txt

23

dist/echo.js

@@ -11,2 +11,21 @@ 'use strict';

var EchoEventFormatter = function () {
function EchoEventFormatter() {
_classCallCheck(this, EchoEventFormatter);
}
_createClass(EchoEventFormatter, null, [{
key: 'format',
/**
* Format the given event name.
*/
value: function format(event) {
return event.replace(/\./g, '\\');
}
}]);
return EchoEventFormatter;
}();
var PusherConnector = function () {

@@ -108,3 +127,3 @@ function PusherConnector() {

value: function on(event, callback) {
this.channel.bind(event.replace(/\./g, '\\'), callback);
this.channel.bind(EchoEventFormatter.format(event), callback);

@@ -192,3 +211,3 @@ return this;

this.channel.bind(event.replace(/\./g, '\\'), function (data) {
this.channel.bind(EchoEventFormatter.format(event), function (data) {
callback(data, _this4.channel);

@@ -195,0 +214,0 @@ });

2

package.json
{
"name": "laravel-echo",
"version": "0.0.2",
"version": "0.0.3",
"description": "Laravel Echo library for beautiful Pusher integration",

@@ -5,0 +5,0 @@ "main": "dist/echo.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