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 1.2.5 to 1.2.6

7

dist/echo.js

@@ -212,3 +212,3 @@ var asyncGenerator = function () {

return this.options.csrfToken;
} else if (document && (selector = document.querySelector('meta[name="csrf-token"]'))) {
} else if (typeof document !== 'undefined' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');

@@ -694,2 +694,7 @@ }

this.connector = new PusherConnector(this.options);
} else if (this.options.broadcaster == 'pusher/react-native') {
if (!window['Pusher']) {
window['Pusher'] = require('pusher-js/react-native');
}
this.connector = new PusherConnector(this.options);
} else if (this.options.broadcaster == 'socket.io') {

@@ -696,0 +701,0 @@ this.connector = new SocketIoConnector(this.options);

2

package.json
{
"name": "laravel-echo",
"version": "1.2.5",
"version": "1.2.6",
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration",

@@ -5,0 +5,0 @@ "main": "dist/echo.js",

@@ -68,3 +68,3 @@ import { Channel, PresenceChannel } from './../channel';

return this.options.csrfToken;
} else if (document && (selector = document.querySelector('meta[name="csrf-token"]'))) {
} else if (typeof document !== 'undefined' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');

@@ -71,0 +71,0 @@ }

@@ -45,3 +45,3 @@ import { EventFormatter } from './util';

if (this.options.broadcaster == 'pusher') {
if (!window['Pusher']) {
if (! window['Pusher']) {
window['Pusher'] = require('pusher-js');

@@ -51,2 +51,8 @@ }

this.connector = new PusherConnector(this.options);
} else if (this.options.broadcaster == 'pusher/react-native') {
if (! window['Pusher']) {
window['Pusher'] = require('pusher-js/react-native');
}
this.connector = new PusherConnector(this.options);
} else if (this.options.broadcaster == 'socket.io') {

@@ -53,0 +59,0 @@ this.connector = new SocketIoConnector(this.options);

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