@accounts/common
Advanced tools
Comparing version 0.0.11 to 0.0.12-alpha.5e7e66f0
@@ -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); | ||
}; |
{ | ||
"name": "@accounts/common", | ||
"version": "0.0.11", | ||
"version": "0.0.12-alpha.5e7e66f0", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
143803
2989