Comparing version 3.3.4 to 3.3.5
@@ -30,3 +30,7 @@ var EventEmitter = require('events').EventEmitter, | ||
this.modem = new Modem(opts); | ||
if (opts && opts.modem) { | ||
this.modem = opts.modem; | ||
} else { | ||
this.modem = new Modem(opts); | ||
} | ||
this.modem.Promise = plibrary; | ||
@@ -33,0 +37,0 @@ }; |
@@ -132,3 +132,3 @@ var util = require('./util'); | ||
this.modem.dial(optsf, function(err, data) { | ||
if (err) return callback(err, data); | ||
if (err) return args.callback(err, data); | ||
args.callback(err, data); | ||
@@ -135,0 +135,0 @@ }); |
@@ -28,3 +28,3 @@ var util = require('./util'); | ||
method: 'GET', | ||
abortSignal: args.abortSignal, | ||
abortSignal: args.opts.abortSignal, | ||
statusCodes: { | ||
@@ -31,0 +31,0 @@ 200: true, |
{ | ||
"name": "dockerode", | ||
"description": "Docker Remote API module.", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"author": "Pedro Dias <petermdias@gmail.com>", | ||
@@ -26,7 +26,7 @@ "maintainers": [ | ||
"memorystream": "~0.3.0", | ||
"mocha": "^7.1.0" | ||
"mocha": "^10.2.0" | ||
}, | ||
"main": "./lib/docker", | ||
"scripts": { | ||
"test": "./node_modules/mocha/bin/mocha -R spec --exit" | ||
"test": "./node_modules/mocha/bin/mocha.js -R spec --exit" | ||
}, | ||
@@ -33,0 +33,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
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
148536
22
4308