Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #156

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"devDependencies": {
"bump": "1.0.0-next.1",
"bundt": "1.0.1",
"bundt": "1.1.5",
"esm": "3.2.25",
"httpie": "2.0.0-next.7",
"mrmime": "1.0.0",
"selfsigned": "1.10.7",
"httpie": "2.0.0-next.13",
"mrmime": "2.0.0",
"selfsigned": "2.4.1",
"uvu": "0.5.2"
}
}
4 changes: 2 additions & 2 deletions packages/sirv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"node": ">= 10"
},
"dependencies": {
"@polka/url": "^1.0.0-next.20",
"mrmime": "^1.0.0",
"@polka/url": "^1.0.0-next.24",
"mrmime": "^2.0.0",
"totalist": "^3.0.0"
}
}
10 changes: 5 additions & 5 deletions tests/sirv.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ dev('should not rely on initial Cache fill', async () => {

// matches() helper will work but assert here
let res = await server.send('GET', '/foo.bar.js');
assert.is(res.headers['content-type'], 'application/javascript');
assert.is(res.headers['content-type'], 'text/javascript');
assert.is(res.headers['content-length'], '11');
assert.is(res.data, 'hello there');
assert.is(res.statusCode, 200);
Expand Down Expand Up @@ -746,7 +746,7 @@ brotli('should require "Accept-Encoding" match to do anything', async () => {

// the `matches` helper assumes wrong mime type
let res = await server.send('GET', '/data.js', { headers });
assert.is(res.headers['content-type'], 'application/javascript');
assert.is(res.headers['content-type'], 'text/javascript');
assert.is(res.headers['content-encoding'], 'br');
assert.is(res.data, 'brotli js file\n');
assert.is(res.statusCode, 200);
Expand Down Expand Up @@ -785,7 +785,7 @@ brotli('should be preferred when "Accept-Encoding" allows both', async () => {
assert.is(res1.statusCode, 200);

let res2 = await server.send('GET', '/data.js', { headers });
assert.is(res2.headers['content-type'], 'application/javascript');
assert.is(res2.headers['content-type'], 'text/javascript');
assert.is(res2.headers['content-encoding'], 'br');
assert.is(res2.data, 'brotli js file\n');
assert.is(res2.statusCode, 200);
Expand All @@ -811,7 +811,7 @@ gzip('should require "Accept-Encoding" match to do anything', async () => {

// the `matches` helper assumes wrong mime type
let res = await server.send('GET', '/data.js', { headers });
assert.is(res.headers['content-type'], 'application/javascript');
assert.is(res.headers['content-type'], 'text/javascript');
assert.is(res.headers['content-encoding'], 'gzip');
assert.is(res.data, 'gzip js file\n');
assert.is(res.statusCode, 200);
Expand Down Expand Up @@ -850,7 +850,7 @@ gzip('should defer to brotli when "Accept-Encoding" allows both', async () => {
assert.is(res1.statusCode, 200);

let res2 = await server.send('GET', '/data.js', { headers });
assert.is(res2.headers['content-type'], 'application/javascript');
assert.is(res2.headers['content-type'], 'text/javascript');
assert.is(res2.headers['content-encoding'], 'br');
assert.is(res2.data, 'brotli js file\n');
assert.is(res2.statusCode, 200);
Expand Down