Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backend-assistant

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backend-assistant - npm Package Compare versions

Comparing version 0.0.69 to 0.0.70

2

package.json
{
"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 @@ }

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