laravel-echo
Advanced tools
Comparing version 1.11.7 to 1.12.0
--- | ||
name: "Bug report" | ||
about: "Report something that's broken. Please ensure your Laravel version is still supported: https://laravel.com/docs/releases#support-policy" | ||
about: "Report something that's broken. Please ensure your version is still supported: https://laravel.com/docs/releases#support-policy" | ||
--- | ||
@@ -5,0 +5,0 @@ |
<!-- | ||
Please only send a pull request to branches which are currently supported: https://laravel.com/docs/releases#support-policy | ||
If you are unsure which branch your pull request should be sent to, please read: https://laravel.com/docs/contributions#which-branch | ||
Pull requests without a descriptive title, thorough description, or tests will be closed. | ||
@@ -7,0 +3,0 @@ |
# Release Notes | ||
## [Unreleased](https://github.com/laravel/echo/compare/v1.11.5...master) | ||
## [Unreleased](https://github.com/laravel/echo/compare/v1.11.7...master) | ||
## [v1.11.7](https://github.com/laravel/echo/compare/v1.11.6...v1.11.7) - 2022-04-21 | ||
No significant changes. | ||
## [v1.11.6](https://github.com/laravel/echo/compare/v1.11.5...v1.11.6) - 2022-04-21 | ||
No significant changes. | ||
## [v1.11.5](https://github.com/laravel/echo/compare/v1.11.4...v1.11.5) - 2022-04-12 | ||
@@ -6,0 +14,0 @@ |
@@ -20,2 +20,6 @@ import { Connector } from './connector'; | ||
/** | ||
* Sign in the user via Pusher user authentication (https://pusher.com/docs/channels/using_channels/user-authentication/). | ||
*/ | ||
signin(): void; | ||
/** | ||
* Listen for an event on a channel instance. | ||
@@ -22,0 +26,0 @@ */ |
@@ -933,2 +933,6 @@ 'use strict'; | ||
authEndpoint: '/broadcasting/auth', | ||
userAuthentication: { | ||
endpoint: '/broadcasting/user-auth', | ||
headers: {} | ||
}, | ||
broadcaster: 'pusher', | ||
@@ -952,5 +956,7 @@ csrfToken: null, | ||
this.options = _extends(this._defaultOptions, options); | ||
var token = this.csrfToken(); | ||
if (this.csrfToken()) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken(); | ||
if (token) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = token; | ||
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token; | ||
} | ||
@@ -1021,2 +1027,11 @@ | ||
/** | ||
* Sign in the user via Pusher user authentication (https://pusher.com/docs/channels/using_channels/user-authentication/). | ||
*/ | ||
}, { | ||
key: "signin", | ||
value: function signin() { | ||
this.pusher.signin(); | ||
} | ||
/** | ||
* Listen for an event on a channel instance. | ||
@@ -1023,0 +1038,0 @@ */ |
@@ -932,2 +932,6 @@ var Echo = (function (exports) { | ||
authEndpoint: '/broadcasting/auth', | ||
userAuthentication: { | ||
endpoint: '/broadcasting/user-auth', | ||
headers: {} | ||
}, | ||
broadcaster: 'pusher', | ||
@@ -951,5 +955,7 @@ csrfToken: null, | ||
this.options = _extends(this._defaultOptions, options); | ||
var token = this.csrfToken(); | ||
if (this.csrfToken()) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken(); | ||
if (token) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = token; | ||
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token; | ||
} | ||
@@ -1020,2 +1026,11 @@ | ||
/** | ||
* Sign in the user via Pusher user authentication (https://pusher.com/docs/channels/using_channels/user-authentication/). | ||
*/ | ||
}, { | ||
key: "signin", | ||
value: function signin() { | ||
this.pusher.signin(); | ||
} | ||
/** | ||
* Listen for an event on a channel instance. | ||
@@ -1022,0 +1037,0 @@ */ |
@@ -929,2 +929,6 @@ function _classCallCheck(instance, Constructor) { | ||
authEndpoint: '/broadcasting/auth', | ||
userAuthentication: { | ||
endpoint: '/broadcasting/user-auth', | ||
headers: {} | ||
}, | ||
broadcaster: 'pusher', | ||
@@ -948,5 +952,7 @@ csrfToken: null, | ||
this.options = _extends(this._defaultOptions, options); | ||
var token = this.csrfToken(); | ||
if (this.csrfToken()) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken(); | ||
if (token) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = token; | ||
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token; | ||
} | ||
@@ -1017,2 +1023,11 @@ | ||
/** | ||
* Sign in the user via Pusher user authentication (https://pusher.com/docs/channels/using_channels/user-authentication/). | ||
*/ | ||
}, { | ||
key: "signin", | ||
value: function signin() { | ||
this.pusher.signin(); | ||
} | ||
/** | ||
* Listen for an event on a channel instance. | ||
@@ -1019,0 +1034,0 @@ */ |
{ | ||
"name": "laravel-echo", | ||
"version": "1.11.7", | ||
"version": "1.12.0", | ||
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -12,2 +12,6 @@ import { Channel, PresenceChannel } from './../channel'; | ||
authEndpoint: '/broadcasting/auth', | ||
userAuthentication: { | ||
endpoint: '/broadcasting/user-auth', | ||
headers: {}, | ||
}, | ||
broadcaster: 'pusher', | ||
@@ -39,4 +43,7 @@ csrfToken: null, | ||
if (this.csrfToken()) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken(); | ||
let token = this.csrfToken(); | ||
if (token) { | ||
this.options.auth.headers['X-CSRF-TOKEN'] = token; | ||
this.options.userAuthentication.headers['X-CSRF-TOKEN'] = token; | ||
} | ||
@@ -43,0 +50,0 @@ |
@@ -36,2 +36,9 @@ import { Connector } from './connector'; | ||
/** | ||
* Sign in the user via Pusher user authentication (https://pusher.com/docs/channels/using_channels/user-authentication/). | ||
*/ | ||
signin(): void { | ||
this.pusher.signin(); | ||
} | ||
/** | ||
* Listen for an event on a channel instance. | ||
@@ -38,0 +45,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194299
5924