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

aws-user-service

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-user-service - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

6

index.js

@@ -15,3 +15,3 @@ const AWS = require('aws-sdk');

async getUserIdFromRequest(request) {
const realUserId = getActualUserIdFromRequest(request)
const realUserId = this.getActualUserIdFromRequest(request)
if (!request.query.impersonatingUserId) {

@@ -22,3 +22,3 @@ return realUserId

// check if current user is Admin
const adminCheckSuccessful = await isAdmin(realUserId)
const adminCheckSuccessful = await this.isAdmin(realUserId)
if (adminCheckSuccessful === true) {

@@ -33,3 +33,3 @@ // return impersonating user id

async getUser(userId) {
return await getUserById(userId)
return await this.getUserById(userId)
}

@@ -36,0 +36,0 @@

{
"name": "aws-user-service",
"version": "1.1.4",
"version": "1.1.5",
"description": "Contain methods to work with asw user",

@@ -5,0 +5,0 @@ "main": "index.js",

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