Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-docker-api

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-docker-api - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

4

lib/service.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc