@feathersjs/transport-commons
Advanced tools
Comparing version 4.1.5 to 4.1.6
@@ -6,2 +6,15 @@ # Change Log | ||
<a name="4.1.6"></a> | ||
## [4.1.6](https://github.com/feathersjs/feathers/compare/@feathersjs/transport-commons@4.1.5...@feathersjs/transport-commons@4.1.6) (2018-10-25) | ||
### Bug Fixes | ||
* Compare socket event data using lodash's isEqual instead of indexOf ([#1061](https://github.com/feathersjs/feathers/issues/1061)) ([f706db3](https://github.com/feathersjs/feathers/commit/f706db3)) | ||
* Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803)) | ||
<a name="4.1.5"></a> | ||
@@ -8,0 +21,0 @@ ## [4.1.5](https://github.com/feathersjs/feathers/compare/@feathersjs/transport-commons@4.1.4...@feathersjs/transport-commons@4.1.5) (2018-09-21) |
const errors = require('@feathersjs/errors'); | ||
const debug = require('debug')('@feathersjs/transport-commons'); | ||
const { isEqual } = require('lodash'); | ||
@@ -49,3 +50,3 @@ const paramsPositions = exports.paramsPositions = { | ||
if (!Array.isArray(data) && Array.isArray(context.result) && Array.isArray(result)) { | ||
result = result[context.result.indexOf(data)]; | ||
result = context.result.find(resultData => isEqual(resultData, data)); | ||
} | ||
@@ -52,0 +53,0 @@ |
{ | ||
"name": "@feathersjs/transport-commons", | ||
"description": "Shared functionality for websocket providers", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"homepage": "https://feathersjs.com", | ||
@@ -29,3 +29,3 @@ "main": "lib/", | ||
"scripts": { | ||
"test": "../../node_modules/.bin/mocha --opts ../../mocha.opts" | ||
"test": "mocha --opts ../../mocha.opts" | ||
}, | ||
@@ -46,5 +46,6 @@ "directories": { | ||
"devDependencies": { | ||
"@feathersjs/feathers": "^3.2.3" | ||
"@feathersjs/feathers": "^3.2.3", | ||
"mocha": "^5.2.0" | ||
}, | ||
"gitHead": "cdbfba98307235cbc6d23a9ec3ae1a9960d12186" | ||
"gitHead": "55de15e1f0986203646a68bbaf6d72c0753e0cdc" | ||
} |
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
37709
462
2