bedrock-account-http
Advanced tools
Comparing version
# bedrock-account-http ChangeLog | ||
## 3.0.0 - 2021-03-19 | ||
### Changed | ||
- **BREAKING**: Use bedrock-validation@5.0.0. Email addresses must be all | ||
lowercase. | ||
## 2.0.0 - 2021-01-12 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "bedrock-account-http", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "HTTP API for Bedrock User Accounts", | ||
@@ -36,3 +36,3 @@ "license": "SEE LICENSE IN LICENSE.md", | ||
"bedrock-passport": "5.x - 6.x", | ||
"bedrock-validation": "^4.4.0" | ||
"bedrock-validation": "^5.0.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "directories": { |
@@ -100,2 +100,13 @@ /*! | ||
it('should return 400 if the email contains uppercase chars', | ||
async function() { | ||
const result = await api.post('/', | ||
{email: 'newUser@digitalbazaar.com'}); | ||
result.status.should.equal(400); | ||
result.data.type.should.equal('ValidationError'); | ||
result.data.message.should.equal(`A validation error occured in the ` + | ||
`'bedrock-accounts-http account creation post' validator.`); | ||
result.data.details.httpStatusCode.should.equal(400); | ||
}); | ||
}); | ||
@@ -102,0 +113,0 @@ |
@@ -39,3 +39,3 @@ { | ||
"bedrock-test": "^5.3.0", | ||
"bedrock-validation": "^4.4.0", | ||
"bedrock-validation": "^5.0.0", | ||
"cross-env": "^7.0.2", | ||
@@ -42,0 +42,0 @@ "grunt": "^1.1.0", |
36901
1.73%755
1.34%