laravel-echo
Advanced tools
Comparing version 1.11.3 to 1.11.4
@@ -22,3 +22,3 @@ import { Channel, PresenceChannel } from './../channel'; | ||
*/ | ||
protected csrfToken(): string; | ||
protected csrfToken(): null | string; | ||
/** | ||
@@ -25,0 +25,0 @@ * Create a fresh connection. |
@@ -22,2 +22,5 @@ 'use strict'; | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
@@ -56,2 +59,5 @@ } | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) _setPrototypeOf(subClass, superClass); | ||
@@ -82,3 +88,3 @@ } | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -101,2 +107,4 @@ } catch (e) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -110,3 +118,3 @@ | ||
return function () { | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
@@ -201,7 +209,7 @@ result; | ||
key: "listenForWhisper", | ||
value: | ||
/** | ||
* Listen for a whisper event on the channel instance. | ||
*/ | ||
value: function listenForWhisper(event, callback) { | ||
function listenForWhisper(event, callback) { | ||
return this.listen('.client-' + event, callback); | ||
@@ -437,7 +445,7 @@ } | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.pusher.channels.channels[this.name].trigger("client-".concat(eventName), data); | ||
@@ -468,7 +476,7 @@ return this; | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.pusher.channels.channels[this.name].trigger("client-".concat(eventName), data); | ||
@@ -499,7 +507,7 @@ return this; | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
this.on('pusher:subscription_succeeded', function (data) { | ||
@@ -740,7 +748,7 @@ callback(Object.keys(data.members).map(function (k) { | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.socket.emit('client event', { | ||
@@ -775,7 +783,7 @@ channel: this.name, | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
this.on('presence:subscribed', function (members) { | ||
@@ -834,8 +842,8 @@ callback(members.map(function (m) { | ||
key: "subscribe", | ||
value: | ||
/** | ||
* Subscribe to a channel. | ||
*/ | ||
value: function subscribe() {} // | ||
function subscribe() {// | ||
} | ||
/** | ||
@@ -847,4 +855,4 @@ * Unsubscribe from a channel. | ||
key: "unsubscribe", | ||
value: function unsubscribe() {} // | ||
value: function unsubscribe() {// | ||
} | ||
/** | ||
@@ -917,7 +925,7 @@ * Listen for an event on the channel instance. | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
return this; | ||
@@ -947,7 +955,7 @@ } | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
return this; | ||
@@ -1317,4 +1325,4 @@ } | ||
key: "connect", | ||
value: function connect() {} // | ||
value: function connect() {// | ||
} | ||
/** | ||
@@ -1362,4 +1370,4 @@ * Listen for an event on a channel instance. | ||
key: "leave", | ||
value: function leave(name) {} // | ||
value: function leave(name) {// | ||
} | ||
/** | ||
@@ -1371,4 +1379,4 @@ * Leave the given channel. | ||
key: "leaveChannel", | ||
value: function leaveChannel(name) {} // | ||
value: function leaveChannel(name) {// | ||
} | ||
/** | ||
@@ -1375,0 +1383,0 @@ * Get the socket ID for the connection. |
@@ -23,2 +23,5 @@ var Echo = (function () { | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
@@ -57,2 +60,5 @@ } | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) _setPrototypeOf(subClass, superClass); | ||
@@ -83,3 +89,3 @@ } | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -102,2 +108,4 @@ } catch (e) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -111,3 +119,3 @@ | ||
return function () { | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
@@ -202,7 +210,7 @@ result; | ||
key: "listenForWhisper", | ||
value: | ||
/** | ||
* Listen for a whisper event on the channel instance. | ||
*/ | ||
value: function listenForWhisper(event, callback) { | ||
function listenForWhisper(event, callback) { | ||
return this.listen('.client-' + event, callback); | ||
@@ -438,7 +446,7 @@ } | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.pusher.channels.channels[this.name].trigger("client-".concat(eventName), data); | ||
@@ -469,7 +477,7 @@ return this; | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.pusher.channels.channels[this.name].trigger("client-".concat(eventName), data); | ||
@@ -500,7 +508,7 @@ return this; | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
this.on('pusher:subscription_succeeded', function (data) { | ||
@@ -741,7 +749,7 @@ callback(Object.keys(data.members).map(function (k) { | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.socket.emit('client event', { | ||
@@ -776,7 +784,7 @@ channel: this.name, | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
this.on('presence:subscribed', function (members) { | ||
@@ -835,8 +843,8 @@ callback(members.map(function (m) { | ||
key: "subscribe", | ||
value: | ||
/** | ||
* Subscribe to a channel. | ||
*/ | ||
value: function subscribe() {} // | ||
function subscribe() {// | ||
} | ||
/** | ||
@@ -848,4 +856,4 @@ * Unsubscribe from a channel. | ||
key: "unsubscribe", | ||
value: function unsubscribe() {} // | ||
value: function unsubscribe() {// | ||
} | ||
/** | ||
@@ -918,7 +926,7 @@ * Listen for an event on the channel instance. | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
return this; | ||
@@ -948,7 +956,7 @@ } | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
return this; | ||
@@ -1318,4 +1326,4 @@ } | ||
key: "connect", | ||
value: function connect() {} // | ||
value: function connect() {// | ||
} | ||
/** | ||
@@ -1363,4 +1371,4 @@ * Listen for an event on a channel instance. | ||
key: "leave", | ||
value: function leave(name) {} // | ||
value: function leave(name) {// | ||
} | ||
/** | ||
@@ -1372,4 +1380,4 @@ * Leave the given channel. | ||
key: "leaveChannel", | ||
value: function leaveChannel(name) {} // | ||
value: function leaveChannel(name) {// | ||
} | ||
/** | ||
@@ -1592,2 +1600,2 @@ * Get the socket ID for the connection. | ||
}()); | ||
})(); |
@@ -20,2 +20,5 @@ function _classCallCheck(instance, Constructor) { | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
@@ -54,2 +57,5 @@ } | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) _setPrototypeOf(subClass, superClass); | ||
@@ -80,3 +86,3 @@ } | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -99,2 +105,4 @@ } catch (e) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -108,3 +116,3 @@ | ||
return function () { | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
@@ -199,7 +207,7 @@ result; | ||
key: "listenForWhisper", | ||
value: | ||
/** | ||
* Listen for a whisper event on the channel instance. | ||
*/ | ||
value: function listenForWhisper(event, callback) { | ||
function listenForWhisper(event, callback) { | ||
return this.listen('.client-' + event, callback); | ||
@@ -435,7 +443,7 @@ } | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.pusher.channels.channels[this.name].trigger("client-".concat(eventName), data); | ||
@@ -466,7 +474,7 @@ return this; | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.pusher.channels.channels[this.name].trigger("client-".concat(eventName), data); | ||
@@ -497,7 +505,7 @@ return this; | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
this.on('pusher:subscription_succeeded', function (data) { | ||
@@ -738,7 +746,7 @@ callback(Object.keys(data.members).map(function (k) { | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
this.socket.emit('client event', { | ||
@@ -773,7 +781,7 @@ channel: this.name, | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
this.on('presence:subscribed', function (members) { | ||
@@ -832,8 +840,8 @@ callback(members.map(function (m) { | ||
key: "subscribe", | ||
value: | ||
/** | ||
* Subscribe to a channel. | ||
*/ | ||
value: function subscribe() {} // | ||
function subscribe() {// | ||
} | ||
/** | ||
@@ -845,4 +853,4 @@ * Unsubscribe from a channel. | ||
key: "unsubscribe", | ||
value: function unsubscribe() {} // | ||
value: function unsubscribe() {// | ||
} | ||
/** | ||
@@ -915,7 +923,7 @@ * Listen for an event on the channel instance. | ||
key: "whisper", | ||
value: | ||
/** | ||
* Trigger client event on the channel. | ||
*/ | ||
value: function whisper(eventName, data) { | ||
function whisper(eventName, data) { | ||
return this; | ||
@@ -945,7 +953,7 @@ } | ||
key: "here", | ||
value: | ||
/** | ||
* Register a callback to be called anytime the member list changes. | ||
*/ | ||
value: function here(callback) { | ||
function here(callback) { | ||
return this; | ||
@@ -1315,4 +1323,4 @@ } | ||
key: "connect", | ||
value: function connect() {} // | ||
value: function connect() {// | ||
} | ||
/** | ||
@@ -1360,4 +1368,4 @@ * Listen for an event on a channel instance. | ||
key: "leave", | ||
value: function leave(name) {} // | ||
value: function leave(name) {// | ||
} | ||
/** | ||
@@ -1369,4 +1377,4 @@ * Leave the given channel. | ||
key: "leaveChannel", | ||
value: function leaveChannel(name) {} // | ||
value: function leaveChannel(name) {// | ||
} | ||
/** | ||
@@ -1587,2 +1595,2 @@ * Get the socket ID for the connection. | ||
export default Echo; | ||
export { Echo as default }; |
{ | ||
"name": "laravel-echo", | ||
"version": "1.11.3", | ||
"version": "1.11.4", | ||
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration", | ||
@@ -32,22 +32,22 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/plugin-proposal-decorators": "^7.8.3", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.8.3", | ||
"@babel/plugin-proposal-function-sent": "^7.8.3", | ||
"@babel/plugin-proposal-numeric-separator": "^7.8.3", | ||
"@babel/plugin-proposal-throw-expressions": "^7.8.3", | ||
"@babel/plugin-transform-object-assign": "^7.8.3", | ||
"@babel/preset-env": "^7.9.6", | ||
"@rollup/plugin-babel": "^5.0.0", | ||
"@types/jest": "^24.0.18", | ||
"@types/node": "^12.7.5", | ||
"@typescript-eslint/eslint-plugin": "^3.7.0", | ||
"@typescript-eslint/parser": "^3.7.0", | ||
"eslint": "^7.5.0", | ||
"jest": "^24.9.0", | ||
"rollup": "^2.10.2", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"standard-version": "^8.0.1", | ||
"ts-jest": "^24.1.0", | ||
"tslib": "^1.10.0", | ||
"typescript": "^3.6.3" | ||
"@babel/plugin-proposal-decorators": "^7.17.2", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.16.7", | ||
"@babel/plugin-proposal-function-sent": "^7.16.7", | ||
"@babel/plugin-proposal-numeric-separator": "^7.16.7", | ||
"@babel/plugin-proposal-throw-expressions": "^7.16.7", | ||
"@babel/plugin-transform-object-assign": "^7.16.7", | ||
"@babel/preset-env": "^7.16.11", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.21", | ||
"@typescript-eslint/eslint-plugin": "^5.14.0", | ||
"@typescript-eslint/parser": "^5.14.0", | ||
"eslint": "^8.11.0", | ||
"jest": "^27.5.1", | ||
"rollup": "^2.70.1", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"standard-version": "^9.3.2", | ||
"ts-jest": "^27.1.3", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.6.2" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
# Release Instructions | ||
Releases are done by @taylorotwell for this repository. | ||
Releases are done by [@taylorotwell](https://github.com/taylorotwell) for this repository. |
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
192093
72
5853