@feathersjs/transport-commons
Advanced tools
Comparing version 4.0.0-pre.1 to 4.0.0-pre.2
@@ -6,2 +6,19 @@ # Change Log | ||
# [4.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.1...v4.0.0-pre.2) (2019-05-15) | ||
### Bug Fixes | ||
* Add fallback for legacy socket authenticate event ([#1356](https://github.com/feathersjs/feathers/issues/1356)) ([61b1056](https://github.com/feathersjs/feathers/commit/61b1056)) | ||
* Throw NotAuthenticated on token verification errors ([#1357](https://github.com/feathersjs/feathers/issues/1357)) ([e0120df](https://github.com/feathersjs/feathers/commit/e0120df)) | ||
### Features | ||
* Add global disconnect event ([#1355](https://github.com/feathersjs/feathers/issues/1355)) ([85afcca](https://github.com/feathersjs/feathers/commit/85afcca)) | ||
# [4.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.0...v4.0.0-pre.1) (2019-05-08) | ||
@@ -8,0 +25,0 @@ |
@@ -16,2 +16,8 @@ "use strict"; | ||
app.on('publish', utils_1.getDispatcher(emit, socketKey)); | ||
app.on('disconnect', connection => { | ||
const { channels } = app; | ||
if (channels.length) { | ||
app.channel(app.channels).leave(connection); | ||
} | ||
}); | ||
// `connection` event | ||
@@ -28,2 +34,8 @@ done.then(provider => provider.on('connection', (connection) => app.emit('connection', getParams(connection)))); | ||
} | ||
connection.on('authenticate', (...args) => { | ||
if (app.get('defaultAuthentication')) { | ||
debug('Got legacy authenticate event'); | ||
utils_1.runMethod(app, getParams(connection), app.get('defaultAuthentication'), 'create', args); | ||
} | ||
}); | ||
})); | ||
@@ -30,0 +42,0 @@ // Legacy `socket.emit('serviceName::methodName', ...args)` handlers |
{ | ||
"name": "@feathersjs/transport-commons", | ||
"description": "Shared functionality for websocket providers", | ||
"version": "4.0.0-pre.1", | ||
"version": "4.0.0-pre.2", | ||
"homepage": "https://feathersjs.com", | ||
@@ -42,3 +42,3 @@ "main": "lib/", | ||
"@feathersjs/commons": "^4.0.0-pre.0", | ||
"@feathersjs/errors": "^4.0.0-pre.1", | ||
"@feathersjs/errors": "^4.0.0-pre.2", | ||
"debug": "^4.1.1", | ||
@@ -49,3 +49,3 @@ "lodash": "^4.17.11", | ||
"devDependencies": { | ||
"@feathersjs/feathers": "^4.0.0-pre.1", | ||
"@feathersjs/feathers": "^4.0.0-pre.2", | ||
"@types/debug": "^4.1.3", | ||
@@ -59,3 +59,3 @@ "@types/mocha": "^5.2.6", | ||
}, | ||
"gitHead": "e8ce9116c6a4433b64ffe400585b60a9c31ba644" | ||
"gitHead": "d665b9470435d6db0ecddd1fb152ab4a87266c52" | ||
} |
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
510955
1687