@econ-v1/domain 7.6.106 → 7.6.108
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":"AAmYA,sFAAsF;AACtF,+CADY,cAAc,QAAkB,cAAc,GAAiB,OAAO,CAsBjF;AA0ED;;;GAGG;AACH,oDAHW,MAAM,GACJ,MAAM,CAoBlB;AAKD,iDAAiD;AACjD,oDADY,UAAU,GAAgB,OAAO,CAW5C;AApfD,oYAAoY;AACpY,qKAAqK;AACrK,gGAAgG;AAChG,yFAAyF;AACzF,kKAAkK;AAClK,8GAA8G;AAC9G,wHAAwH;AACxH,wFAAwF;AAExF;IAqCE,+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;;;;;;OAMG;IACH,kBAFa,SAAS,uBAAuB,EAAE,CAI9C;IAED;;;OAGG;IACH,8BAHW,SAAS,uBAAuB,EAAE,GAChC,IAAI,CAIhB;IAED;;;OAGG;IACH,kBAHW,uBAAuB,GACrB,OAAO,CAAC,cAAc,CAAC,CA0BnC;IAED;;;;OAIG;IACH,oBAHW,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,GAAG,OAAO,CAAC,cAAc,EAAE;QAAC,MAAM,EAAE,WAAW,CAAA;KAAC,CAAC,GACzF,IAAI,CAMhB;IAED,8CAA8C;IAC9C,wBADY,MAAM,GAAoB,IAAI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AI,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;CAAE;0BACnD;IAAE,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;CAAE;wBACpI;IAAE,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;CAAE;0BAClF;IAAE,QAAQ,CAAC,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.6.
|
|
3
|
+
"version": "7.6.108",
|
|
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.6.
|
|
60
|
+
"@econ-v1/ports": "7.6.108"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -303,18 +303,21 @@ export class TransportManager {
|
|
|
303
303
|
if (publishState && this.#state.status !== "connected") this.markOffline();
|
|
304
304
|
// Typed, not a bare `Error`. `ManagedHomeNodeClient#activateWhenConnected` funnels this
|
|
305
305
|
// through `normalizeTransportError`, which passes the three N2 seam types through and
|
|
306
|
-
// REPLACES anything else with a generic `TransportError
|
|
307
|
-
//
|
|
308
|
-
// account of why each tier failed — were computed here and discarded one layer up, leaving
|
|
309
|
-
// the reader a sentence with nothing to act on.
|
|
306
|
+
// REPLACES anything else with a generic `TransportError`, discarding the per-candidate
|
|
307
|
+
// reasons assembled just above.
|
|
310
308
|
//
|
|
311
|
-
//
|
|
312
|
-
//
|
|
313
|
-
//
|
|
309
|
+
// The reasons travel in `details.failures`, not in the message. Stages print the message
|
|
310
|
+
// inside their own sentence ("The node did not list its agents (…)"), so a message that
|
|
311
|
+
// spelled out every rung put raw `lan-direct:…`/`wan-direct:…` text in front of the owner,
|
|
312
|
+
// once per LAN address (five times on a node with five). The array is for diagnostics and
|
|
313
|
+
// for anything that wants to tell "nothing to dial" (a discovery or pairing fault) apart
|
|
314
|
+
// from "every dial failed" (a reachability one); identical entries are collapsed.
|
|
314
315
|
throw new TransportError({
|
|
315
316
|
code: "offline",
|
|
316
|
-
details: { failures: [...failures] },
|
|
317
|
-
message:
|
|
317
|
+
details: { failures: [...new Set(failures)] },
|
|
318
|
+
message: failures.length === 0
|
|
319
|
+
? "This browser does not know an address for this node yet"
|
|
320
|
+
: "Could not reach this node right now",
|
|
318
321
|
});
|
|
319
322
|
}
|
|
320
323
|
|