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.12.1 to 1.13.0

8

CHANGELOG.md
# Release Notes
## [Unreleased](https://github.com/laravel/echo/compare/v1.12.0...master)
## [Unreleased](https://github.com/laravel/echo/compare/v1.12.1...master)
## [v1.12.1](https://github.com/laravel/echo/compare/v1.12.0...v1.12.1) - 2022-07-13
### Fixed
- Fix IIFE build by @timacdonald in https://github.com/laravel/echo/pull/344
## [v1.12.0](https://github.com/laravel/echo/compare/v1.11.7...v1.12.0) - 2022-06-21

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

@@ -5,2 +5,12 @@ 'use strict';

function _typeof(obj) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof(obj);
}
function _classCallCheck(instance, Constructor) {

@@ -1540,2 +1550,6 @@ if (!(instance instanceof Constructor)) {

}
if ((typeof Turbo === "undefined" ? "undefined" : _typeof(Turbo)) === 'object') {
this.registerTurboRequestInterceptor();
}
}

@@ -1593,2 +1607,15 @@ /**

}
/**
* Register the Turbo Request interceptor to add the X-Socket-ID header.
*/
}, {
key: "registerTurboRequestInterceptor",
value: function registerTurboRequestInterceptor() {
var _this4 = this;
document.addEventListener('turbo:before-fetch-request', function (event) {
event.detail.fetchOptions.headers['X-Socket-Id'] = _this4.socketId();
});
}
}]);

@@ -1595,0 +1622,0 @@

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

registerjQueryAjaxSetup(): void;
/**
* Register the Turbo Request interceptor to add the X-Socket-ID header.
*/
registerTurboRequestInterceptor(): void;
}

@@ -77,0 +81,0 @@ /**

var Echo = (function () {
'use strict';
function _typeof(obj) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof(obj);
}
function _classCallCheck(instance, Constructor) {

@@ -1538,2 +1548,6 @@ if (!(instance instanceof Constructor)) {

}
if ((typeof Turbo === "undefined" ? "undefined" : _typeof(Turbo)) === 'object') {
this.registerTurboRequestInterceptor();
}
}

@@ -1591,2 +1605,15 @@ /**

}
/**
* Register the Turbo Request interceptor to add the X-Socket-ID header.
*/
}, {
key: "registerTurboRequestInterceptor",
value: function registerTurboRequestInterceptor() {
var _this4 = this;
document.addEventListener('turbo:before-fetch-request', function (event) {
event.detail.fetchOptions.headers['X-Socket-Id'] = _this4.socketId();
});
}
}]);

@@ -1593,0 +1620,0 @@

@@ -0,1 +1,11 @@

function _typeof(obj) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof(obj);
}
function _classCallCheck(instance, Constructor) {

@@ -1535,2 +1545,6 @@ if (!(instance instanceof Constructor)) {

}
if ((typeof Turbo === "undefined" ? "undefined" : _typeof(Turbo)) === 'object') {
this.registerTurboRequestInterceptor();
}
}

@@ -1588,2 +1602,15 @@ /**

}
/**
* Register the Turbo Request interceptor to add the X-Socket-ID header.
*/
}, {
key: "registerTurboRequestInterceptor",
value: function registerTurboRequestInterceptor() {
var _this4 = this;
document.addEventListener('turbo:before-fetch-request', function (event) {
event.detail.fetchOptions.headers['X-Socket-Id'] = _this4.socketId();
});
}
}]);

@@ -1590,0 +1617,0 @@

2

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

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

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

}
if (typeof Turbo === 'object') {
this.registerTurboRequestInterceptor();
}
}

@@ -165,2 +169,11 @@

}
/**
* Register the Turbo Request interceptor to add the X-Socket-ID header.
*/
registerTurboRequestInterceptor(): void {
document.addEventListener('turbo:before-fetch-request', (event: any) => {
event.detail.fetchOptions.headers['X-Socket-Id'] = this.socketId();
});
}
}

@@ -167,0 +180,0 @@

@@ -6,1 +6,2 @@ declare let Pusher: any;

declare let jQuery: any;
declare let Turbo: any;
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