Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 9, 2019
1 parent 3b81cd4 commit 259865b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/classes/Agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Agent {
mustUrlUseProxy: MustUrlUseProxyMethodType,
getUrlProxy: GetUrlProxyMethodType,
fallbackAgent: AgentType,
socketConnectionTimeout: number
socketConnectionTimeout: number,
) {
this.fallbackAgent = fallbackAgent;
this.isProxyConfigured = isProxyConfigured;
Expand Down
2 changes: 1 addition & 1 deletion src/classes/HttpProxyAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class HttpProxyAgent extends Agent {
createConnection (configuration: ConnectionConfigurationType, callback: ConnectionCallbackType) {
const socket = net.connect(
configuration.proxy.port,
configuration.proxy.hostname
configuration.proxy.hostname,
);

callback(null, socket);
Expand Down
2 changes: 1 addition & 1 deletion src/classes/HttpsProxyAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class HttpsProxyAgent extends Agent {
createConnection (configuration: ConnectionConfigurationType, callback: ConnectionCallbackType) {
const socket = net.connect(
configuration.proxy.port,
configuration.proxy.hostname
configuration.proxy.hostname,
);

socket.on('error', (error) => {
Expand Down
4 changes: 2 additions & 2 deletions src/factories/createGlobalProxyAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default (configurationInput: ProxyAgentConfigurationInputType = defaultCo
mustUrlUseProxy(getHttpProxy),
getUrlProxy(getHttpProxy),
http.globalAgent,
configuration.socketConnectionTimeout
configuration.socketConnectionTimeout,
);
}
};
Expand All @@ -149,7 +149,7 @@ export default (configurationInput: ProxyAgentConfigurationInputType = defaultCo
mustUrlUseProxy(getHttpsProxy),
getUrlProxy(getHttpsProxy),
https.globalAgent,
configuration.socketConnectionTimeout
configuration.socketConnectionTimeout,
);
}
};
Expand Down

0 comments on commit 259865b

Please sign in to comment.