laravel-echo
Advanced tools
Comparing version 1.8.0 to 1.8.1
# Release Notes | ||
## [Unreleased](https://github.com/laravel/echo/compare/v1.7.0...master) | ||
## [Unreleased](https://github.com/laravel/echo/compare/v1.8.0...master) | ||
## [v1.8.0 (2020-05-16)](https://github.com/laravel/echo/compare/v1.7.0...v1.8.0) | ||
### Fixed | ||
- IE11 fix for dist/echo.js not being transpiled to ES5 ([#270](https://github.com/laravel/echo/pull/270)) | ||
## [v1.7.0 (2020-04-03)](https://github.com/laravel/echo/compare/v1.6.1...v1.7.0) | ||
@@ -7,0 +13,0 @@ |
@@ -26,5 +26,9 @@ /** | ||
/** | ||
* Stop listening for a whispser event on the channel instance. | ||
* Stop listening for a whisper event on the channel instance. | ||
*/ | ||
stopListeningForWhisper(event: string): Channel; | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
abstract error(callback: Function): Channel; | ||
} |
@@ -23,2 +23,6 @@ import { Channel } from './channel'; | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
error(callback: Function): NullChannel; | ||
/** | ||
* Bind a channel to an event. | ||
@@ -25,0 +29,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { EventFormatter } from './../util'; | ||
import { EventFormatter } from '../util'; | ||
import { Channel } from './channel'; | ||
@@ -24,3 +24,3 @@ /** | ||
/** | ||
* The subsciption of the channel. | ||
* The subscription of the channel. | ||
*/ | ||
@@ -49,2 +49,6 @@ subscription: any; | ||
/** | ||
* Register a callback to be called anytime a subscription error occurs. | ||
*/ | ||
error(callback: Function): PusherChannel; | ||
/** | ||
* Bind a channel to an event. | ||
@@ -51,0 +55,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { EventFormatter } from './../util'; | ||
import { EventFormatter } from '../util'; | ||
import { Channel } from './channel'; | ||
@@ -48,2 +48,6 @@ /** | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
error(callback: Function): SocketIoChannel; | ||
/** | ||
* Bind the channel's socket to an event and store the callback. | ||
@@ -50,0 +54,0 @@ */ |
@@ -213,3 +213,3 @@ 'use strict'; | ||
/** | ||
* Stop listening for a whispser event on the channel instance. | ||
* Stop listening for a whisper event on the channel instance. | ||
*/ | ||
@@ -336,2 +336,14 @@ | ||
/** | ||
* Register a callback to be called anytime a subscription error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
this.on('pusher:subscription_error', function (status) { | ||
callback(status); | ||
}); | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -562,2 +574,11 @@ */ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
return this; | ||
} | ||
/** | ||
* Bind the channel's socket to an event and store the callback. | ||
@@ -770,2 +791,11 @@ */ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -772,0 +802,0 @@ */ |
@@ -70,3 +70,3 @@ import { Channel, PresenceChannel } from './channel'; | ||
*/ | ||
registerAxiosRequestInterceptor(): any; | ||
registerAxiosRequestInterceptor(): void; | ||
/** | ||
@@ -73,0 +73,0 @@ * Register jQuery AjaxPrefilter to add the X-Socket-ID header. |
@@ -214,3 +214,3 @@ var Echo = (function () { | ||
/** | ||
* Stop listening for a whispser event on the channel instance. | ||
* Stop listening for a whisper event on the channel instance. | ||
*/ | ||
@@ -337,2 +337,14 @@ | ||
/** | ||
* Register a callback to be called anytime a subscription error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
this.on('pusher:subscription_error', function (status) { | ||
callback(status); | ||
}); | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -563,2 +575,11 @@ */ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
return this; | ||
} | ||
/** | ||
* Bind the channel's socket to an event and store the callback. | ||
@@ -771,2 +792,11 @@ */ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -773,0 +803,0 @@ */ |
@@ -211,3 +211,3 @@ function _classCallCheck(instance, Constructor) { | ||
/** | ||
* Stop listening for a whispser event on the channel instance. | ||
* Stop listening for a whisper event on the channel instance. | ||
*/ | ||
@@ -334,2 +334,14 @@ | ||
/** | ||
* Register a callback to be called anytime a subscription error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
this.on('pusher:subscription_error', function (status) { | ||
callback(status); | ||
}); | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -560,2 +572,11 @@ */ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
return this; | ||
} | ||
/** | ||
* Bind the channel's socket to an event and store the callback. | ||
@@ -768,2 +789,11 @@ */ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
}, { | ||
key: "error", | ||
value: function error(callback) { | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -770,0 +800,0 @@ */ |
104
package.json
{ | ||
"name": "laravel-echo", | ||
"version": "1.8.0", | ||
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration", | ||
"keywords": [ | ||
"laravel", | ||
"pusher", | ||
"socket.io" | ||
], | ||
"homepage": "https://github.com/laravel/echo", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/laravel/echo" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Taylor Otwell" | ||
}, | ||
"main": "dist/echo.common.js", | ||
"module": "dist/echo.js", | ||
"types": "dist/echo.d.ts", | ||
"scripts": { | ||
"build": "npm run compile && npm run declarations", | ||
"compile": "./node_modules/.bin/rollup -c", | ||
"declarations": "./node_modules/.bin/tsc --emitDeclarationOnly", | ||
"prepublish": "npm run build", | ||
"release": "npm run test && standard-version && git push --follow-tags && npm publish", | ||
"test": "jest" | ||
}, | ||
"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", | ||
"jest": "^24.9.0", | ||
"rollup": "^2.10.2", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"standard-version": "^7.0.0", | ||
"ts-jest": "^24.1.0", | ||
"tslib": "^1.10.0", | ||
"typescript": "^3.6.3" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
"name": "laravel-echo", | ||
"version": "1.8.1", | ||
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration", | ||
"keywords": [ | ||
"laravel", | ||
"pusher", | ||
"socket.io" | ||
], | ||
"homepage": "https://github.com/laravel/echo", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/laravel/echo" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Taylor Otwell" | ||
}, | ||
"main": "dist/echo.common.js", | ||
"module": "dist/echo.js", | ||
"types": "dist/echo.d.ts", | ||
"scripts": { | ||
"build": "npm run compile && npm run declarations", | ||
"compile": "./node_modules/.bin/rollup -c", | ||
"declarations": "./node_modules/.bin/tsc --emitDeclarationOnly", | ||
"lint": "eslint --ext .js,.ts ./src ./tests", | ||
"prepublish": "npm run build", | ||
"release": "npm run test && standard-version && git push --follow-tags && npm publish", | ||
"test": "jest" | ||
}, | ||
"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" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
} |
@@ -35,3 +35,3 @@ /** | ||
/** | ||
* Stop listening for a whispser event on the channel instance. | ||
* Stop listening for a whisper event on the channel instance. | ||
*/ | ||
@@ -41,2 +41,7 @@ stopListeningForWhisper(event: string): Channel { | ||
} | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
abstract error(callback: Function): Channel; | ||
} |
@@ -1,2 +0,1 @@ | ||
import { EventFormatter } from './../util'; | ||
import { Channel } from './channel'; | ||
@@ -37,2 +36,9 @@ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
error(callback: Function): NullChannel { | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -39,0 +45,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { EventFormatter } from './../util'; | ||
import { EventFormatter } from '../util'; | ||
import { Channel } from './channel'; | ||
@@ -29,3 +29,3 @@ | ||
/** | ||
* The subsciption of the channel. | ||
* The subscription of the channel. | ||
*/ | ||
@@ -81,2 +81,13 @@ subscription: any; | ||
/** | ||
* Register a callback to be called anytime a subscription error occurs. | ||
*/ | ||
error(callback: Function): PusherChannel { | ||
this.on('pusher:subscription_error', (status) => { | ||
callback(status); | ||
}); | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -83,0 +94,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { EventFormatter } from './../util'; | ||
import { EventFormatter } from '../util'; | ||
import { Channel } from './channel'; | ||
@@ -91,2 +91,9 @@ | ||
/** | ||
* Register a callback to be called anytime an error occurs. | ||
*/ | ||
error(callback: Function): SocketIoChannel { | ||
return this; | ||
} | ||
/** | ||
* Bind the channel's socket to an event and store the callback. | ||
@@ -93,0 +100,0 @@ */ |
@@ -142,3 +142,3 @@ import { Channel, PresenceChannel } from './channel'; | ||
*/ | ||
registerAxiosRequestInterceptor(): any { | ||
registerAxiosRequestInterceptor(): void { | ||
axios.interceptors.request.use((config) => { | ||
@@ -145,0 +145,0 @@ if (this.socketId()) { |
@@ -10,2 +10,3 @@ { | ||
"isolatedModules": false, | ||
"esModuleInterop": true, | ||
"typeRoots": [ | ||
@@ -12,0 +13,0 @@ "node_modules/@types" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
167804
67
5417
20