diff --git a/dist/index.js b/dist/index.js index e4e6ce8..874ca56 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2386,6 +2386,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; @@ -3620,7 +3621,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; }