diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-12 16:20:31 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-12 16:20:31 +0200 |
| commit | 3974efd722fa10f283df76342125776a352072dd (patch) | |
| tree | 21b5240dc856fe452da37f21313a7e1c7801c17f /node_modules/undici/lib/dispatcher/agent.js | |
| parent | workflows/test: reschedule for my convenience (diff) | |
| download | cleanup-path-5.0.2.tar.gz cleanup-path-5.0.2.zip | |
bump dependenciesv5.0.2
Diffstat (limited to 'node_modules/undici/lib/dispatcher/agent.js')
| -rw-r--r-- | node_modules/undici/lib/dispatcher/agent.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_modules/undici/lib/dispatcher/agent.js b/node_modules/undici/lib/dispatcher/agent.js index 98f1486..db2f817 100644 --- a/node_modules/undici/lib/dispatcher/agent.js +++ b/node_modules/undici/lib/dispatcher/agent.js @@ -24,7 +24,6 @@ function defaultFactory (origin, opts) { class Agent extends DispatcherBase { constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) { - super() if (typeof factory !== 'function') { throw new InvalidArgumentError('factory must be a function.') @@ -38,6 +37,8 @@ class Agent extends DispatcherBase { throw new InvalidArgumentError('maxRedirections must be a positive number') } + super(options) + if (connect && typeof connect !== 'function') { connect = { ...connect } } |
