Skip to content

Commit

Permalink
Merge branch 'release/v1.0.10' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Apr 18, 2021
2 parents bb38b4d + 48348cd commit 02a8762
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v1.0.9](https://github.com/konfer-be/cliam/compare/v1.0.8...v1.0.9)
## [v1.0.10](https://github.com/konfer-be/cliam/compare/v1.0.9...v1.0.10)

### Commits

- Set password max length to 24 [`4d56ca4`](https://github.com/konfer-be/cliam/commit/4d56ca427b192fd244757b9811c2e1feb030ddee)

## [v1.0.9](https://github.com/konfer-be/cliam/compare/v1.0.8...v1.0.9) - 2021-04-18

### Commits

- Fix default colors [`44f5ce3`](https://github.com/konfer-be/cliam/commit/44f5ce397aa8f8909cdefbebd45eb7cd2539da5c)
- Update changelog [`5cd8d80`](https://github.com/konfer-be/cliam/commit/5cd8d80f4bb5b88aa27be6a4045d68cb327d8ec1)

## [v1.0.8](https://github.com/konfer-be/cliam/compare/v1.0.7...v1.0.8) - 2021-04-18

Expand Down
4 changes: 2 additions & 2 deletions lib/types/schemas/password.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const password = (type) => {
const types = [
{
type: 'user',
schema: Joi.string().min(8).max(16)
schema: Joi.string().min(8).max(24)
},
{
type: 'smtp',
schema: Joi.string().min(8).max(16)
schema: Joi.string().min(8).max(24)
}
];
return types.filter(h => h.type === type).slice().shift().schema;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cliam",
"version": "1.0.9",
"version": "1.0.10",
"engines": {
"node": ">=14.16"
},
Expand Down
4 changes: 2 additions & 2 deletions src/types/schemas/password.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const password = (type: string): AnySchema => {
const types = [
{
type: 'user',
schema: Joi.string().min(8).max(16)
schema: Joi.string().min(8).max(24)
},
{
type: 'smtp',
schema: Joi.string().min(8).max(16)
schema: Joi.string().min(8).max(24)
}
];
return types.filter( h => h.type === type ).slice().shift().schema;
Expand Down
4 changes: 2 additions & 2 deletions test/units/01-client-configuration.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,10 @@ describe('Client configuration', () => {
done();
});

it(`error - password should be less than or equals to 16 chars long`, (done) => {
it(`error - password should be less than or equals to 24 chars long`, (done) => {
payload.mode.smtp.password = chance.string({ length: 32 });
const error = configurationSchema.validate(payload, { abortEarly: true, allowUnknown: false })?.error;
expect(error.details[0].message).to.be.eqls(`"mode.smtp.password" length must be less than or equal to 16 characters long`);
expect(error.details[0].message).to.be.eqls(`"mode.smtp.password" length must be less than or equal to 24 characters long`);
done();
});

Expand Down

0 comments on commit 02a8762

Please sign in to comment.