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

docker-host

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-host - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

2

index.js
module.exports = function(remote) {
if (remote && (remote.host || remote.socketPath)) return remote
if (!remote) remote = process.env.DOCKER_HOST || 'unix:///var/run/docker.sock'

@@ -3,0 +5,0 @@ if (typeof remote === 'number') return {host:'localhost', port:remote}

2

package.json
{
"name": "docker-host",
"version": "2.2.0",
"version": "2.3.0",
"description": "Tiny module that converts a host to docker (usually $DOCKER_HOST) to a standard http url",

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

@@ -36,2 +36,7 @@ var tape = require('tape')

t.end()
})
tape('support object shorthand', function(t) {
t.same(host(host(':2375')), {host:'localhost', port:2375, protocol:'http:'})
t.end()
})
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