Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

https-proxy-server-express

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-proxy-server-express - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

dist/index.d.ts
/// <reference types="node" />
import { ServerOptions as HttpsServerOptions } from 'https';
import { ServerOptions as HttpsServerOptions } from "https";
export declare class ProxyServer {

@@ -4,0 +4,0 @@ private app;

@@ -27,10 +27,10 @@ "use strict";

const clientCertAuth = (req, res, next) => {
console.log('Client certificate authentication in progress...');
const clientCert = req.socket.getPeerCertificate();
if (!clientCert) {
return res.status(401).send('No client certificate provided.');
return res.status(401).send("No client certificate provided.");
}
console.log('Client certificate', clientCert);
if (!req.socket.authorized) {
return res.status(401).send('Invalid client certificate authentication.');
return res
.status(401)
.send("Invalid client certificate authentication.");
}

@@ -46,8 +46,10 @@ next();

changeOrigin: true,
secure: false
secure: false,
};
this.app.use('/', (0, http_proxy_middleware_1.createProxyMiddleware)(proxyOptions));
this.app.use("/", (0, http_proxy_middleware_1.createProxyMiddleware)(proxyOptions));
}
start() {
this.server = https_1.default.createServer(this.options, this.app).listen(this.port, () => {
this.server = https_1.default
.createServer(this.options, this.app)
.listen(this.port, () => {
console.log(`Server is running on port ${this.port}`);

@@ -54,0 +56,0 @@ });

{
"name": "https-proxy-server-express",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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