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.11.5 to 1.11.7

8

CHANGELOG.md
# Release Notes
## [Unreleased](https://github.com/laravel/echo/compare/v1.11.4...master)
## [Unreleased](https://github.com/laravel/echo/compare/v1.11.5...master)
## [v1.11.5](https://github.com/laravel/echo/compare/v1.11.4...v1.11.5) - 2022-04-12
### Changed
- Add Channel, PresenceChannel class to typescript definition exports by @steve3d in https://github.com/laravel/echo/pull/333
## [v1.11.4](https://github.com/laravel/echo/compare/v1.11.3...v1.11.4) - 2022-03-15

@@ -6,0 +12,0 @@

133

dist/echo.common.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _classCallCheck(instance, Constructor) {

@@ -130,66 +132,2 @@ if (!(instance instanceof Constructor)) {

var Connector = /*#__PURE__*/function () {
/**
* Create a new class instance.
*/
function Connector(options) {
_classCallCheck(this, Connector);
/**
* Default connector options.
*/
this._defaultOptions = {
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
broadcaster: 'pusher',
csrfToken: null,
host: null,
key: null,
namespace: 'App.Events'
};
this.setOptions(options);
this.connect();
}
/**
* Merge the custom options with the defaults.
*/
_createClass(Connector, [{
key: "setOptions",
value: function setOptions(options) {
this.options = _extends(this._defaultOptions, options);
if (this.csrfToken()) {
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken();
}
return options;
}
/**
* Extract the CSRF token from the page.
*/
}, {
key: "csrfToken",
value: function csrfToken() {
var selector;
if (typeof window !== 'undefined' && window['Laravel'] && window['Laravel'].csrfToken) {
return window['Laravel'].csrfToken;
} else if (this.options.csrfToken) {
return this.options.csrfToken;
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');
}
return null;
}
}]);
return Connector;
}();
/**

@@ -981,2 +919,66 @@ * This class represents a basic channel.

var Connector = /*#__PURE__*/function () {
/**
* Create a new class instance.
*/
function Connector(options) {
_classCallCheck(this, Connector);
/**
* Default connector options.
*/
this._defaultOptions = {
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
broadcaster: 'pusher',
csrfToken: null,
host: null,
key: null,
namespace: 'App.Events'
};
this.setOptions(options);
this.connect();
}
/**
* Merge the custom options with the defaults.
*/
_createClass(Connector, [{
key: "setOptions",
value: function setOptions(options) {
this.options = _extends(this._defaultOptions, options);
if (this.csrfToken()) {
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken();
}
return options;
}
/**
* Extract the CSRF token from the page.
*/
}, {
key: "csrfToken",
value: function csrfToken() {
var selector;
if (typeof window !== 'undefined' && window['Laravel'] && window['Laravel'].csrfToken) {
return window['Laravel'].csrfToken;
} else if (this.options.csrfToken) {
return this.options.csrfToken;
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');
}
return null;
}
}]);
return Connector;
}();
/**

@@ -1581,2 +1583,3 @@ * This class creates a connector to Pusher.

module.exports = Echo;
exports.Channel = Channel;
exports["default"] = Echo;

@@ -76,1 +76,5 @@ import { Channel, PresenceChannel } from './channel';

}
/**
* Export channel classes for TypeScript.
*/
export { Channel, PresenceChannel };

@@ -1,2 +0,2 @@

var Echo = (function () {
var Echo = (function (exports) {
'use strict';

@@ -131,66 +131,2 @@

var Connector = /*#__PURE__*/function () {
/**
* Create a new class instance.
*/
function Connector(options) {
_classCallCheck(this, Connector);
/**
* Default connector options.
*/
this._defaultOptions = {
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
broadcaster: 'pusher',
csrfToken: null,
host: null,
key: null,
namespace: 'App.Events'
};
this.setOptions(options);
this.connect();
}
/**
* Merge the custom options with the defaults.
*/
_createClass(Connector, [{
key: "setOptions",
value: function setOptions(options) {
this.options = _extends(this._defaultOptions, options);
if (this.csrfToken()) {
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken();
}
return options;
}
/**
* Extract the CSRF token from the page.
*/
}, {
key: "csrfToken",
value: function csrfToken() {
var selector;
if (typeof window !== 'undefined' && window['Laravel'] && window['Laravel'].csrfToken) {
return window['Laravel'].csrfToken;
} else if (this.options.csrfToken) {
return this.options.csrfToken;
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');
}
return null;
}
}]);
return Connector;
}();
/**

@@ -982,2 +918,66 @@ * This class represents a basic channel.

var Connector = /*#__PURE__*/function () {
/**
* Create a new class instance.
*/
function Connector(options) {
_classCallCheck(this, Connector);
/**
* Default connector options.
*/
this._defaultOptions = {
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
broadcaster: 'pusher',
csrfToken: null,
host: null,
key: null,
namespace: 'App.Events'
};
this.setOptions(options);
this.connect();
}
/**
* Merge the custom options with the defaults.
*/
_createClass(Connector, [{
key: "setOptions",
value: function setOptions(options) {
this.options = _extends(this._defaultOptions, options);
if (this.csrfToken()) {
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken();
}
return options;
}
/**
* Extract the CSRF token from the page.
*/
}, {
key: "csrfToken",
value: function csrfToken() {
var selector;
if (typeof window !== 'undefined' && window['Laravel'] && window['Laravel'].csrfToken) {
return window['Laravel'].csrfToken;
} else if (this.options.csrfToken) {
return this.options.csrfToken;
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');
}
return null;
}
}]);
return Connector;
}();
/**

@@ -1582,4 +1582,9 @@ * This class creates a connector to Pusher.

return Echo;
exports.Channel = Channel;
exports["default"] = Echo;
})();
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({});

@@ -128,66 +128,2 @@ function _classCallCheck(instance, Constructor) {

var Connector = /*#__PURE__*/function () {
/**
* Create a new class instance.
*/
function Connector(options) {
_classCallCheck(this, Connector);
/**
* Default connector options.
*/
this._defaultOptions = {
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
broadcaster: 'pusher',
csrfToken: null,
host: null,
key: null,
namespace: 'App.Events'
};
this.setOptions(options);
this.connect();
}
/**
* Merge the custom options with the defaults.
*/
_createClass(Connector, [{
key: "setOptions",
value: function setOptions(options) {
this.options = _extends(this._defaultOptions, options);
if (this.csrfToken()) {
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken();
}
return options;
}
/**
* Extract the CSRF token from the page.
*/
}, {
key: "csrfToken",
value: function csrfToken() {
var selector;
if (typeof window !== 'undefined' && window['Laravel'] && window['Laravel'].csrfToken) {
return window['Laravel'].csrfToken;
} else if (this.options.csrfToken) {
return this.options.csrfToken;
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');
}
return null;
}
}]);
return Connector;
}();
/**

@@ -979,2 +915,66 @@ * This class represents a basic channel.

var Connector = /*#__PURE__*/function () {
/**
* Create a new class instance.
*/
function Connector(options) {
_classCallCheck(this, Connector);
/**
* Default connector options.
*/
this._defaultOptions = {
auth: {
headers: {}
},
authEndpoint: '/broadcasting/auth',
broadcaster: 'pusher',
csrfToken: null,
host: null,
key: null,
namespace: 'App.Events'
};
this.setOptions(options);
this.connect();
}
/**
* Merge the custom options with the defaults.
*/
_createClass(Connector, [{
key: "setOptions",
value: function setOptions(options) {
this.options = _extends(this._defaultOptions, options);
if (this.csrfToken()) {
this.options.auth.headers['X-CSRF-TOKEN'] = this.csrfToken();
}
return options;
}
/**
* Extract the CSRF token from the page.
*/
}, {
key: "csrfToken",
value: function csrfToken() {
var selector;
if (typeof window !== 'undefined' && window['Laravel'] && window['Laravel'].csrfToken) {
return window['Laravel'].csrfToken;
} else if (this.options.csrfToken) {
return this.options.csrfToken;
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) {
return selector.getAttribute('content');
}
return null;
}
}]);
return Connector;
}();
/**

@@ -1579,2 +1579,2 @@ * This class creates a connector to Pusher.

export { Echo as default };
export { Channel, Echo as default };
{
"name": "laravel-echo",
"version": "1.11.5",
"version": "1.11.7",
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration",

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

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