Skip to content

Commit

Permalink
Merge pull request Third-Culture-Software#7874 from jniles/bump-deps
Browse files Browse the repository at this point in the history
Remove q.js from package.json

All tests pass.
  • Loading branch information
jmcameron authored Nov 14, 2024
2 parents 2eb5aff + c75dbe7 commit d8abff0
Show file tree
Hide file tree
Showing 150 changed files with 3,528 additions and 2,179 deletions.
3,451 changes: 2,488 additions & 963 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
"nodemailer": "^6.9.16",
"p-retry": "^4.6.2",
"puppeteer": "^23.8.0",
"q": "^1.5.1",
"socket.io": "4.8.1",
"stream-to-promise": "^3.0.0",
"tempy": "^1.0.1",
Expand Down Expand Up @@ -205,7 +204,7 @@
"mocha-xunit-reporter": "^2.3.0",
"postcss": "^8.4.49",
"qs": "^6.13.0",
"release-it": "^17.10.0",
"release-it": "^17.1.1",
"sinon": "^18.0.1",
"standard-version": "^9.5.0",
"typescript": "^5.6.3"
Expand Down
22 changes: 10 additions & 12 deletions server/controllers/admin/choicesListManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function list(req, res, next) {
.then((rows) => {
res.status(200).json(rows);
})
.catch(next)
.done();
.catch(next);

}

/**
Expand All @@ -55,10 +55,9 @@ function detail(req, res, next) {
.then((record) => {
res.status(200).json(record);
})
.catch(next)
.done();
}
.catch(next);

}

// POST /choices_list_management
function create(req, res, next) {
Expand All @@ -71,10 +70,9 @@ function create(req, res, next) {
.then((row) => {
res.status(201).json({ id : row.insertId });
})
.catch(next)
.done();
}
.catch(next);

}

// PUT /choices_list_management /:id
function update(req, res, next) {
Expand All @@ -88,8 +86,8 @@ function update(req, res, next) {
// all updates completed successfull, return full object to client
res.status(200).json(record);
})
.catch(next)
.done();
.catch(next);

}

// DELETE /choices_list_management/:id
Expand All @@ -105,8 +103,8 @@ function remove(req, res, next) {

res.status(204).json();
})
.catch(next)
.done();
.catch(next);

}

// get list of choicesListManagement
Expand Down
20 changes: 10 additions & 10 deletions server/controllers/admin/cron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function list(req, res, next) {
`;
db.exec(query)
.then(rows => res.status(200).json(rows))
.catch(next)
.done();
.catch(next);

}

function details(req, res, next) {
Expand All @@ -27,8 +27,8 @@ function details(req, res, next) {
`;
db.one(query, [req.params.id])
.then(rows => res.status(200).json(rows))
.catch(next)
.done();
.catch(next);

}

function update(req, res, next) {
Expand All @@ -41,8 +41,8 @@ function update(req, res, next) {
}
db.exec(query, [params, req.params.id])
.then(() => res.sendStatus(204))
.catch(next)
.done();
.catch(next);

}

function remove(req, res, next) {
Expand All @@ -51,8 +51,8 @@ function remove(req, res, next) {
`;
db.exec(query, [req.params.id])
.then(() => res.sendStatus(204))
.catch(next)
.done();
.catch(next);

}

function create(req, res, next) {
Expand All @@ -64,6 +64,6 @@ function create(req, res, next) {
.then((result) => {
res.status(201).json({ id : result.insertId });
})
.catch(next)
.done();
.catch(next);

}
12 changes: 6 additions & 6 deletions server/controllers/admin/cronEmailReport/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ function lookup(id) {
function list(req, res, next) {
find(req.query)
.then(rows => res.status(200).json(rows))
.catch(next)
.done();
.catch(next);

}

function details(req, res, next) {
lookup(req.params.id)
.then((data) => res.status(200).json(data))
.catch(next)
.done();
.catch(next);

}

/**
Expand Down Expand Up @@ -106,8 +106,8 @@ function remove(req, res, next) {
db.exec(query, [ident])
.then(() => removeJob(ident))
.then(() => res.sendStatus(204))
.catch(next)
.done();
.catch(next);

}

async function create(req, res, next) {
Expand Down
23 changes: 10 additions & 13 deletions server/controllers/admin/dataCollectorManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function lookupDataCollectorManagement(id) {
return db.one(sql, [id]);
}


// List
function list(req, res, next) {
const filters = new FilterParser(req.query);
Expand Down Expand Up @@ -65,8 +64,8 @@ function list(req, res, next) {

res.status(200).json(dataCollector);
})
.catch(next)
.done();
.catch(next);

}

/**
Expand All @@ -81,10 +80,9 @@ function detail(req, res, next) {
.then((record) => {
res.status(200).json(record);
})
.catch(next)
.done();
}
.catch(next);

}

// POST /data_collector_management
function create(req, res, next) {
Expand All @@ -95,10 +93,9 @@ function create(req, res, next) {
.then((row) => {
res.status(201).json({ id : row.insertId });
})
.catch(next)
.done();
}
.catch(next);

}

// PUT /data_collector_management /:id
function update(req, res, next) {
Expand All @@ -112,8 +109,8 @@ function update(req, res, next) {
// all updates completed successfull, return full object to client
res.status(200).json(record);
})
.catch(next)
.done();
.catch(next);

}

// DELETE /data_collector_management/:id
Expand All @@ -129,8 +126,8 @@ function remove(req, res, next) {

res.status(204).json();
})
.catch(next)
.done();
.catch(next);

}

// get list of dataCollectorManagement
Expand Down
7 changes: 3 additions & 4 deletions server/controllers/admin/displayMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ function list(req, res, next) {
.then((dataSurvey) => {
res.status(200).json(dataSurvey);
})
.catch(next)
.done();
.catch(next);

}

Expand All @@ -280,8 +279,8 @@ function remove(req, res, next) {
.then(() => {
res.status(204).json();
})
.catch(next)
.done();
.catch(next);

}

// get list of Display Metadata
Expand Down
20 changes: 10 additions & 10 deletions server/controllers/admin/enterprises.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ exports.list = function list(req, res, next) {

res.status(200).json(data);
})
.catch(next)
.done();
.catch(next);

};

// GET /enterprises/:id
Expand All @@ -82,8 +82,8 @@ exports.detail = function detail(req, res, next) {
.then(enterprise => {
res.status(200).json(enterprise);
})
.catch(next)
.done();
.catch(next);

};

function lookupEnterprise(id) {
Expand Down Expand Up @@ -156,8 +156,8 @@ exports.create = function create(req, res, next) {
.then(row => {
res.status(201).json({ id : row.insertId });
})
.catch(next)
.done();
.catch(next);

};

// PUT /enterprises/:id
Expand All @@ -183,8 +183,8 @@ exports.update = function update(req, res, next) {
.then((enterprise) => {
res.status(200).json(enterprise);
})
.catch(next)
.done();
.catch(next);

};

// POST /enterprises/:id/logo
Expand All @@ -201,6 +201,6 @@ exports.uploadLogo = (req, res, next) => {
.then(() => {
res.status(200).json({ logo });
})
.catch(next)
.done();
.catch(next);

};
16 changes: 8 additions & 8 deletions server/controllers/admin/entities/groups/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function list(req, res, next) {
`;
db.exec(query)
.then(rows => res.status(200).json(rows))
.catch(next)
.done();
.catch(next);

}

async function lookupEntity(uuid) {
Expand Down Expand Up @@ -88,8 +88,8 @@ function update(req, res, next) {

transaction.execute()
.then(() => res.sendStatus(204))
.catch(next)
.done();
.catch(next);

}

function remove(req, res, next) {
Expand All @@ -105,8 +105,8 @@ function remove(req, res, next) {
.addQuery(queryEntityGroup, [db.bid(req.params.uuid)])
.execute()
.then(() => res.sendStatus(204))
.catch(next)
.done();
.catch(next);

}

function create(req, res, next) {
Expand Down Expand Up @@ -134,6 +134,6 @@ function create(req, res, next) {
.then(() => {
res.status(201).json({ uuid : params.uuid });
})
.catch(next)
.done();
.catch(next);

}
20 changes: 10 additions & 10 deletions server/controllers/admin/entities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ function list(req, res, next) {
`;
db.exec(query)
.then(rows => res.status(200).json(rows))
.catch(next)
.done();
.catch(next);

}

function details(req, res, next) {
const buid = db.bid(req.params.uuid);
fetchEntity(buid)
.then(entity => res.status(200).json(entity))
.catch(next)
.done();
.catch(next);

}

/**
Expand All @@ -55,8 +55,8 @@ function update(req, res, next) {
db.exec(query, [params, buid])
.then(() => fetchEntity(buid))
.then(entity => res.status(200).json(entity))
.catch(next)
.done();
.catch(next);

}

/**
Expand All @@ -69,8 +69,8 @@ function remove(req, res, next) {
const buid = db.bid(req.params.uuid);
db.exec(query, [buid])
.then(() => res.sendStatus(204))
.catch(next)
.done();
.catch(next);

}

function create(req, res, next) {
Expand All @@ -82,8 +82,8 @@ function create(req, res, next) {
params.uuid = db.bid(identifier);
db.exec(query, [params])
.then(() => res.status(201).json({ uuid : identifier }))
.catch(next)
.done();
.catch(next);

}

/**
Expand Down
Loading

0 comments on commit d8abff0

Please sign in to comment.