Socket
Socket
Sign inDemoInstall

@podium/utils

Package Overview
Dependencies
Maintainers
5
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@podium/utils - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

9

lib/http-incoming.js
'use strict';
const originalUrl = require('original-url');
const { URL } = require('url');

@@ -18,5 +19,7 @@

const protocolFromRequest = (request = {}) => {
const secure =
request.secure || (request.connection && request.connection.encrypted);
return secure ? 'https:' : 'http:';
if (request.headers) {
const url = originalUrl(request);
return url.protocol ? url.protocol : 'http:';
}
return 'http:';
};

@@ -23,0 +26,0 @@

{
"name": "@podium/utils",
"version": "4.2.0",
"version": "4.2.1",
"description": "Common generic utility methods shared by @podium modules.",

@@ -60,4 +60,5 @@ "license": "MIT",

"@podium/schemas": "4.0.1",
"original-url": "1.2.3",
"camelcase": "5.3.1"
}
}
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