Socket
Socket
Sign inDemoInstall

mockttp

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockttp - npm Package Compare versions

Comparing version 3.15.0 to 3.15.1

12

dist/rules/websockets/websocket-handlers.js

@@ -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;

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc