@liquid-state/iwa-cognito-identity
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -125,5 +125,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
var _this = this; | ||
var username, password, email, phone, attributeList; | ||
var username, password, email, phone, locale, attributeList; | ||
return __generator(this, function (_a) { | ||
username = userData.username, password = userData.password, email = userData.email, phone = userData.phone; | ||
username = userData.username, password = userData.password, email = userData.email, phone = userData.phone, locale = userData.locale; | ||
attributeList = [ | ||
@@ -139,2 +139,8 @@ { | ||
].map(function (attrib) { return new CognitoUserAttribute(attrib); }); | ||
if (locale) { | ||
attributeList.push(new CognitoUserAttribute({ | ||
Name: 'locale', | ||
Value: locale, | ||
})); | ||
} | ||
return [2 /*return*/, new Promise(function (resolve, reject) { | ||
@@ -141,0 +147,0 @@ _this.userPool.signUp(username, password, attributeList, [], function (err, result) { |
{ | ||
"name": "@liquid-state/iwa-cognito-identity", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
58002
843