Skip to content

Commit

Permalink
chore(deps): bump send and express (#1874)
Browse files Browse the repository at this point in the history
* chore(deps): bump send and express

Bumps [send](https://github.com/pillarjs/send) to 1.1.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 1.1.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](pillarjs/send@0.18.0...1.1.0)

Updates `express` from 4.20.0 to 5.0.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v5.0.0/History.md)
- [Commits](expressjs/express@4.20.0...v5.0.0)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* route regex no longer support the simple wildcard * only. It has to be a regex

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Denis Ah-Kang <[email protected]>
  • Loading branch information
dependabot[bot] and deniak authored Sep 12, 2024
1 parent 7f77278 commit baeea60
Show file tree
Hide file tree
Showing 4 changed files with 280 additions and 187 deletions.
4 changes: 2 additions & 2 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const processRequest = async (req, res, params) => {
};

export const setUp = function (app) {
app.get('/api/*', processGet());
app.get(/\/api\/.*/, processGet());

app.post('/api/*', processPost());
app.post(/\/api\/.*/, processPost());
};
2 changes: 1 addition & 1 deletion lib/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,5 @@ export const setUp = function (app) {
app.get('/about', handleWIP);

// Catch-all:
app.get('*', handleWrongPage);
app.get(/(.*)/, handleWrongPage);
};
Loading

0 comments on commit baeea60

Please sign in to comment.