Socket
Socket
Sign inDemoInstall

@types/got

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/got - npm Package Compare versions

Comparing version 7.1.1 to 7.1.2

14

got/index.d.ts
// Type definitions for got 7.1
// Project: https://github.com/sindresorhus/got#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Linus Unnebäck <https://github.com/LinusU>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,2 +10,3 @@ // TypeScript Version: 2.2

import { Url } from 'url';
import * as http from 'http';

@@ -83,3 +85,3 @@ import * as nodeStream from 'stream';

addListener(event: 'response', listener: (res: http.IncomingMessage) => void): this;
addListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null>) => void): this;
addListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null> & Url) => void): this;
addListener(event: 'error', listener: (error: GotError, body?: any, res?: http.IncomingMessage) => void): this;

@@ -89,3 +91,3 @@

on(event: 'response', listener: (res: http.IncomingMessage) => void): this;
on(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null>) => void): this;
on(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null> & Url) => void): this;
on(event: 'error', listener: (error: GotError, body?: any, res?: http.IncomingMessage) => void): this;

@@ -95,3 +97,3 @@

once(event: 'response', listener: (res: http.IncomingMessage) => void): this;
once(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null>) => void): this;
once(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null> & Url) => void): this;
once(event: 'error', listener: (error: GotError, body?: any, res?: http.IncomingMessage) => void): this;

@@ -101,3 +103,3 @@

prependListener(event: 'response', listener: (res: http.IncomingMessage) => void): this;
prependListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null>) => void): this;
prependListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null> & Url) => void): this;
prependListener(event: 'error', listener: (error: GotError, body?: any, res?: http.IncomingMessage) => void): this;

@@ -107,3 +109,3 @@

prependOnceListener(event: 'response', listener: (res: http.IncomingMessage) => void): this;
prependOnceListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null>) => void): this;
prependOnceListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null> & Url) => void): this;
prependOnceListener(event: 'error', listener: (error: GotError, body?: any, res?: http.IncomingMessage) => void): this;

@@ -113,3 +115,3 @@

removeListener(event: 'response', listener: (res: http.IncomingMessage) => void): this;
removeListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null>) => void): this;
removeListener(event: 'redirect', listener: (res: http.IncomingMessage, nextOptions: GotOptions<string | null> & Url) => void): this;
removeListener(event: 'error', listener: (error: GotError, body?: any, res?: http.IncomingMessage) => void): this;

@@ -116,0 +118,0 @@ }

{
"name": "@types/got",
"version": "7.1.1",
"version": "7.1.2",
"description": "TypeScript definitions for got",

@@ -10,2 +10,6 @@ "license": "MIT",

"url": "https://github.com/BendingBender"
},
{
"name": "Linus Unnebäck",
"url": "https://github.com/LinusU"
}

@@ -22,5 +26,4 @@ ],

},
"peerDependencies": {},
"typesPublisherContentHash": "990882d35d40d447eee10d2e2d2fd4e07a1b7a91fc2d1a531189504bf944ffa7",
"typesPublisherContentHash": "3458de1e04a9e9e405f3f01f4ccf0e025190544c6acaf13d4886c439d076f162",
"typeScriptVersion": "2.2"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Tue, 08 Aug 2017 21:39:34 GMT
* Dependencies: http, stream, node
* Last updated: Mon, 21 Aug 2017 21:49:18 GMT
* Dependencies: url, http, stream, node
* Global values: none
# Credits
These definitions were written by BendingBender <https://github.com/BendingBender>.
These definitions were written by BendingBender <https://github.com/BendingBender>, Linus Unnebäck <https://github.com/LinusU>.
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