Skip to content

Commit ed8fd84

Browse files
benmccannlukeed
andauthored
chore(sirv): bump mrmime version (#156)
* Upgrade dependencies * Update packages/sirv/package.json --------- Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
1 parent 19c6895 commit ed8fd84

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
},
1212
"devDependencies": {
1313
"bump": "1.0.0-next.1",
14-
"bundt": "1.0.1",
14+
"bundt": "1.1.5",
1515
"esm": "3.2.25",
16-
"httpie": "2.0.0-next.7",
17-
"mrmime": "1.0.0",
18-
"selfsigned": "1.10.7",
16+
"httpie": "2.0.0-next.13",
17+
"mrmime": "2.0.0",
18+
"selfsigned": "2.4.1",
1919
"uvu": "0.5.2"
2020
}
2121
}

packages/sirv/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"node": ">= 10"
2121
},
2222
"dependencies": {
23-
"@polka/url": "^1.0.0-next.20",
24-
"mrmime": "^1.0.0",
23+
"@polka/url": "^1.0.0-next.24",
24+
"mrmime": "^2.0.0",
2525
"totalist": "^3.0.0"
2626
}
2727
}

tests/sirv.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ dev('should not rely on initial Cache fill', async () => {
623623

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

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

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

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

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

0 commit comments

Comments
 (0)