@econ-v1/ports 6.11.0 → 6.12.0

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.
@@ -8,6 +8,13 @@ export type CertificateTrustPlatform = "android" | "apple-mobile" | "apple-mac"
8
8
  * node answered and the browser refused the chain; `unreachable` means the
9
9
  * request never produced a response at all (DNS failure, connection refused,
10
10
  * a certificate the browser rejects before any HTTP exchange, or a timeout).
11
+ *
12
+ * NOTE: a browser rejecting the node's certificate chain lands in `unreachable`,
13
+ * NOT `untrusted` — the rejection happens before any HTTP exchange, so `fetch`
14
+ * rejects and the probe has no response to inspect. `untrusted` therefore means
15
+ * "TLS succeeded, the response was not ok". Callers that need to tell an
16
+ * untrusted CA from a dead node must supply an independent liveness signal; see
17
+ * `CertificateTrustService`'s `liveness` option.
11
18
  */
12
19
  export type CertificateTrustProbeResult = {
13
20
  readonly status: "trusted";
@@ -1 +1 @@
1
- {"version":3,"file":"certificate-trust.d.ts","sourceRoot":"","sources":["../../src/network/certificate-trust.js"],"names":[],"mappings":"uCAEc,SAAS,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS;;;;;;;;;;;0CAUrF;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GACxF;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE;;WAIpD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,2BAA2B,CAAC;;;YAIrF,MAAM,wBAAwB;;wCAEJ,eAAe"}
1
+ {"version":3,"file":"certificate-trust.d.ts","sourceRoot":"","sources":["../../src/network/certificate-trust.js"],"names":[],"mappings":"uCAEc,SAAS,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS;;;;;;;;;;;;;;;;;;0CAiBrF;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GACxF;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE;;WAIpD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,2BAA2B,CAAC;;;YAIrF,MAAM,wBAAwB;;wCAEJ,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@econ-v1/ports",
3
- "version": "6.11.0",
3
+ "version": "6.12.0",
4
4
  "description": "Platform-neutral ports for Node client applications",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "Node contributors",
@@ -10,6 +10,13 @@ export {};
10
10
  * node answered and the browser refused the chain; `unreachable` means the
11
11
  * request never produced a response at all (DNS failure, connection refused,
12
12
  * a certificate the browser rejects before any HTTP exchange, or a timeout).
13
+ *
14
+ * NOTE: a browser rejecting the node's certificate chain lands in `unreachable`,
15
+ * NOT `untrusted` — the rejection happens before any HTTP exchange, so `fetch`
16
+ * rejects and the probe has no response to inspect. `untrusted` therefore means
17
+ * "TLS succeeded, the response was not ok". Callers that need to tell an
18
+ * untrusted CA from a dead node must supply an independent liveness signal; see
19
+ * `CertificateTrustService`'s `liveness` option.
13
20
  * @typedef {| { readonly status: "trusted"; readonly origin: string; readonly fingerprint?: string }
14
21
  * | { readonly status: "untrusted"; readonly origin: string; readonly fingerprint?: string }
15
22
  * | { readonly status: "unreachable"; readonly origin: string }} CertificateTrustProbeResult