amazon-cognito-identity-js
Advanced tools
Comparing version 6.3.2-api-v6.4d00072.0 to 6.3.2-api-v6-models.40
{ | ||
"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: { |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1534657
27684