New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ssh-url

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssh-url - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

index.js

@@ -40,3 +40,3 @@ 'use strict';

hostname: parsed.hostname,
pathname: parsed.pathname.replace(/^\/:/, '/')
pathname: (parsed.pathname || '').replace(/^\/:/, '/')
};

@@ -50,3 +50,3 @@ };

function formatScpSsh (obj) {
return obj.user + '@' + obj.hostname + ':' + obj.pathname.replace(/^\//, '');
return obj.user + '@' + obj.hostname + ':' + (obj.pathname || '').replace(/^\//, '');
}
{
"name": "ssh-url",
"version": "0.1.3",
"version": "0.1.4",
"description": "ssh-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