abstract-confine-runtime
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -1,3 +0,6 @@ | ||
module.exports = class AbstractConfineRuntime { | ||
const EventEmitter = require('events') | ||
module.exports = class AbstractConfineRuntime extends EventEmitter { | ||
constructor (opts = {}) { | ||
super() | ||
this.source = opts.source | ||
@@ -4,0 +7,0 @@ this.ipc = opts.ipc |
{ | ||
"name": "abstract-confine-runtime", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "The base class for confine runtimes. ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,2 +23,7 @@ # Abstract Confine Runtime | ||
// do any init that's needed prior to syscalls are restricted | ||
// be sure to emit a 'closed' event if possible | ||
this.myCustomProcess.on('closed', () => { | ||
this.emit('closed', exitCode) // include unix-style exit code as first param | ||
}) | ||
} | ||
@@ -25,0 +30,0 @@ |
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
1890
16
46