Comparing version 8.4.20 to 8.4.21-canary.0
@@ -260,3 +260,4 @@ import { c as createRequester } from "./_chunks-es/createRequester.js"; | ||
const tryCompressed = reqOpts.method !== "HEAD"; | ||
tryCompressed && !reqOpts.headers["accept-encoding"] && options.compress !== !1 && (reqOpts.headers["accept-encoding"] = "br, gzip, deflate"); | ||
tryCompressed && !reqOpts.headers["accept-encoding"] && options.compress !== !1 && (reqOpts.headers["accept-encoding"] = // Workaround Bun not supporting brotli: https://github.com/oven-sh/bun/issues/267 | ||
typeof Bun < "u" ? "gzip, deflate" : "br, gzip, deflate"); | ||
const finalOptions = context.applyMiddleware( | ||
@@ -263,0 +264,0 @@ "finalizeOptions", |
{ | ||
"name": "get-it", | ||
"version": "8.4.20", | ||
"version": "8.4.21-canary.0", | ||
"description": "Generic HTTP request library for node, browsers and workers", | ||
@@ -114,2 +114,3 @@ "keywords": [ | ||
"@sanity/semantic-release-preset": "^4.1.7", | ||
"@types/bun": "^1.0.12", | ||
"@types/debug": "^4.1.10", | ||
@@ -116,0 +117,0 @@ "@types/follow-redirects": "^1.14.4", |
@@ -197,3 +197,5 @@ import decompressResponse from 'decompress-response' | ||
if (tryCompressed && !reqOpts.headers['accept-encoding'] && options.compress !== false) { | ||
reqOpts.headers['accept-encoding'] = 'br, gzip, deflate' | ||
reqOpts.headers['accept-encoding'] = | ||
// Workaround Bun not supporting brotli: https://github.com/oven-sh/bun/issues/267 | ||
typeof Bun !== 'undefined' ? 'gzip, deflate' : 'br, gzip, deflate' | ||
} | ||
@@ -200,0 +202,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
559356
6287
29
1