New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dockerode-process

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerode-process - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

examples/top_polling.js

12

docker_process_test.js

@@ -7,3 +7,4 @@ suite('docker process', function() {

teardown(function() {
return subject && subject.remove();
// attempt a remove but don't fail if it does
return subject && subject.remove().then(null, function() {});
});

@@ -24,5 +25,13 @@

test('once emitted', function(done) {
var created = false;
subject.once('container', function(container) {
created = true;
assert.ok(subject.container, 'has container');
assert.equal(subject.container, container);
});
subject.once('container start', function(container) {
assert.ok(created);
assert.equal(subject.container, container);
done();

@@ -35,3 +44,2 @@ });

suite('#run - with pull', function() {

@@ -38,0 +46,0 @@ setup(function() {

@@ -93,2 +93,3 @@ var EventEmitter = require('events').EventEmitter;

function attachedContainer(stream) {
this.emit('container start', this.container);
debug('attached');

@@ -95,0 +96,0 @@ connectStreams(this, container, stream);

2

package.json
{
"name": "dockerode-process",
"version": "0.2.0",
"version": "0.3.0",
"description": "ChildProcess like interface for docker containers",

@@ -5,0 +5,0 @@ "main": "docker_process.js",

@@ -33,2 +33,10 @@

### event: `container`
Emitted once the container is created (not running yet)
### event: `container start`
Emitted once the container is started
### `dockerProc.stdout`

@@ -35,0 +43,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