Socket
Socket
Sign inDemoInstall

get-it

Package Overview
Dependencies
Maintainers
48
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-it - npm Package Compare versions

Comparing version 8.4.20 to 8.4.21-canary.0

3

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc