Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
fix: config upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangoacher committed Feb 13, 2020
1 parent ea71b09 commit f53e34c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 21 deletions.
4 changes: 2 additions & 2 deletions packages/trail-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nearform/trail-core",
"version": "2.0.0",
"version": "3.0.0",
"description": "Audit trail logging service",
"license": "MIT",
"author": "nearForm Ltd",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@nearform/sql": "^1.0.1",
"config": "^1.30.0",
"config": "^3.2.5",
"luxon": "^1.2.0",
"minimist": "^1.2.0",
"pg": "^7.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/trail-hapi-plugin/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const formatReasons = function (error) {
let message
// Check for nested reason from alternatives.
if (reason.type === 'alternatives.match') {
const type = get(reason,'context.details.1.context.error.type')
const type = get(reason, 'context.details.1.context.error.type')
message = errorsMessages[type]
}
else {
Expand Down
5 changes: 0 additions & 5 deletions packages/trail-hapi-plugin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/trail-hapi-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nearform/trail-hapi-plugin",
"version": "2.0.0",
"version": "3.0.0",
"description": "Hapi plugin for the audit trail logging service",
"license": "MIT",
"author": "nearForm Ltd",
Expand Down Expand Up @@ -39,9 +39,9 @@
"dependencies": {
"@hapi/hapi": "^19.1.0",
"@hapi/joi": "^17.1.0",
"@nearform/trail-core": "^2.0.0",
"@nearform/trail-core": "^3.0.0",
"boom": "^7.2.0",
"config": "^1.30.0",
"config": "^3.2.5",
"lodash": "^4.17.10",
"luxon": "^1.2.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/trail-hapi-server/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = async function () {
}
}
})
server.validator(Joi)

try {
const startTime = process.hrtime()
Expand Down Expand Up @@ -54,10 +55,9 @@ module.exports = async function () {
response: {
status: {
200: Joi.object({
uptime: Joi.string().description('uptime in seconds').regex(/^(\d+\.\d{3} s)$/)
})
uptime: Joi.string().description('uptime in seconds').regex(/^(\d+\.\d{3} s)$/).required()
})
.description('Successful uptime reply.')
.requiredKeys('uptime')
.unknown(false),
500: errorsSchemas['500']
}
Expand Down
6 changes: 3 additions & 3 deletions packages/trail-hapi-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/trail-hapi-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nearform/trail-hapi-server",
"version": "2.0.0",
"version": "3.0.0",
"description": "Server running Hapi plugin for the audit trail logging service",
"license": "MIT",
"author": "nearForm Ltd",
Expand Down Expand Up @@ -43,9 +43,9 @@
"dependencies": {
"@hapi/hapi": "^19.1.0",
"@hapi/joi": "^17.1.0",
"@nearform/trail-core": "^2.0.0",
"@nearform/trail-hapi-plugin": "^2.0.0",
"config": "^1.30.0",
"@nearform/trail-core": "^3.0.0",
"@nearform/trail-hapi-plugin": "^3.0.0",
"config": "^3.2.5",
"hapi-pino": "^6.5.0",
"inert": "^5.1.0",
"swagger-ui-dist": "^3.13.6"
Expand Down

0 comments on commit f53e34c

Please sign in to comment.