New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.0.2 to 2.0.3

14

index.js

@@ -5,3 +5,3 @@ const MongoRepository = require('senter-mongo-repository')

AWS.config.update({region: process.env.REGION})
var noOrganisationOptions = MongoRepository.BuildCallOptions(true, false)
const noOrganisationOptions = MongoRepository.BuildCallOptions(true, false);

@@ -137,7 +137,7 @@ module.exports = class AwsUserService {

async updateUserAttributes(userId, attributes) {
var params = {
const params = {
"UserAttributes": attributes,
"Username": userId,
"UserPoolId": this.userPoolId
}
};
return await this.cognitoidentityserviceprovider.adminUpdateUserAttributes(params).promise()

@@ -176,3 +176,3 @@ }

const emailAttribute = cognitoUser.Attributes.find(x => x.Name = 'email')
const emailAttribute = cognitoUser.Attributes.find(x => x.Name == 'email')
if (emailAttribute) {

@@ -182,3 +182,3 @@ senterUser.email = emailAttribute.Value

const stripeCustomerIdAttribute = cognitoUser.Attributes.find(x => x.Name = 'custom:stripe_customer_id')
const stripeCustomerIdAttribute = cognitoUser.Attributes.find(x => x.Name == 'custom:stripe_customer_id')
if (stripeCustomerIdAttribute) {

@@ -188,5 +188,5 @@ senterUser.stripeCustomerId = stripeCustomerIdAttribute.Value

const emailVerifiedAttribute = cognitoUser.Attributes.find(x => x.Name = 'email_verified')
const emailVerifiedAttribute = cognitoUser.Attributes.find(x => x.Name == 'email_verified')
if (emailVerifiedAttribute) {
senterUser.emailVerified = emailVerifiedAttribute.Value.toLowerCase() == 'true'
senterUser.emailVerified = emailVerifiedAttribute.Value.toLowerCase() === 'true'
}

@@ -193,0 +193,0 @@

{
"name": "aws-user-service",
"version": "2.0.2",
"version": "2.0.3",
"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