greybel-mock-environment 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -253,7 +253,8 @@ var Device = /** @class */ (function () {
253
253
  owner: options.owner,
254
254
  pid: pid,
255
255
  command: options.command,
256
- protected: options.protected
256
+ protected: options.protected,
257
+ ref: options.ref
257
258
  });
258
259
  this.processes.set(pid, process);
259
260
  return pid;
@@ -262,7 +263,6 @@ var Device = /** @class */ (function () {
262
263
  if (this.processes.has(pid)) {
263
264
  var process_4 = this.processes.get(pid);
264
265
  if (!process_4.protected) {
265
- process_4.kill();
266
266
  this.processes.delete(pid);
267
267
  return true;
268
268
  }
@@ -18,5 +18,4 @@ export declare class Process {
18
18
  readonly protected: boolean;
19
19
  readonly ref: ProcessRef | null;
20
20
  constructor(options: ProcessOptions);
21
- kill(): void;
22
21
  }
@@ -13,11 +13,6 @@ var Process = /** @class */ (function () {
13
13
  this.protected = options.protected;
14
14
  this.ref = (_a = options.ref) !== null && _a !== void 0 ? _a : null;
15
15
  }
16
- Process.prototype.kill = function () {
17
- if (this.ref !== null) {
18
- this.ref.exit();
19
- }
20
- };
21
16
  return Process;
22
17
  }());
23
18
  exports.Process = Process;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",