@feathersjs/authentication-local
Advanced tools
Comparing version 1.0.4 to 1.1.0
# Change Log | ||
## [v1.0.4](https://github.com/feathersjs/authentication-local/tree/v1.0.4) (2018-01-03) | ||
[Full Changelog](https://github.com/feathersjs/authentication-local/compare/v1.0.3...v1.0.4) | ||
## [v1.0.3](https://github.com/feathersjs/authentication-local/tree/v1.0.3) (2018-01-03) | ||
@@ -4,0 +7,0 @@ [Full Changelog](https://github.com/feathersjs/authentication-local/compare/v1.0.2...v1.0.3) |
@@ -6,3 +6,7 @@ const omit = require('lodash.omit'); | ||
const result = context.dispatch || context.result; | ||
const o = current => omit(current, fields); | ||
const o = current => { | ||
const data = typeof current.toJSON === 'function' | ||
? current.toJSON() : current; | ||
return omit(data, fields); | ||
}; | ||
@@ -15,3 +19,3 @@ if (!result) { | ||
context.dispatch = result.map(o); | ||
} else if (result.data) { | ||
} else if (result.data && context.method === 'find') { | ||
context.dispatch = Object.assign({}, result, { | ||
@@ -18,0 +22,0 @@ data: result.data.map(o) |
{ | ||
"name": "@feathersjs/authentication-local", | ||
"description": "Local authentication strategy for @feathers/authentication", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/feathersjs/authentication-local", | ||
@@ -61,3 +61,3 @@ "main": "lib/", | ||
"@feathersjs/authentication": "^2.0.0", | ||
"@feathersjs/authentication-jwt": "^1.0.0", | ||
"@feathersjs/authentication-jwt": "^2.0.0", | ||
"@feathersjs/express": "^1.0.0", | ||
@@ -70,3 +70,3 @@ "@feathersjs/feathers": "^3.0.0", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^4.0.0", | ||
"mocha": "^5.0.0", | ||
"semistandard": "^12.0.0", | ||
@@ -73,0 +73,0 @@ "sinon": "^4.0.0", |
26013
257