Skip to content

Commit

Permalink
chore(sirv): bump mrmime version (#156)
Browse files Browse the repository at this point in the history
* Upgrade dependencies

* Update packages/sirv/package.json

---------

Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
  • Loading branch information
benmccann and lukeed committed Dec 20, 2023
1 parent 19c6895 commit ed8fd84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package.json
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
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
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

0 comments on commit ed8fd84

Please sign in to comment.