@accounts/common
Advanced tools
Comparing version 0.0.4 to 0.0.5-alpha.451f3013
@@ -12,2 +12,3 @@ 'use strict'; | ||
exports.default = { | ||
siteUrl: 'http://localhost:3000', | ||
sendVerificationEmail: false, | ||
@@ -14,0 +15,0 @@ sendEnrollmentEmail: false, |
@@ -34,2 +34,3 @@ 'use strict'; | ||
exports.toUsernameAndEmail = _toUsernameAndEmail2.default; | ||
exports.config = _config2.default; /* eslint-disable import/no-named-as-default */ | ||
exports.config = _config2.default; | ||
/* eslint-disable import/no-named-as-default */ |
@@ -17,3 +17,3 @@ 'use strict'; | ||
var validateEmail = exports.validateEmail = function validateEmail(email) { | ||
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email)); | ||
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email || '')); | ||
return isValid; | ||
@@ -28,4 +28,4 @@ }; | ||
var validateUsername = exports.validateUsername = function validateUsername(username) { | ||
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(username)); | ||
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(username || '')); | ||
return isValid; | ||
}; |
{ | ||
"name": "@accounts/common", | ||
"version": "0.0.4", | ||
"version": "0.0.5-alpha.451f3013", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -12,2 +12,3 @@ "main": "lib/index.js", | ||
"compile": "babel ./src --out-dir ./lib", | ||
"postcompile": "npm run flow:prepublish", | ||
"prepublish": "npm run compile", | ||
@@ -17,2 +18,5 @@ "test": "npm run testonly", | ||
"testonly": "jest", | ||
"flow:check": "flow check", | ||
"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/g\" | sed \"s/js/js\\.flow/g\"`; done", | ||
"coverage": "npm run testonly -- --coverage", | ||
@@ -57,3 +61,3 @@ "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" | ||
"coveralls": "^2.11.14", | ||
"flow-bin": "^0.37.0", | ||
"flow-bin": "^0.39.0", | ||
"jest": "^18.0.0", | ||
@@ -60,0 +64,0 @@ "localstorage-polyfill": "^1.0.1", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
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
114762
26
2541