Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jun 1, 2020
1 parent 11e2de5 commit cca3ec3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,41 @@
]
},
"dependencies": {
"boolean": "^3.0.0",
"core-js": "^3.6.4",
"boolean": "^3.0.1",
"core-js": "^3.6.5",
"es6-error": "^4.1.1",
"matcher": "^2.1.0",
"roarr": "^2.15.2",
"semver": "^7.1.2",
"serialize-error": "^5.0.0"
"matcher": "^3.0.0",
"roarr": "^2.15.3",
"semver": "^7.3.2",
"serialize-error": "^7.0.1"
},
"description": "Global HTTP/HTTPS proxy configurable using environment variables.",
"devDependencies": {
"@ava/babel": "^1.0.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/node": "^7.8.4",
"@babel/plugin-transform-flow-strip-types": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/register": "^7.8.3",
"@ava/babel": "^1.0.1",
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/node": "^7.10.1",
"@babel/plugin-transform-flow-strip-types": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/register": "^7.10.1",
"anyproxy": "^4.1.2",
"ava": "^3.1.0",
"ava": "^3.8.2",
"axios": "^0.19.2",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-transform-export-default-name": "^2.0.4",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-canonical": "^18.1.1",
"flow-bin": "^0.117.0",
"coveralls": "^3.1.0",
"eslint": "^7.1.0",
"eslint-config-canonical": "^20.0.5",
"flow-bin": "^0.125.1",
"flow-copy-source": "^2.0.9",
"get-port": "^5.1.1",
"got": "^10.4.0",
"husky": "^4.2.1",
"nyc": "^15.0.0",
"got": "^11.1.4",
"husky": "^4.2.5",
"nyc": "^15.1.0",
"pem": "^1.14.4",
"request": "^2.88.0",
"semantic-release": "^17.0.2",
"sinon": "^8.1.1"
"request": "^2.88.2",
"semantic-release": "^17.0.8",
"sinon": "^9.0.2"
},
"engines": {
"node": ">=10.0"
Expand Down
2 changes: 1 addition & 1 deletion src/factories/createGlobalProxyAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const createConfiguration = (configurationInput: ProxyAgentConfigurationInputTyp
const defaultConfiguration = {
environmentVariableNamespace: typeof environment.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE === 'string' ? environment.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE : 'GLOBAL_AGENT_',
forceGlobalAgent: typeof environment.GLOBAL_AGENT_FORCE_GLOBAL_AGENT === 'string' ? parseBoolean(environment.GLOBAL_AGENT_FORCE_GLOBAL_AGENT) : true,
socketConnectionTimeout: typeof environment.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT === 'string' ? parseInt(environment.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT, 10) : defaultConfigurationInput.socketConnectionTimeout,
socketConnectionTimeout: typeof environment.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT === 'string' ? Number.parseInt(environment.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT, 10) : defaultConfigurationInput.socketConnectionTimeout,
};

// $FlowFixMe
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/isUrlMatchingNoProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
export default (subjectUrl: string, noProxy: string) => {
const subjectUrlTokens = parseUrl(subjectUrl);

const rules = noProxy.split(/[,\s]/);
const rules = noProxy.split(/[\s,]/);

for (const rule of rules) {
const ruleMatch = rule
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/parseProxyUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default (url: string) => {
let port = 80;

if (urlTokens.port) {
port = parseInt(urlTokens.port, 10);
port = Number.parseInt(urlTokens.port, 10);
}

return {
Expand Down

0 comments on commit cca3ec3

Please sign in to comment.