Comparing version 2.2.4 to 2.2.5
@@ -275,6 +275,4 @@ var EventEmitter = require('events').EventEmitter, | ||
this.modem.dial(optsf, function(err, data) { | ||
if(err) { | ||
return args.callback(err); | ||
} | ||
args.callback(undefined, self.getVolume(data.Name)); | ||
if(err) return args.callback(err, data); | ||
args.callback(err, self.getVolume(data.Name)); | ||
}); | ||
@@ -281,0 +279,0 @@ }; |
{ | ||
"name": "dockerode", | ||
"description": "Docker Remote API module.", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"author": "Pedro Dias <petermdias@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
@@ -24,3 +24,3 @@ # dockerode | ||
* Input options are directly passed to Docker. Check [Docker Remote API documentation](https://docs.docker.com/reference/api/docker_remote_api/) for more details. | ||
* Input options are directly passed to Docker. Check [Docker Remote API documentation](https://docs.docker.com/engine/reference/api/docker_remote_api/) for more details. | ||
* Return values are unchanged from Docker, official Docker documentation will also apply to them. | ||
@@ -194,3 +194,3 @@ * Check the tests and examples folder for more examples. | ||
``` js | ||
docker.pull('myrepo/myname:tag', function (err, stream) { | ||
docker.pull('myrepo/myname:tag', function (err, stream) { | ||
// streaming output from pull... | ||
@@ -262,6 +262,5 @@ }); | ||
`docker pull ubuntu:latest` to prepare your system for the tests. | ||
* `docker pull ubuntu:latest` to prepare your system for the tests. | ||
* Tests are implemented using `mocha` and `chai`. Run them with `npm test`. | ||
Tests are implemented using `mocha` and `chai`. Run them with `npm test`. | ||
## Examples | ||
@@ -268,0 +267,0 @@ |
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
52876
1476
276