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

docker-modem

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-modem - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

12

lib/modem.js

@@ -11,3 +11,2 @@ var querystring = require('querystring'),

util = require('util'),
url = require('url'),
splitca = require('split-ca'),

@@ -169,3 +168,3 @@ isWin = require('os').type() === 'Windows_NT';

optionsf.headers['X-Registry-Auth'] = options.authconfig.key || options.authconfig.base64 ||
Buffer.from(JSON.stringify(options.authconfig)).toString('base64');
Buffer.from(JSON.stringify(options.authconfig)).toString('base64').replace(/\+/g, "-").replace(/\//g, "_");
}

@@ -459,10 +458,9 @@

// serialize map values as JSON strings, else querystring truncates.
// serialize map and array values as JSON strings, else querystring truncates.
// 't' and 'extrahosts' can be arrays but need special treatment so that they're
// passed as multiple qs parameters instead of JSON values.
Object.keys(opts).map(function (key, i) {
if (opts[key]
&& typeof opts[key] === 'object'
&& !Array.isArray(opts[key])
// Ref: https://docs.docker.com/engine/api/v1.40/#operation/ImageBuild
// > cachefrom (string) JSON array of images used for build cache resolution.
|| key === 'cachefrom'
&& !['t', 'extrahosts'].includes(key)
) {

@@ -469,0 +467,0 @@ clone[key] = JSON.stringify(opts[key]);

{
"name": "docker-modem",
"description": "Docker remote API network layer module.",
"version": "3.0.3",
"version": "3.0.4",
"author": "Pedro Dias <petermdias@gmail.com>",

@@ -6,0 +6,0 @@ "maintainers": [

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