Socket
Socket
Sign inDemoInstall

amazon-cognito-identity-js

Package Overview
Dependencies
Maintainers
13
Versions
1619
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-cognito-identity-js - npm Package Compare versions

Comparing version 6.3.2-api-v6.4d00072.0 to 6.3.2-api-v6-models.40

4

package.json
{
"name": "amazon-cognito-identity-js",
"description": "Amazon Cognito Identity Provider JavaScript SDK",
"version": "6.3.2-api-v6.4d00072.0+4d00072",
"version": "6.3.2-api-v6-models.40+62a13d7bc",
"author": {

@@ -77,3 +77,3 @@ "name": "Amazon Web Services",

},
"gitHead": "4d00072e865c55d87a425f6746b27f4963f5d19b"
"gitHead": "62a13d7bcd5a015eab416b66dff503b0f657f6bc"
}

@@ -489,3 +489,3 @@ /*!

revokeTokens(revokeTokenCallback = () => { }) {
revokeTokens(revokeTokenCallback = () => {}) {
super.revokeTokens(revokeTokenCallback);

@@ -492,0 +492,0 @@ }

@@ -13,3 +13,2 @@ /*!

export default class CognitoUserPool extends InternalCognitoUserPool {
/**

@@ -16,0 +15,0 @@ * @typedef {object} SignUpResult

@@ -39,3 +39,6 @@ /*

}
if (UserPoolId.length > USER_POOL_ID_MAX_LENGTH || !/^[\w-]+_[0-9a-zA-Z]+$/.test(UserPoolId)) {
if (
UserPoolId.length > USER_POOL_ID_MAX_LENGTH ||
!/^[\w-]+_[0-9a-zA-Z]+$/.test(UserPoolId)
) {
throw new Error('Invalid UserPoolId format.');

@@ -122,22 +125,27 @@ }

}
this.client.request('SignUp', jsonReq, (err, data) => {
if (err) {
return callback(err, null);
}
this.client.request(
'SignUp',
jsonReq,
(err, data) => {
if (err) {
return callback(err, null);
}
const cognitoUser = {
Username: username,
Pool: this,
Storage: this.storage,
};
const cognitoUser = {
Username: username,
Pool: this,
Storage: this.storage,
};
const returnData = {
user: new CognitoUser(cognitoUser),
userConfirmed: data.UserConfirmed,
userSub: data.UserSub,
codeDeliveryDetails: data.CodeDeliveryDetails,
};
const returnData = {
user: new CognitoUser(cognitoUser),
userConfirmed: data.UserConfirmed,
userSub: data.UserSub,
codeDeliveryDetails: data.CodeDeliveryDetails,
};
return callback(null, returnData);
}, userAgentValue);
return callback(null, returnData);
},
userAgentValue
);
}

@@ -180,11 +188,13 @@

/* eslint-disable */
const amazonCognitoAdvancedSecurityDataConst = AmazonCognitoAdvancedSecurityData;
const amazonCognitoAdvancedSecurityDataConst =
AmazonCognitoAdvancedSecurityData;
/* eslint-enable */
if (this.advancedSecurityDataCollectionFlag) {
const advancedSecurityData = amazonCognitoAdvancedSecurityDataConst.getData(
username,
this.userPoolId,
this.clientId
);
const advancedSecurityData =
amazonCognitoAdvancedSecurityDataConst.getData(
username,
this.userPoolId,
this.clientId
);
if (advancedSecurityData) {

@@ -191,0 +201,0 @@ const userContextData = {

const TerserPlugin = require('terser-webpack-plugin');
const CompressionPlugin = require("compression-webpack-plugin");
const CompressionPlugin = require('compression-webpack-plugin');

@@ -37,3 +37,3 @@ /* eslint-disable */

include: /\.min\.js$/,
})
}),
],

@@ -49,4 +49,4 @@ optimization: {

include: /\.min\.js$/,
})
]
}),
],
},

@@ -53,0 +53,0 @@ module: {

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