New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

laravel-echo

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

to
1.19.0

8

dist/echo.common.js

@@ -1001,6 +1001,6 @@ 'use strict';

this._defaultOptions = {
channelAuthorization: {
endpoint: '/broadcasting/auth',
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
userAuthentication: {

@@ -1032,3 +1032,3 @@ endpoint: '/broadcasting/user-auth',

if (token) {
this.options.channelAuthorization.headers['X-CSRF-TOKEN'] = token;
this.options.auth.headers['X-CSRF-TOKEN'] = token;
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token;

@@ -1040,3 +1040,3 @@ }

if (token) {
this.options.channelAuthorization.headers['Authorization'] = 'Bearer ' + token;
this.options.auth.headers['Authorization'] = 'Bearer ' + token;
this.options.userAuthentication.headers['Authorization'] = 'Bearer ' + token;

@@ -1043,0 +1043,0 @@ }

@@ -1000,6 +1000,6 @@ var Echo = (function () {

this._defaultOptions = {
channelAuthorization: {
endpoint: '/broadcasting/auth',
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
userAuthentication: {

@@ -1031,3 +1031,3 @@ endpoint: '/broadcasting/user-auth',

if (token) {
this.options.channelAuthorization.headers['X-CSRF-TOKEN'] = token;
this.options.auth.headers['X-CSRF-TOKEN'] = token;
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token;

@@ -1039,3 +1039,3 @@ }

if (token) {
this.options.channelAuthorization.headers['Authorization'] = 'Bearer ' + token;
this.options.auth.headers['Authorization'] = 'Bearer ' + token;
this.options.userAuthentication.headers['Authorization'] = 'Bearer ' + token;

@@ -1042,0 +1042,0 @@ }

@@ -997,6 +997,6 @@ function _typeof(obj) {

this._defaultOptions = {
channelAuthorization: {
endpoint: '/broadcasting/auth',
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
userAuthentication: {

@@ -1028,3 +1028,3 @@ endpoint: '/broadcasting/user-auth',

if (token) {
this.options.channelAuthorization.headers['X-CSRF-TOKEN'] = token;
this.options.auth.headers['X-CSRF-TOKEN'] = token;
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token;

@@ -1036,3 +1036,3 @@ }

if (token) {
this.options.channelAuthorization.headers['Authorization'] = 'Bearer ' + token;
this.options.auth.headers['Authorization'] = 'Bearer ' + token;
this.options.userAuthentication.headers['Authorization'] = 'Bearer ' + token;

@@ -1039,0 +1039,0 @@ }

{
"name": "laravel-echo",
"version": "1.18.0",
"version": "1.19.0",
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,6 +8,6 @@ import { Channel, PresenceChannel } from '../channel';

private _defaultOptions: any = {
channelAuthorization: {
endpoint: '/broadcasting/auth',
auth: {
headers: {},
},
authEndpoint: '/broadcasting/auth',
userAuthentication: {

@@ -47,3 +47,3 @@ endpoint: '/broadcasting/user-auth',

if (token) {
this.options.channelAuthorization.headers['X-CSRF-TOKEN'] = token;
this.options.auth.headers['X-CSRF-TOKEN'] = token;
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token;

@@ -55,3 +55,3 @@ }

if (token) {
this.options.channelAuthorization.headers['Authorization'] = 'Bearer ' + token;
this.options.auth.headers['Authorization'] = 'Bearer ' + token;
this.options.userAuthentication.headers['Authorization'] = 'Bearer ' + token;

@@ -58,0 +58,0 @@ }