screenreader-speech-capture 0.0.1-preview.1 → 0.0.1-preview.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/cli.mjs +9 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { TextDecoder as TextDecoder$1 } from "node:util";
|
|
|
4
4
|
import { performance } from "node:perf_hooks";
|
|
5
5
|
import { monotonicFactory } from "ulid";
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.0.1-preview.
|
|
7
|
+
var version = "0.0.1-preview.2";
|
|
8
8
|
// src/adapters/in/tcp/text-to-socket-parser.ts
|
|
9
9
|
const LF = 10;
|
|
10
10
|
const CR = 13;
|
|
@@ -244,8 +244,15 @@ var BridgeLog = class {
|
|
|
244
244
|
debug: log("debug")
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
+
/** Writes an INFO line whatever the level is (for the startup line). */
|
|
248
|
+
always(prefix, message) {
|
|
249
|
+
this.emit(prefix, "info", message);
|
|
250
|
+
}
|
|
247
251
|
write(prefix, level, message) {
|
|
248
252
|
if (LEVEL_RANK[level] > LEVEL_RANK[this.level]) return;
|
|
253
|
+
this.emit(prefix, level, message);
|
|
254
|
+
}
|
|
255
|
+
emit(prefix, level, message) {
|
|
249
256
|
const time = this.now();
|
|
250
257
|
for (const sink of this.sinks) for (const line of formatLogLines(prefix, level, time, message, sink.colour)) sink.write(line);
|
|
251
258
|
}
|
|
@@ -605,7 +612,7 @@ async function startBridge(options) {
|
|
|
605
612
|
const { config, version } = options;
|
|
606
613
|
const log = options.log ?? new BridgeLog(config.log.level, [consoleSink()]);
|
|
607
614
|
const bridgeLogger = log.for("bridge");
|
|
608
|
-
|
|
615
|
+
log.always("bridge", `starting, version ${version}, log level ${config.log.level}` + (config.log.level === "debug" ? "" : " (set SR_SPEECH_LOG_LEVEL=debug to see the speech)"));
|
|
609
616
|
const clock = options.clock ?? new SystemClock();
|
|
610
617
|
const ids = new UlidGenerator();
|
|
611
618
|
const repository = new RingBufferRepository(config.buffer.maxEntries);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screenreader-speech-capture",
|
|
3
|
-
"version": "0.0.1-preview.
|
|
3
|
+
"version": "0.0.1-preview.2",
|
|
4
4
|
"description": "Capture what a screen reader says (JAWS / NVDA via a SAPI 5 socket voice) and expose it over HTTP for automated tests.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|