backend-assistant
Advanced tools
Comparing version 0.0.69 to 0.0.70
{ | ||
"name": "backend-assistant", | ||
"version": "0.0.69", | ||
"version": "0.0.70", | ||
"description": "Powerful assistive functions for Firebase backends", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -57,3 +57,3 @@ const os = require('os'); | ||
this.request.path = (this.ref.req.path || ''); | ||
this.request.user = self.resolveAccount(); | ||
this.request.user = this.resolveAccount(); | ||
if (options.accept === 'json') { | ||
@@ -208,3 +208,4 @@ this.request.body = tryParse(this.ref.req.body || '{}'); | ||
if (options.resolve) { | ||
return self.resolveAccount(user) | ||
self.request.user = self.resolveAccount(user); | ||
return self.request.user; | ||
} else { | ||
@@ -297,2 +298,7 @@ return user; | ||
const ResolveAccount = new (require('resolve-account'))(); | ||
user = user || {}; | ||
user.authenticated = typeof user.authenticated === 'undefined' | ||
? false | ||
: user.authenticated; | ||
return ResolveAccount.resolve(undefined, user) | ||
@@ -299,0 +305,0 @@ } |
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
22932
468