Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
Maintainers
2
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

got - npm Package Compare versions

Comparing version 14.4.2 to 14.4.3

4

dist/source/core/index.js

@@ -735,3 +735,3 @@ import process from 'node:process';

}
else if (event === 'abort') {
else if (event === 'abort' || event === 'destroy') {
// The empty catch is needed here in case when

@@ -742,3 +742,3 @@ // it rejects before it's `await`ed in `_makeRequest`.

const request = (await result);
request.once('abort', handler);
request.once(event, handler);
}

@@ -745,0 +745,0 @@ catch { }

@@ -1134,3 +1134,3 @@ import type { Buffer } from 'node:buffer';

prefixUrl: string | URL;
body: string | Readable | Buffer | Generator<unknown, any, unknown> | AsyncGenerator<unknown, any, unknown> | FormDataLike | undefined;
body: string | Readable | Buffer | Generator<unknown, any, any> | AsyncGenerator<unknown, any, any> | FormDataLike | undefined;
form: Record<string, any> | undefined;

@@ -1137,0 +1137,0 @@ url: string | URL | undefined;

@@ -24,3 +24,3 @@ import type { Buffer } from 'node:buffer';

This is hopefully a temporary limitation, see [lukechilds/cacheable-request#86](https://github.com/lukechilds/cacheable-request/issues/86).
This is hopefully a temporary limitation, see [lukechilds/cacheable-request#86](https://web.archive.org/web/20220804165050/https://github.com/jaredwray/cacheable-request/issues/86).

@@ -27,0 +27,0 @@ __Note__: Not available when the response is cached.

@@ -0,1 +1,2 @@

import { setTimeout as delay } from 'node:timers/promises';
import is, { assert } from '@sindresorhus/is';

@@ -5,6 +6,2 @@ import asPromise from './as-promise/index.js';

import Options from './core/options.js';
// The `delay` package weighs 10KB (!)
const delay = async (ms) => new Promise(resolve => {
setTimeout(resolve, ms);
});
const isGotInstance = (value) => is.function(value);

@@ -11,0 +8,0 @@ const aliases = [

{
"name": "got",
"version": "14.4.2",
"version": "14.4.3",
"description": "Human-friendly and powerful HTTP request library for Node.js",

@@ -51,3 +51,3 @@ "license": "MIT",

"dependencies": {
"@sindresorhus/is": "^7.0.0",
"@sindresorhus/is": "^7.0.1",
"@szmarczak/http-timer": "^5.0.1",

@@ -62,11 +62,11 @@ "cacheable-lookup": "^7.0.0",

"responselike": "^3.0.0",
"type-fest": "^4.19.0"
"type-fest": "^4.26.1"
},
"devDependencies": {
"@hapi/bourne": "^3.0.0",
"@sindresorhus/tsconfig": "^5.0.0",
"@sindresorhus/tsconfig": "^6.0.0",
"@sinonjs/fake-timers": "^11.2.2",
"@types/benchmark": "^2.1.5",
"@types/express": "^4.17.21",
"@types/node": "^20.12.12",
"@types/express": "^5.0.0",
"@types/node": "^22.7.5",
"@types/pem": "^1.14.4",

@@ -78,19 +78,19 @@ "@types/readable-stream": "^4.0.14",

"ava": "^5.3.1",
"axios": "^1.6.8",
"axios": "^1.7.7",
"benchmark": "^2.1.4",
"bluebird": "^3.7.2",
"body-parser": "^1.20.2",
"body-parser": "^1.20.3",
"create-cert": "^1.0.6",
"create-test-server": "^3.0.1",
"del-cli": "^5.1.0",
"del-cli": "^6.0.0",
"delay": "^6.0.0",
"expect-type": "^0.19.0",
"express": "^4.19.2",
"expect-type": "^1.0.0",
"express": "^4.21.1",
"form-data": "^4.0.0",
"formdata-node": "^6.0.3",
"get-stream": "^9.0.1",
"nock": "^13.5.4",
"nock": "^13.5.5",
"node-fetch": "^3.3.2",
"np": "^10.0.5",
"nyc": "^15.1.0",
"nyc": "^17.1.0",
"p-event": "^6.0.1",

@@ -101,3 +101,3 @@ "pem": "^1.14.8",

"request": "^2.88.2",
"sinon": "^18.0.0",
"sinon": "^19.0.2",
"slow-stream": "0.0.4",

@@ -107,4 +107,4 @@ "tempy": "^3.1.0",

"tough-cookie": "^4.1.4",
"tsx": "^4.10.4",
"typescript": "^5.4.5",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"xo": "^0.56.0"

@@ -111,0 +111,0 @@ },

@@ -8,2 +8,4 @@ <div align="center">

<br>
<br>
<hr>
<p>

@@ -17,51 +19,36 @@ <p>

<br>
<a href="https://retool.com/?utm_campaign=sindresorhus">
<img src="https://sindresorhus.com/assets/thanks/retool-logo.svg" width="220">
<a href="https://www.fame.fi#gh-light-mode-only">
<img src="https://sindresorhus.com/assets/thanks/fame-logo-light.svg" width="200" alt="Fame Helsinki">
</a>
<a href="https://www.fame.fi#gh-dark-mode-only">
<img src="https://sindresorhus.com/assets/thanks/fame-logo-dark.svg" width="200" alt="Fame Helsinki">
</a>
<br>
<br>
<br>
<a href="https://strapi.io/?ref=sindresorhus">
<div>
<img src="https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png" width="200" alt="Strapi">
</div>
<b>Strapi is the leading open-source headless CMS.</b>
<div>
<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>
</div>
</a>
<br>
<br>
<br>
<a href="https://serpapi.com#gh-light-mode-only">
<a href="https://encore.dev?utm_campaign=github_repo&utm_medium=referral&utm_content=sindre&utm_source=github">
<div>
<img src="https://sindresorhus.com/assets/thanks/serpapi-logo-light.svg" width="130" alt="SerpApi">
<picture>
<source width="230" media="(prefers-color-scheme: dark)" srcset="https://sindresorhus.com/assets/thanks/encore-logo-dark.svg">
<source width="230" media="(prefers-color-scheme: light)" srcset="https://sindresorhus.com/assets/thanks/encore-logo-light.svg">
<img width="230" src="https://sindresorhus.com/assets/thanks/encore-logo-light.svg" alt="Encore logo">
</picture>
</div>
<b>API to get search engine results with ease.</b>
</a>
<a href="https://serpapi.com#gh-dark-mode-only">
<b>The development platform for building type-safe distributed systems</b>
<div>
<img src="https://sindresorhus.com/assets/thanks/serpapi-logo-dark.svg" width="120" alt="SerpApi">
<sup>End-to-end tooling from local development to automated DevOps and infrastructure in your AWS/GCP.</sup>
</div>
<b>API to get search engine results with ease.</b>
<br>
<br>
</a>
<br>
<br>
<br>
<br>
<br>
<a href="https://www.fame.fi#gh-light-mode-only">
<img src="https://sindresorhus.com/assets/thanks/fame-logo-light.svg" width="200" alt="Fame Helsinki">
</a>
<a href="https://www.fame.fi#gh-dark-mode-only">
<img src="https://sindresorhus.com/assets/thanks/fame-logo-dark.svg" width="200" alt="Fame Helsinki">
</a>
<br>
<br>
<br>
<br>
<br>
</p>
<hr>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>

@@ -190,3 +177,3 @@

|-----------------------|:-------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|
| HTTP/2 support | :heavy_check_mark:¹ | :x: | :x: | :x: | :heavy_check_mark:\*\* |
| HTTP/2 support | :heavy_check_mark:¹ | :x: | :heavy_check_mark: | :x: | :heavy_check_mark:\*\* |
| Browser support | :x: | :heavy_check_mark:\* | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |

@@ -198,3 +185,3 @@ | Promise API | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |

| RFC compliant caching | :heavy_check_mark: | :x: | :x: | :x: | :x: |
| Cookies (out-of-the-box) | :heavy_check_mark: | :x: | :x: | :x: | :x: |
| Cookies (out-of-the-box) | :heavy_check_mark: | :x: | :x: | :x: | :x: |
| Follows redirects | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |

@@ -201,0 +188,0 @@ | Retries on failure | :heavy_check_mark: | :x: | :heavy_check_mark: | :x: | :heavy_check_mark: |

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