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

@runnable/loki

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@runnable/loki - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

32

base.js

@@ -45,3 +45,5 @@ /**

log: joi.object().unknown(),
timeout: joi.number()
timeout: joi.number(),
// extra tags passed to dogerode on each call
datadogTags: joi.object({}).unknown()
}).unknown().required().label('docker opts');

@@ -93,19 +95,20 @@

host: process.env.DATADOG_HOST,
port: process.env.DATADOG_PORT
port: process.env.DATADOG_PORT,
datadogTags: opts.datadogTags || {}
};
this.log.debug(datadogOpts, 'datadog options');
this.client = dogerode(new DriverClass(dockerodeOpts), datadogOpts);
this.client = BaseDockerClient.createClient(DriverClass, dockerodeOpts, datadogOpts);
}
/**
* Function to perform docker action on the Container
* @param {String} containerId - Container ID
* @param {String} action - Docker operation like `start`, `logs`, `exec` etc
* @param {Object} opts - options to pass for the Docker action
* @return {Promise}
*/
_createClass(BaseDockerClient, [{
key: '_containerAction',
_createClass(BaseDockerClient, [{
key: '_containerAction',
/**
* Function to perform docker action on the Container
* @param {String} containerId - Container ID
* @param {String} action - Docker operation like `start`, `logs`, `exec` etc
* @param {Object} opts - options to pass for the Docker action
* @return {Promise}
*/
value: function _containerAction(containerId, action, opts) {

@@ -138,2 +141,7 @@ var logData = {

}
}], [{
key: 'createClient',
value: function createClient(DriverClass, dockerodeOpts, datadogOpts) {
return dogerode(new DriverClass(dockerodeOpts), datadogOpts);
}
}]);

@@ -140,0 +148,0 @@

@@ -29,3 +29,3 @@ 'use strict';

opts.targetType = 'docker';
return _possibleConstructorReturn(this, Object.getPrototypeOf(Docker).call(this, Dockerode, opts));
return _possibleConstructorReturn(this, (Docker.__proto__ || Object.getPrototypeOf(Docker)).call(this, Dockerode, opts));
}

@@ -32,0 +32,0 @@

{
"name": "@runnable/loki",
"version": "3.1.0",
"version": "3.2.0",
"description": "Runnable Docker/Swarm library with batteries",

@@ -47,3 +47,3 @@ "main": "index.js",

"dockerode": "2.2.10",
"dogerode": "0.1.3",
"dogerode": "0.2.0",
"in-publish": "^2.0.0",

@@ -55,9 +55,9 @@ "joi": "^9.0.4",

"babel-cli": "^6.7.7",
"babel-eslint": "^6.0.4",
"babel-eslint": "^7.0.0",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.7.2",
"jsdoc": "^3.4.0",
"standard": "^7.0.1",
"standard": "8.2.0",
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"chai-as-promised": "^6.0.0",
"istanbul": "^0.4.3",

@@ -64,0 +64,0 @@ "mocha": "^3.0.0",

@@ -7,3 +7,3 @@ # loki

[![Dependency Status](https://david-dm.org/Runnable/loki.svg)](https://david-dm.org/Runnable/loki)
[![devDependency Status](https://david-dm.org/Runnable/loki/dev-status.svg)](https://david-dm.org/Runnable/loki/dev-status.svg)
[![devDependency Status](https://david-dm.org/Runnable/loki/dev-status.svg)](https://david-dm.org/Runnable/loki)

@@ -10,0 +10,0 @@ [![NPM](https://nodei.co/npm/@runnable/loki.svg?compact=true)](https://nodei.co/npm/@runnable/loki)

@@ -32,3 +32,3 @@ 'use strict';

opts.targetType = 'swarm';
return _possibleConstructorReturn(this, Object.getPrototypeOf(Swarm).call(this, SwarmedDockerode, opts));
return _possibleConstructorReturn(this, (Swarm.__proto__ || Object.getPrototypeOf(Swarm)).call(this, SwarmedDockerode, opts));
}

@@ -35,0 +35,0 @@

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