Socket
Socket
Sign inDemoInstall

ssl-express-www

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssl-express-www - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

12

lib/index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (req, res, next) {
module.exports = function(req, res, next) {
var local = req.url;

@@ -12,3 +7,4 @@ var schema = (req.headers['x-forwarded-proto'] || '').toLowerCase();

var fullUrl = 'https://' + www + local;
var removeSlash = function removeSlash(site) {
var removeSlash = function(site) {
return site.replace(/\/$/, '');

@@ -26,2 +22,2 @@ };

}
};
};
{
"name": "ssl-express-www",
"version": "1.0.3",
"version": "1.0.4",
"description": "It forces HTTPS when HTTP is required, remove www and remove slash-end from url.",

@@ -5,0 +5,0 @@ "main": "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