@econ-v1/domain 7.0.9 → 7.0.12
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport-manager.d.ts","sourceRoot":"","sources":["../../src/services/transport-manager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transport-manager.d.ts","sourceRoot":"","sources":["../../src/services/transport-manager.js"],"names":[],"mappings":"AAwUA,sFAAsF;AACtF,+CADY,cAAc,QAAkB,cAAc,GAAiB,OAAO,CAajF;AAkDD;;;GAGG;AACH,oDAHW,MAAM,GACJ,MAAM,CAoBlB;AAKD,iDAAiD;AACjD,oDADY,UAAU,GAAgB,OAAO,CAW5C;AAxZD,oYAAoY;AACpY,oIAAoI;AACpI,gGAAgG;AAChG,yFAAyF;AACzF,kKAAkK;AAClK,wHAAwH;AACxH,wFAAwF;AAExF;IAgCE,+CAA+C;IAC/C,qBADY,uBAAuB,EAWlC;IAED,gCAAgC;IAChC,aADc,cAAc,CAG3B;IAED,qDAAqD;IACrD,yBADc,uBAAuB,GAAG,SAAS,CAKhD;IAED;;;OAGG;IACH,oBAHW,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GAC7B,MAAM,IAAI,CAKtB;IAED;;;OAGG;IACH,8BAHW,SAAS,uBAAuB,EAAE,GAChC,IAAI,CAIhB;IAED;;;OAGG;IACH,kBAHW,uBAAuB,GACrB,OAAO,CAAC,cAAc,CAAC,CA0BnC;IAED;;;OAGG;IACH,oBAHW,mBAAmB,GACjB,IAAI,CAIhB;IAED,8CAA8C;IAC9C,wBADY,MAAM,GAAoB,IAAI,CAQzC;IAED,0EAA0E;IAC1E,0BADY,MAAM,eAAkB,MAAM,GAAwB,IAAI,CASrE;IAED,+DAA+D;IAC/D,qBADY,sBAAsB,GAAqB,IAAI,CAQ1D;IAED,sBAAsB;IACtB,SADc,IAAI,CAKjB;;CAqJF;wBApUa,OAAO,gBA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AAC,OAAO,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAA;CAAE;0BAC1F;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAA;CAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@econ-v1/domain",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.12",
|
|
4
4
|
"description": "Platform-neutral domain contracts and errors for Node clients",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Node contributors",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@econ-v1/ports": "7.0.
|
|
60
|
+
"@econ-v1/ports": "7.0.12"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
/** @typedef {import("./abort-signal.js").AbortSignalPort} AbortSignalPort */
|
|
10
10
|
/** @typedef {import("./runtime-globals.js").RuntimeUrl} RuntimeUrl */
|
|
11
11
|
|
|
12
|
+
import { TransportError } from "../errors/index.js";
|
|
12
13
|
import {
|
|
13
14
|
createRuntimeAbortController,
|
|
14
15
|
parseRuntimeUrl,
|
|
@@ -244,9 +245,21 @@ export class TransportManager {
|
|
|
244
245
|
return winner.client;
|
|
245
246
|
}
|
|
246
247
|
if (publishState) this.markOffline();
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
// Typed, not a bare `Error`. `ManagedHomeNodeClient#activateWhenConnected` funnels this
|
|
249
|
+
// through `normalizeTransportError`, which passes the three N2 seam types through and
|
|
250
|
+
// REPLACES anything else with a generic `TransportError("No home-node transport
|
|
251
|
+
// available")`. As a bare `Error` the per-candidate reasons assembled just above — the only
|
|
252
|
+
// account of why each tier failed — were computed here and discarded one layer up, leaving
|
|
253
|
+
// the reader a sentence with nothing to act on.
|
|
254
|
+
//
|
|
255
|
+
// `failures` is also carried structurally, not just interpolated: the message is for a
|
|
256
|
+
// human reading a card, the array is for anything that wants to tell "nothing to dial"
|
|
257
|
+
// (a discovery or pairing fault) apart from "every dial failed" (a reachability one).
|
|
258
|
+
throw new TransportError({
|
|
259
|
+
code: "offline",
|
|
260
|
+
details: { failures: [...failures] },
|
|
261
|
+
message: `No home-node transport available (${failures.join(", ") || "no candidates"})`,
|
|
262
|
+
});
|
|
250
263
|
}
|
|
251
264
|
|
|
252
265
|
/**
|