Skip to content

Commit 6b50e3d

Browse files
author
Kristján Oddsson
authored
Merge pull request #317 from thomashohn/task-316-update-superagent-9
[TASK] Update to superagent^9
2 parents cc58a4b + bc64cf1 commit 6b50e3d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

lib/request.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ function serverAddress (app, path) {
304304
* @api private
305305
*/
306306

307-
function TestAgent(app) {
307+
function TestAgent(app, options={}) {
308308
if (!(this instanceof TestAgent)) return new TestAgent(app);
309309
if (typeof app === 'function') app = http.createServer(app);
310-
(Agent || Request).call(this);
310+
const agent = new Agent(options);
311+
Object.assign(this, agent);
311312
this.app = app;
312313
if (typeof app !== 'string' && app && app.listen && app.address && !app.address()) {
313314
this.app = app.listen(0)

package-lock.json

Lines changed: 10 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"is-ip": "^3.1.0",
5858
"methods": "^1.1.2",
5959
"qs": "^6.11.2",
60-
"superagent": "^8.0.9"
60+
"superagent": "^9"
6161
},
6262
"devDependencies": {
6363
"@jsdevtools/simplifyify": "^8.0.4",

0 commit comments

Comments
 (0)