@econ-v1/ports 7.6.86 → 7.6.88
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.
|
@@ -10,7 +10,8 @@ export type CertificateTrustPlatform = "android" | "apple-mobile" | "apple-mac"
|
|
|
10
10
|
* from DNS, connection, CORS, redirect or timeout failures. Existing callers use
|
|
11
11
|
* independent liveness evidence to infer `untrusted`; see
|
|
12
12
|
* `CertificateTrustService`'s `liveness` option. An HTTP error alone is never
|
|
13
|
-
* evidence of an untrusted certificate.
|
|
13
|
+
* evidence of an untrusted certificate. `failedFast` hints that fetch rejected
|
|
14
|
+
* before the probe timeout, without cancellation; it never proves distrust.
|
|
14
15
|
*/
|
|
15
16
|
export type CertificateTrustProbeResult = {
|
|
16
17
|
readonly status: "trusted";
|
|
@@ -23,6 +24,7 @@ export type CertificateTrustProbeResult = {
|
|
|
23
24
|
} | {
|
|
24
25
|
readonly status: "unreachable";
|
|
25
26
|
readonly origin: string;
|
|
27
|
+
readonly failedFast?: boolean;
|
|
26
28
|
};
|
|
27
29
|
export type CertificateTrustProbePort = {
|
|
28
30
|
probe: (origin: string, signal?: CancellationSignal) => Promise<CertificateTrustProbeResult>;
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;0CAcrF;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,CAAC;IAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE;;WAInF,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,2BAA2B,CAAC;;;YAIrF,MAAM,wBAAwB;;wCAEJ,eAAe"}
|
package/package.json
CHANGED
|
@@ -12,10 +12,11 @@ export {};
|
|
|
12
12
|
* from DNS, connection, CORS, redirect or timeout failures. Existing callers use
|
|
13
13
|
* independent liveness evidence to infer `untrusted`; see
|
|
14
14
|
* `CertificateTrustService`'s `liveness` option. An HTTP error alone is never
|
|
15
|
-
* evidence of an untrusted certificate.
|
|
15
|
+
* evidence of an untrusted certificate. `failedFast` hints that fetch rejected
|
|
16
|
+
* before the probe timeout, without cancellation; it never proves distrust.
|
|
16
17
|
* @typedef {| { readonly status: "trusted"; readonly origin: string; readonly fingerprint?: string }
|
|
17
18
|
* | { readonly status: "untrusted"; readonly origin: string; readonly fingerprint?: string }
|
|
18
|
-
* | { readonly status: "unreachable"; readonly origin: string }} CertificateTrustProbeResult
|
|
19
|
+
* | { readonly status: "unreachable"; readonly origin: string; readonly failedFast?: boolean }} CertificateTrustProbeResult
|
|
19
20
|
*/
|
|
20
21
|
/**
|
|
21
22
|
* @typedef {object} CertificateTrustProbePort
|