+7
-4
@@ -17,6 +17,8 @@ var util = require('./util'); | ||
| * Inspect | ||
| * @param {Object} opts Inspect options, only 'manifests' (optional) | ||
| * @param {Function} callback Callback, if specified Docker will be queried. | ||
| * @return {Object} Name only if callback isn't specified. | ||
| */ | ||
| Image.prototype.inspect = function(callback) { | ||
| Image.prototype.inspect = function(opts, callback) { | ||
| var args = util.processArgs(opts, callback); | ||
| var self = this; | ||
@@ -27,2 +29,3 @@ | ||
| method: 'GET', | ||
| options: args.opts, | ||
| statusCodes: { | ||
@@ -35,3 +38,3 @@ 200: true, | ||
| if(callback === undefined) { | ||
| if(args.callback === undefined) { | ||
| return new this.modem.Promise(function(resolve, reject) { | ||
@@ -47,4 +50,4 @@ self.modem.dial(opts, function(err, data) { | ||
| this.modem.dial(opts, function(err, data) { | ||
| if (err) return callback(err, data); | ||
| callback(err, data); | ||
| if (err) return args.callback(err, data); | ||
| args.callback(err, data); | ||
| }); | ||
@@ -51,0 +54,0 @@ } |
+1
-1
| { | ||
| "name": "dockerode", | ||
| "description": "Docker Remote API module.", | ||
| "version": "4.0.5", | ||
| "version": "4.0.6", | ||
| "author": "Pedro Dias <petermdias@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
+1
-1
@@ -456,3 +456,3 @@ # dockerode | ||
| - image.inspect() - [Docker API Endpoint](https://docs.docker.com/engine/api/v1.37/#operation/ImageInspect) | ||
| - image.inspect(options) - [Docker API Endpoint](https://docs.docker.com/engine/api/v1.48/#tag/Image/operation/ImageInspect) | ||
| - image.history() - [Docker API Endpoint](https://docs.docker.com/engine/api/v1.37/#operation/ImageHistory) | ||
@@ -459,0 +459,0 @@ - image.push(options, callback, auth) - [Docker API Endpoint](https://docs.docker.com/engine/api/v1.37/#operation/ImagePush) |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
153641
0.12%4425
0.07%