Comparing version 3.15.0 to 3.15.1
@@ -6,4 +6,2 @@ "use strict"; | ||
const url = require("url"); | ||
const tls = require("tls"); | ||
const fs = require("fs/promises"); | ||
const WebSocket = require("ws"); | ||
@@ -136,11 +134,3 @@ const serialization_1 = require("../../serialization/serialization"); | ||
if (!this._trustedCACertificates) { | ||
this._trustedCACertificates = Promise.all(tls.rootCertificates | ||
.concat(this.extraCACertificates.map(certObject => { | ||
if ('cert' in certObject) { | ||
return certObject.cert.toString('utf8'); | ||
} | ||
else { | ||
return fs.readFile(certObject.certPath, 'utf8'); | ||
} | ||
}))); | ||
this._trustedCACertificates = (0, passthrough_handling_1.getTrustedCAs)(undefined, this.extraCACertificates); | ||
} | ||
@@ -147,0 +137,0 @@ return this._trustedCACertificates; |
{ | ||
"name": "mockttp", | ||
"version": "3.15.0", | ||
"version": "3.15.1", | ||
"description": "Mock HTTP server for testing HTTP clients and stubbing webservices", | ||
@@ -185,3 +185,3 @@ "exports": { | ||
"graphql-tag": "^2.12.6", | ||
"http-encoding": "^1.5.1", | ||
"http-encoding": "^2.0.1", | ||
"http2-wrapper": "^2.2.1", | ||
@@ -188,0 +188,0 @@ "https-proxy-agent": "^5.0.1", |
@@ -41,3 +41,4 @@ import * as _ from 'lodash'; | ||
getDnsLookupFunction, | ||
shouldUseStrictHttps | ||
shouldUseStrictHttps, | ||
getTrustedCAs | ||
} from '../passthrough-handling'; | ||
@@ -216,12 +217,3 @@ | ||
if (!this._trustedCACertificates) { | ||
this._trustedCACertificates = Promise.all( | ||
(tls.rootCertificates as Array<string | Promise<string>>) | ||
.concat(this.extraCACertificates.map(certObject => { | ||
if ('cert' in certObject) { | ||
return certObject.cert.toString('utf8'); | ||
} else { | ||
return fs.readFile(certObject.certPath, 'utf8'); | ||
} | ||
})) | ||
); | ||
this._trustedCACertificates = getTrustedCAs(undefined, this.extraCACertificates); | ||
} | ||
@@ -228,0 +220,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
3
23
1546611
26408
+ Addedbrotli-wasm@3.0.1(transitive)
+ Addedhttp-encoding@2.0.1(transitive)
- Removedbrotli-wasm@1.3.1(transitive)
- Removedhttp-encoding@1.5.1(transitive)
Updatedhttp-encoding@^2.0.1