From b97d7965c3564feff8745e964df02cf428ff3888 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Tue, 20 Aug 2024 08:38:39 +0900 Subject: [PATCH] `makers setup && makers check` --- dist/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dist/index.js b/dist/index.js index 755ac71a..7dfcea51 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2252,6 +2252,7 @@ var require_decodeText = __commonJS({ return decoders.utf8; case "latin1": case "ascii": + // TODO: Make these a separate, strict decoder? case "us-ascii": case "iso-8859-1": case "iso8859-1": @@ -2951,6 +2952,7 @@ var require_basename = __commonJS({ for (var i2 = path.length - 1; i2 >= 0; --i2) { switch (path.charCodeAt(i2)) { case 47: + // '/' case 92: path = path.slice(i2 + 1); return path === ".." || path === "." ? "" : path; @@ -4185,7 +4187,21 @@ var require_util2 = __commonJS({ return referrerOrigin; } case "strict-origin": + // eslint-disable-line + /** + * 1. If referrerURL is a potentially trustworthy URL and + * request’s current URL is not a potentially trustworthy URL, + * then return no referrer. + * 2. Return referrerOrigin + */ case "no-referrer-when-downgrade": + // eslint-disable-line + /** + * 1. If referrerURL is a potentially trustworthy URL and + * request’s current URL is not a potentially trustworthy URL, + * then return no referrer. + * 2. Return referrerOrigin + */ default: return isNonPotentiallyTrustWorthy ? "no-referrer" : referrerOrigin; }