@feathersjs/socket-commons
Advanced tools
Comparing version 3.1.0 to 3.1.1
# Change Log | ||
## [v3.1.0](https://github.com/feathersjs/socket-commons/tree/v3.1.0) (2017-12-06) | ||
[Full Changelog](https://github.com/feathersjs/socket-commons/compare/v3.0.1...v3.1.0) | ||
**Merged pull requests:** | ||
- Give channel dispatchers a precedence [\#58](https://github.com/feathersjs/socket-commons/pull/58) ([daffl](https://github.com/daffl)) | ||
## [v3.0.1](https://github.com/feathersjs/socket-commons/tree/v3.0.1) (2017-11-03) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/feathersjs/socket-commons/compare/v3.0.0...v3.0.1) |
@@ -57,5 +57,4 @@ const debug = require('debug')('@feathersjs/socket-commons/channels'); | ||
Promise.resolve(callback(data, hook)).then(result => { | ||
const channel = Array.isArray(result) | ||
? new CombinedChannel(compact(flattenDeep(result))) | ||
: result; | ||
const results = Array.isArray(result) ? compact(flattenDeep(result)) : [ result ]; | ||
const channel = new CombinedChannel(results); | ||
@@ -62,0 +61,0 @@ if (channel && channel.length > 0) { |
{ | ||
"name": "@feathersjs/socket-commons", | ||
"description": "Shared functionality for websocket providers", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"homepage": "https://github.com/feathersjs/socket-commons", | ||
@@ -6,0 +6,0 @@ "main": "lib/", |
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
33976
424