Skip to content

Commit

Permalink
format, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Jun 23, 2016
1 parent fc72bde commit d21c229
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/modem.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ Modem.prototype.buildPayload = function(err, isStream, statusCodes, openStdin, r
if (statusCodes[res.statusCode] !== true) {
getCause(isStream, res, json, function(err, cause) {
var msg = new Error(
'(HTTP code ' + res.statusCode + ') '
+ (statusCodes[res.statusCode] || 'unexpected') + ' - '
+ (cause.message || cause) + ' '
'(HTTP code ' + res.statusCode + ') ' +
(statusCodes[res.statusCode] || 'unexpected') + ' - ' +
(cause.message || cause) + ' '
);
msg.reason = statusCodes[res.statusCode];
msg.statusCode = res.statusCode;
Expand Down Expand Up @@ -322,12 +322,12 @@ Modem.prototype.buildQuerystring = function(opts) {
var clone = {};

// serialize map values as JSON strings, else querystring truncates.
Object.keys(opts).map(function(key, i){
Object.keys(opts).map(function(key, i) {
clone[key] = (opts[key] && typeof opts[key] === 'object') ?
JSON.stringify(opts[key]) : opts[key];
});

return querystring.stringify(clone);
}
};

module.exports = Modem;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docker-modem",
"description": "Docker remote API network layer module.",
"version": "0.3.0",
"version": "0.3.1",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down

0 comments on commit d21c229

Please sign in to comment.