Skip to content

Commit 80ce466

Browse files
authored
bump: upgrade yarn, express and sass (#49)
* bump: upgrade yarn, express and sass * fix test server https://expressjs.com/en/guide/migrating-5#path-syntax
1 parent 0bb325a commit 80ce466

File tree

3 files changed

+242
-263
lines changed

3 files changed

+242
-263
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
"@parcel/transformer-inline-string": "^2.16.3",
6262
"@parcel/transformer-sass": "^2.16.3",
6363
"cypress": "^15.9.0",
64-
"express": "^4.21.2",
64+
"express": "^5.2.1",
6565
"parcel": "^2.16.3",
66-
"sass": "^1.79.3"
66+
"sass": "^1.97.2"
6767
},
68-
"packageManager": "yarn@4.5.3"
68+
"packageManager": "yarn@4.12.0"
6969
}

test/test-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ app.use(express.static(path.join(__dirname, 'test-sites')));
1212
app.use(express.json());
1313
app.use(express.urlencoded({ extended: true }));
1414
// Handle all POST requests
15-
app.post('*', (_, res) => {
15+
app.post('{*splat}', (_, res) => {
1616
// Send a success response
1717
res.json({ success: true });
1818
});
1919

2020
// Handle all PUT requests
21-
app.put('*', (req, res) => {
21+
app.put('{*splat}', (req, res) => {
2222
// Special handling for URLs that start with `/amazon-multipart-upload`
2323
if (req.path.startsWith('/amazon-multipart-upload')) {
2424
const etag = `"${Math.round(Math.random() * 10000)}"`;

0 commit comments

Comments
 (0)