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.
- package/dist/types/device.js +2 -2
- package/dist/types/process.d.ts +0 -1
- package/dist/types/process.js +0 -5
- package/package.json +1 -1
package/dist/types/device.js
CHANGED
|
@@ -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
|
}
|
package/dist/types/process.d.ts
CHANGED
package/dist/types/process.js
CHANGED
|
@@ -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;
|