Skip to content

Commit

Permalink
Update Joi dependency to version 17.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiwycherley committed Mar 22, 2024
1 parent 62d90f7 commit 9a40dae
Show file tree
Hide file tree
Showing 9 changed files with 1,654 additions and 10,655 deletions.
12,269 changes: 1,622 additions & 10,647 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"standard": "^17.1.0"
},
"dependencies": {
"@hapi/joi": "^17.1.1",
"@hapi/wreck": "^18.0.1",
"async-retry": "^1.3.3",
"aws-sdk": "^2.1582.0",
"axios": "^1.6.8",
"csvtojson": "^2.0.10",
"directly": "^2.0.6",
"joi": "^17.12.2",
"knex": "^3.1.0",
"moment-timezone": "^0.5.45",
"ngr-to-bng": "^0.0.1",
Expand Down
24 changes: 24 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@

This is a serverless project to provide the processing of data files for LFW from FWFI

### ffoi-process

Pulls in the telemetry data from the S3 bucket and processes it into the database

### fgs-process

Lambda that checks for the latest flood guidence statement and if it is newer than the last processed one it will download the file and put it in our S3 bucket

### fwis-process

Gets all warnings and alerts from the FWIS api and puts them in the database

### imtd-process

This Lambda will check every station in the database agaist the IMTD api and update the database with the latest thresholds for each station. Calling its self after each station in order to minimise the time the lambda runs for. This is run every two weeks and the different envs have to run on different days as the IMTD api cant handle the load of all the stations at once from multiple envs.

### rloi-process

brings in the observed telemtery data from the S3 bucket and processes it into the database

### station-process

Uses the exports context file from sharepoint to update the stations in the database.

## Installing

### There is a global dependency on [serverless](https://serverless.com/) which is used for configuration and deployments to AWS
Expand Down
4 changes: 2 additions & 2 deletions test/events/station-event.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{
"s3": {
"bucket": {
"name": "devlfws3bkt001"
"name": "devldnlfws3bkt001"
},
"object": {
"key": "fwfidata/ENT_7010/rloiStationData.csv"
}
}
}
]
}
}
2 changes: 1 addition & 1 deletion test/schemas/ffoi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require('@hapi/joi')
const Joi = require('joi')

module.exports = Joi.object({
$: Joi.object().keys({
Expand Down
2 changes: 1 addition & 1 deletion test/schemas/rloi-value-parent.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require('@hapi/joi')
const Joi = require('joi')

module.exports = {
vars: Joi.array().required().items(
Expand Down
2 changes: 1 addition & 1 deletion test/schemas/rloi-values.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require('@hapi/joi')
const Joi = require('joi')

module.exports = {
vars: Joi.array().required().sparse(),
Expand Down
2 changes: 1 addition & 1 deletion test/schemas/s3-put.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require('@hapi/joi')
const Joi = require('joi')

module.exports = Joi.object({
Key: Joi.string().required(),
Expand Down
2 changes: 1 addition & 1 deletion test/schemas/station.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require('@hapi/joi')
const Joi = require('joi')

module.exports = {
vars: Joi.array().required().items(
Expand Down

0 comments on commit 9a40dae

Please sign in to comment.