node-docker-api
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -161,5 +161,3 @@ 'use strict'; | ||
return reject(err); | ||
if (!result.Services || !result.Services.length) | ||
return resolve([]); | ||
resolve(result.Services.map((conf) => { | ||
resolve(result.map((conf) => { | ||
const service = new Service(this.modem, conf.ID); | ||
@@ -166,0 +164,0 @@ service.data = conf; |
{ | ||
"name": "node-docker-api", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "Docker Remote API driver for node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/docker", |
@@ -175,4 +175,3 @@ 'use strict' | ||
if (err) return reject(err) | ||
if (!result.Services || !result.Services.length) return resolve([]) | ||
resolve(result.Services.map((conf) => { | ||
resolve(result.map((conf) => { | ||
const service = new Service(this.modem, conf.ID) | ||
@@ -179,0 +178,0 @@ service.data = conf |
@@ -85,4 +85,6 @@ import test from 'ava' | ||
test('list-services', async t => { | ||
const service = await createService() | ||
const services = await docker.service.list() | ||
t.is(services.constructor, Array) | ||
t.not(services.length, 0) | ||
}) | ||
@@ -89,0 +91,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
390907
7311