Socket
Socket
Sign inDemoInstall

@feathersjs/transport-commons

Package Overview
Dependencies
Maintainers
4
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/transport-commons - npm Package Compare versions

Comparing version 4.1.5 to 4.1.6

13

CHANGELOG.md

@@ -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)

3

lib/socket/utils.js
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc