From 99b6f92e9113be8ac3021068bf0d4789c39317ea Mon Sep 17 00:00:00 2001 From: Yu Tsuno Date: Tue, 30 Jun 2026 12:27:56 +0100 Subject: [PATCH 1/2] feat: Add custom metric for EVP well-known file parsing --- dist/well-known.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dist/well-known.js b/dist/well-known.js index 0393edb..d03c689 100644 --- a/dist/well-known.js +++ b/dist/well-known.js @@ -229,6 +229,23 @@ return Promise.all([ return result; }); }), + // EVP + parseResponse('/.well-known/email-verification', r => { + return r.text().then(text => { + let result = { + issuance_endpoint: null, + signing_alg_values_supported: [] + }; + try { + const data = JSON.parse(text); + result.issuance_endpoint = data.issuance_endpoint || null; + result.signing_alg_values_supported = Array.isArray(data.signing_alg_values_supported) ? data.signing_alg_values_supported : []; + } catch (e) { + // Failed to parse JSON + } + return result; + }); + }), // security parseResponse('/robots.txt', r => { return r.text().then(text => { From d2f70ea6bb90e4d61683c100d174a236efab1aaa Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Tue, 30 Jun 2026 12:40:32 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Barry Pollard --- dist/well-known.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/well-known.js b/dist/well-known.js index d03c689..86de465 100644 --- a/dist/well-known.js +++ b/dist/well-known.js @@ -229,7 +229,7 @@ return Promise.all([ return result; }); }), - // EVP + // Email Verification Protocol (EVP) - https://github.com/WICG/email-verification parseResponse('/.well-known/email-verification', r => { return r.text().then(text => { let result = { @@ -246,7 +246,6 @@ return Promise.all([ return result; }); }), - // security parseResponse('/robots.txt', r => { return r.text().then(text => { let data = { 'matched_disallows': {} };