@@ -2405,6 +2405,7 @@ var require_decodeText = __commonJS({
24052405 return decoders.utf8;
24062406 case 'latin1':
24072407 case 'ascii':
2408+ // TODO: Make these a separate, strict decoder?
24082409 case 'us-ascii':
24092410 case 'iso-8859-1':
24102411 case 'iso8859-1':
@@ -3095,6 +3096,7 @@ var require_basename = __commonJS({
30953096 for (var i = path.length - 1; i >= 0; --i) {
30963097 switch (path.charCodeAt(i)) {
30973098 case 47:
3099+ // '/'
30983100 case 92:
30993101 path = path.slice(i + 1);
31003102 return path === '..' || path === '.' ? '' : path;
@@ -4242,7 +4244,21 @@ var require_util2 = __commonJS({
42424244 return referrerOrigin;
42434245 }
42444246 case 'strict-origin':
4247+ // eslint-disable-line
4248+ /**
4249+ * 1. If referrerURL is a potentially trustworthy URL and
4250+ * request’s current URL is not a potentially trustworthy URL,
4251+ * then return no referrer.
4252+ * 2. Return referrerOrigin
4253+ */
42454254 case 'no-referrer-when-downgrade':
4255+ // eslint-disable-line
4256+ /**
4257+ * 1. If referrerURL is a potentially trustworthy URL and
4258+ * request’s current URL is not a potentially trustworthy URL,
4259+ * then return no referrer.
4260+ * 2. Return referrerOrigin
4261+ */
42464262 default:
42474263 return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin;
42484264 }
@@ -23887,7 +23903,21 @@ var require_util9 = __commonJS({
2388723903 return referrerOrigin;
2388823904 }
2388923905 case 'strict-origin':
23906+ // eslint-disable-line
23907+ /**
23908+ * 1. If referrerURL is a potentially trustworthy URL and
23909+ * request’s current URL is not a potentially trustworthy URL,
23910+ * then return no referrer.
23911+ * 2. Return referrerOrigin
23912+ */
2389023913 case 'no-referrer-when-downgrade':
23914+ // eslint-disable-line
23915+ /**
23916+ * 1. If referrerURL is a potentially trustworthy URL and
23917+ * request’s current URL is not a potentially trustworthy URL,
23918+ * then return no referrer.
23919+ * 2. Return referrerOrigin
23920+ */
2389123921 default:
2389223922 return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin;
2389323923 }
0 commit comments