docker-modem
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39932
728