Skip to content

Commit 9f4dbae

Browse files
committed
deps: etag@~1.8.0
1 parent f2bbd10 commit 9f4dbae

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

History.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ unreleased
88
- Fix error when running under React Native
99
- Use same color for same namespace
1010
11+
* deps: etag@~1.8.0
12+
- Use SHA1 instead of MD5 for ETag hashing
13+
- Works with FIPS 140-2 OpenSSL configuration
1114
* deps: finalhandler@~1.0.0
1215
- Fix exception when `err` cannot be converted to a string
1316
- Fully URL-encode the pathname in the 404

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"depd": "~1.1.0",
3838
"encodeurl": "~1.0.1",
3939
"escape-html": "~1.0.3",
40-
"etag": "~1.7.0",
40+
"etag": "~1.8.0",
4141
"finalhandler": "~1.0.0",
4242
"fresh": "0.3.0",
4343
"merge-descriptors": "1.0.1",

test/res.send.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('res', function(){
133133

134134
request(app)
135135
.get('/')
136-
.expect('ETag', 'W/"3e7-VYgCBglFKiDVAcpzPNt4Sg"')
136+
.expect('ETag', 'W/"3e7-qPnkJ3CVdVhFJQvUBfF10TmVA7g"')
137137
.expect(200, done);
138138
})
139139

@@ -201,7 +201,7 @@ describe('res', function(){
201201

202202
request(app)
203203
.get('/')
204-
.expect('ETag', 'W/"3e7-VYgCBglFKiDVAcpzPNt4Sg"')
204+
.expect('ETag', 'W/"3e7-qPnkJ3CVdVhFJQvUBfF10TmVA7g"')
205205
.expect(200, done);
206206
})
207207

@@ -355,7 +355,7 @@ describe('res', function(){
355355

356356
request(app)
357357
.get('/')
358-
.expect('ETag', 'W/"c-ZUfd0NJ26qwjlKF4r8qb2g"')
358+
.expect('ETag', 'W/"c-IgR/L5SF7CJQff4wxKGF/vfPuZ0"')
359359
.expect(200, done);
360360
});
361361

@@ -371,7 +371,7 @@ describe('res', function(){
371371

372372
request(app)
373373
[method]('/')
374-
.expect('ETag', 'W/"c-ZUfd0NJ26qwjlKF4r8qb2g"')
374+
.expect('ETag', 'W/"c-IgR/L5SF7CJQff4wxKGF/vfPuZ0"')
375375
.expect(200, done);
376376
})
377377
});
@@ -387,7 +387,7 @@ describe('res', function(){
387387

388388
request(app)
389389
.get('/')
390-
.expect('ETag', 'W/"0-1B2M2Y8AsgTpgAmY7PhCfg"')
390+
.expect('ETag', 'W/"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"')
391391
.expect(200, done);
392392
})
393393

@@ -403,7 +403,7 @@ describe('res', function(){
403403

404404
request(app)
405405
.get('/')
406-
.expect('ETag', 'W/"3e7-VYgCBglFKiDVAcpzPNt4Sg"')
406+
.expect('ETag', 'W/"3e7-qPnkJ3CVdVhFJQvUBfF10TmVA7g"')
407407
.expect(200, done);
408408
});
409409

@@ -485,7 +485,7 @@ describe('res', function(){
485485

486486
request(app)
487487
.get('/')
488-
.expect('ETag', '"d-Otu60XkfuuPskIiUxJY4cA"')
488+
.expect('ETag', '"d-HwnTDHB9U/PRbFMN1z1wps51lqk"')
489489
.expect(200, done);
490490
})
491491
})
@@ -502,7 +502,7 @@ describe('res', function(){
502502

503503
request(app)
504504
.get('/')
505-
.expect('ETag', 'W/"d-Otu60XkfuuPskIiUxJY4cA"')
505+
.expect('ETag', 'W/"d-HwnTDHB9U/PRbFMN1z1wps51lqk"')
506506
.expect(200, done)
507507
})
508508
})

test/utils.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ var utils = require('../lib/utils');
55
describe('utils.etag(body, encoding)', function(){
66
it('should support strings', function(){
77
utils.etag('express!')
8-
.should.eql('"8-zZdv4imtWD49AHEviejT6A"')
8+
.should.eql('"8-O2uVAFaQ1rZvlKLT14RnuvjPIdg"')
99
})
1010

1111
it('should support utf8 strings', function(){
1212
utils.etag('express❤', 'utf8')
13-
.should.eql('"a-fsFba4IxwQS6h6Umb+FNxw"')
13+
.should.eql('"a-JBiXf7GyzxwcrxY4hVXUwa7tmks"')
1414
})
1515

1616
it('should support buffer', function(){
1717
var buf = new Buffer('express!')
1818
utils.etag(buf)
19-
.should.eql('"8-zZdv4imtWD49AHEviejT6A"');
19+
.should.eql('"8-O2uVAFaQ1rZvlKLT14RnuvjPIdg"')
2020
})
2121

2222
it('should support empty string', function(){
2323
utils.etag('')
24-
.should.eql('"0-1B2M2Y8AsgTpgAmY7PhCfg"');
24+
.should.eql('"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"')
2525
})
2626
})
2727

@@ -50,23 +50,23 @@ describe('utils.setCharset(type, charset)', function () {
5050
describe('utils.wetag(body, encoding)', function(){
5151
it('should support strings', function(){
5252
utils.wetag('express!')
53-
.should.eql('W/"8-zZdv4imtWD49AHEviejT6A"')
53+
.should.eql('W/"8-O2uVAFaQ1rZvlKLT14RnuvjPIdg"')
5454
})
5555

5656
it('should support utf8 strings', function(){
5757
utils.wetag('express❤', 'utf8')
58-
.should.eql('W/"a-fsFba4IxwQS6h6Umb+FNxw"')
58+
.should.eql('W/"a-JBiXf7GyzxwcrxY4hVXUwa7tmks"')
5959
})
6060

6161
it('should support buffer', function(){
6262
var buf = new Buffer('express!')
6363
utils.wetag(buf)
64-
.should.eql('W/"8-zZdv4imtWD49AHEviejT6A"');
64+
.should.eql('W/"8-O2uVAFaQ1rZvlKLT14RnuvjPIdg"')
6565
})
6666

6767
it('should support empty string', function(){
6868
utils.wetag('')
69-
.should.eql('W/"0-1B2M2Y8AsgTpgAmY7PhCfg"');
69+
.should.eql('W/"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"')
7070
})
7171
})
7272

0 commit comments

Comments
 (0)