@opvious/stl-utils
Advanced tools
+5
-3
| import { assert, check, errors } from '@opvious/stl-errors'; | ||
| import net from 'net'; | ||
| import { running } from './environment.js'; | ||
| import { TypedEmitter, waitForEvent, withEmitter } from './events.js'; | ||
@@ -65,5 +66,6 @@ import { resolvable } from './functions.js'; | ||
| Object.defineProperty(this, isBindableMarker, { value: true }); | ||
| this.sendProcessEvent = opts?.emitProcessEvents | ||
| ? check.isPresent(process.send) | ||
| : undefined; | ||
| this.sendProcessEvent = | ||
| (opts?.emitProcessEvents ?? (!running.inTest() && process.send)) | ||
| ? check.isPresent(process.send) | ||
| : undefined; | ||
| } | ||
@@ -70,0 +72,0 @@ updateStatus(next, prev) { |
+2
-2
| { | ||
| "name": "@opvious/stl-utils", | ||
| "version": "0.27.1", | ||
| "version": "0.27.2", | ||
| "repository": "github:opvious/stl.ts", | ||
@@ -36,3 +36,3 @@ "description": "Standard utilities", | ||
| "untruncate-json": "^0.0.1", | ||
| "@opvious/stl-errors": "0.27.1" | ||
| "@opvious/stl-errors": "0.27.2" | ||
| }, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
106591
0.1%2600
0.08%+ Added
- Removed
Updated