got
Advanced tools
Comparing version 12.2.0 to 12.3.0
@@ -131,2 +131,6 @@ import { EventEmitter } from 'node:events'; | ||
}; | ||
promise.off = (event, fn) => { | ||
emitter.off(event, fn); | ||
return promise; | ||
}; | ||
const shortcut = (responseType) => { | ||
@@ -133,0 +137,0 @@ const newPromise = (async () => { |
@@ -90,2 +90,3 @@ /// <reference types="node" /> | ||
once: GotEventFunction<T>; | ||
off: GotEventFunction<T>; | ||
} | ||
@@ -92,0 +93,0 @@ export declare type CacheableRequestFunction = (options: string | URL | NativeRequestOptions, cb?: (response: ServerResponse | ResponseLike) => void) => CacheableRequest.Emitter; |
{ | ||
"name": "got", | ||
"version": "12.2.0", | ||
"version": "12.3.0", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -49,37 +49,2 @@ <div align="center"> | ||
<br> | ||
<a href="https://neverinstall.com/spaces/devtools?utm_source=github&utm_medium=sponsor&utm_campaign=sindre#gh-light-mode-only"> | ||
<div> | ||
<img src="https://sindresorhus.com/assets/thanks/neverinstall-logo-light.svg" width="200" alt="neverinstall"> | ||
</div> | ||
<br> | ||
<b>All your favourite IDE's now available on the cloud</b> | ||
<div> | ||
<sub> | ||
Neverinstall gives you an uninterrupted development experience and improved accessibility, | ||
<br> | ||
allowing you to code faster, better and on-the-go on your favourite IDEs like | ||
<br> | ||
Android Studio, VS Code, Jupyter and PyCharm using your browser. | ||
</sub> | ||
</div> | ||
</a> | ||
<a href="https://neverinstall.com/spaces/devtools?utm_source=github&utm_medium=sponsor&utm_campaign=sindre#gh-dark-mode-only"> | ||
<div> | ||
<img src="https://sindresorhus.com/assets/thanks/neverinstall-logo-dark.svg" width="200" alt="neverinstall"> | ||
</div> | ||
<br> | ||
<b>All your favourite IDE's now available on the cloud</b> | ||
<div> | ||
<sub> | ||
Neverinstall gives you an uninterrupted development experience and improved accessibility, | ||
<br> | ||
allowing you to code faster, better and on-the-go on your favourite IDEs like | ||
<br> | ||
Android Studio, VS Code, Jupyter and PyCharm using your browser. | ||
</sub> | ||
</div> | ||
</a> | ||
<br> | ||
<br> | ||
<br> | ||
<a href="https://www.useanvil.com/?utm_source=sindresorhus#gh-light-mode-only"> | ||
@@ -86,0 +51,0 @@ <div> |
5466
248506
558