@mark1russell7/harness 0.11.12 → 0.11.14

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/build/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { J as Subject, _ as ImageSource, i as ClientImage, r as Client } from "./cell-yNKJmsCj.js";
1
+ import { J as Subject, _ as ImageSource, i as ClientImage, r as Client } from "./cell-COlAmUZ-.js";
2
2
  import { z } from "zod";
3
3
  //#region src/schema.d.ts
4
4
  /**
@@ -446,7 +446,8 @@ public final class ClientHikari {
446
446
  for (Map.Entry<String, String> each : options.entrySet()) properties.setProperty(each.getKey(), each.getValue());
447
447
  config = new HikariConfig(properties);
448
448
  config.setJdbcUrl("jdbc:postgresql://" + host + ":" + port + "/postgres");
449
- config.setUsername("postgres");
449
+ // the user of a cell, when it gives one: Supavisor routes a client by its user, <db_user>.<tenant>
450
+ if (!options.containsKey("username")) config.setUsername("postgres");
450
451
  config.setPoolName("cell");
451
452
 
452
453
  Runtime.getRuntime().addShutdownHook(new Thread(() -> {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/harness",
4
- "version": "0.11.12",
4
+ "version": "0.11.14",
5
5
  "description": "A fault-injection harness for connection timers: a cell runs a client against a stock target in Docker, through a topology of routers and proxies, a replicated group under Sentinels or a replica set, injects a fault, measures the kernel's own records and judges a prediction. HTTP clients of Go, Node and undici race the keep-alive of a Node server, and the MongoDB driver meets the faults of a replica set. The WebSocket client of @procedures/client drops a silent connection on its own heartbeat, and the harness times that detection and the reconnect from the program's lines and the kernel's stamps.",
6
6
  "keywords": [
7
7
  "fault-injection",