Skip to content
Myr

build(deps-dev): bump supertest from 6.3.0 to 7.3.0 (#7494)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Noritaka Kobayashi · committed by GitHub · parent cf6722b · Browse files · 4 files+23 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Noritaka Kobayashi <arukimedesu1166777@gmail.com>

Diff stats

4 files+23 added−13 removed

  • tests:+22 added−12 removed
  • other:+1 added−1 removed

4 files+23 added−13 removed

modified:test/acceptance/downloads.js+2 added-2 removed
modified:test/support/utils.js+15 added
modified:test/express.static.js+5 added-10 removed
79 unmodified lines
80 .expect('<p>tobi, loki, jane</p>', done)81 })8283 it('should support ../', function (done) {84 request(this.app)85 .get('/users/../todo.txt')84 utils.getRawPath(request(this.app), '/users/../todo.txt')85 .expect(200, '- groceries', done)86 })8788 it('should support HEAD', function (done) {
178 unmodified lines
267 .expect(404, 'Not Found', done)268 })269270 it('should fall-through when traversing past root', function (done) {272 request(this.app)273 .get('/users/../../todo.txt')271 utils.getRawPath(request(this.app), '/users/../../todo.txt')272 .expect(404, 'Not Found', done)273 })274275 it('should fall-through when URL too long', function (done) {
65 unmodified lines
341 .expect(400, /BadRequestError/, done)342 })343344 it('should 403 when traversing past root', function (done) {347 request(this.app)348 .get('/users/../../todo.txt')345 utils.getRawPath(request(this.app), '/users/../../todo.txt')346 .expect(403, /ForbiddenError/, done)347 })348349 it('should 404 when URL too long', function (done) {
224 unmodified lines
574 this.app = createApp(fixtures, { 'fallthrough': false })575 })576577 it('should catch urlencoded ../', function (done) {581 request(this.app)582 .get('/users/%2e%2e/%2e%2e/todo.txt')578 utils.getRawPath(request(this.app), '/users/%2e%2e/%2e%2e/todo.txt')579 .expect(403, done)580 })581582 it('should not allow root path disclosure', function (done) {587 request(this.app)588 .get('/users/../../fixtures/todo.txt')583 utils.getRawPath(request(this.app), '/users/../../fixtures/todo.txt')584 .expect(403, done)585 })586 })587
223 unmodified lines
modified:package.json+1 added-1 removed
74 unmodified lines
75 "mocha": "^11.7.5",76 "morgan": "1.12.1",77 "nyc": "^17.1.0",78 "pbkdf2-password": "1.2.1",79 "supertest": "^6.3.0",79 "supertest": "^7.3.0",80 "vhost": "~3.0.2"81 },82 "engines": {83 "node": ">= 18"
16 unmodified lines