percy-client
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -7,3 +7,4 @@ 'use strict'; | ||
var http = require('https'); | ||
var http = require('http'); | ||
var https = require('https'); | ||
var utils = require('./utils'); | ||
@@ -64,4 +65,5 @@ var Environment = require('./environment'); | ||
this._httpClient = requestPromise; | ||
this._httpModule = this.apiUrl.indexOf('http://') === 0 ? http : https; | ||
// A custom HttpAgent with pooling and keepalive. | ||
this._httpAgent = new http.Agent({ maxSockets: 5, keepAlive: true }); | ||
this._httpAgent = new this._httpModule.Agent({ maxSockets: 5, keepAlive: true }); | ||
} | ||
@@ -68,0 +70,0 @@ |
{ | ||
"name": "percy-client", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "JavaScript API client library for Percy (https://percy.io).", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2203336
7
63438
0
9
2