@accounts/common
Advanced tools
Comparing version 0.0.9 to 0.0.10-alpha.b575b352
@@ -9,4 +9,2 @@ 'use strict'; | ||
// eslint-disable-next-line import/no-named-as-default | ||
exports.default = { | ||
@@ -19,3 +17,2 @@ siteUrl: 'http://localhost:3000', | ||
restrictCreationByEmailDomain: null, | ||
loginExpirationInDays: 90, | ||
passwordResetTokenExpirationInDays: 3, | ||
@@ -22,0 +19,0 @@ passwordEnrollTokenExpirationInDays: 30, |
@@ -18,3 +18,3 @@ 'use strict'; | ||
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email || '')) && isEmail(email); | ||
return isValid; | ||
return Boolean(isValid); | ||
}; | ||
@@ -30,3 +30,3 @@ | ||
var isValid = username && !(0, _lodash.isEmpty)((0, _lodash.trim)(username)) && usernameRegex.test(username); | ||
return isValid; | ||
return Boolean(isValid); | ||
}; |
@@ -128,3 +128,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email || '')) && isEmail(email); | ||
return isValid; | ||
return Boolean(isValid); | ||
}; | ||
@@ -140,3 +140,3 @@ | ||
var isValid = username && !(0, _lodash.isEmpty)((0, _lodash.trim)(username)) && usernameRegex.test(username); | ||
return isValid; | ||
return Boolean(isValid); | ||
}; | ||
@@ -317,4 +317,2 @@ | ||
// eslint-disable-next-line import/no-named-as-default | ||
exports.default = { | ||
@@ -327,3 +325,2 @@ siteUrl: 'http://localhost:3000', | ||
restrictCreationByEmailDomain: null, | ||
loginExpirationInDays: 90, | ||
passwordResetTokenExpirationInDays: 3, | ||
@@ -330,0 +327,0 @@ passwordEnrollTokenExpirationInDays: 30, |
{ | ||
"name": "@accounts/common", | ||
"version": "0.0.9", | ||
"version": "0.0.10-alpha.b575b352", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -22,3 +22,5 @@ "main": "lib/index.js", | ||
"flow:gen": "flow gen-flow-files ./src/index.js > ./lib/index.js.flow", | ||
"flow:prepublish": "for i in `ls ./src/*.js`; do cp $i `echo $i | sed \"s/src/lib-es6/g\" | sed \"s/js/js\\.flow/g\"`; done", | ||
"flow:prepublish": "npm run flow:cplib && npm run flow:cplibes6", | ||
"flow:cplib": "for i in `ls ./src/*.js`; do cp $i `echo $i | sed \"s/src/lib/g\" | sed \"s/js/js\\.flow/g\"`; done", | ||
"flow:cplibes6": "for i in `ls ./src/*.js`; do cp $i `echo $i | sed \"s/src/lib-es6/g\" | sed \"s/js/js\\.flow/g\"`; done", | ||
"coverage": "npm run testonly -- --coverage", | ||
@@ -25,0 +27,0 @@ "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
143134
44
2989