Socket
Socket
Sign inDemoInstall

@types/needle

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/needle - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

72

needle/index.d.ts

@@ -21,3 +21,3 @@ // Type definitions for needle 2.5

bytes: number;
cookies?: Cookies;
cookies?: Cookies | undefined;
}

@@ -46,7 +46,7 @@

*/
open_timeout?: number;
open_timeout?: number | undefined;
/**
* Alias for open_timeout
*/
timeout?: RequestOptions['open_timeout'];
timeout?: RequestOptions['open_timeout'] | undefined;

@@ -57,3 +57,3 @@ /**

*/
response_timeout?: number;
response_timeout?: number | undefined;

@@ -64,11 +64,11 @@ /**

*/
read_timeout?: number;
read_timeout?: number | undefined;
/**
* Number of redirects to follow. Defaults to 0.
*/
follow_max?: number;
follow_max?: number | undefined;
/**
* Alias for follow_max
*/
follow?: RequestOptions['follow_max'];
follow?: RequestOptions['follow_max'] | undefined;

@@ -79,3 +79,3 @@ /**

*/
multipart?: boolean;
multipart?: boolean | undefined;
/**

@@ -85,3 +85,3 @@ * Uses an http.Agent of your choice, instead of the global, default one.

*/
agent?: http.Agent | boolean;
agent?: http.Agent | boolean | undefined;
/**

@@ -92,7 +92,7 @@ * Forwards request through HTTP(s) proxy.

*/
proxy?: string;
proxy?: string | undefined;
/**
* Object containing custom HTTP headers for request.
*/
headers?: {};
headers?: {} | undefined;
/**

@@ -103,3 +103,3 @@ * Determines what to do with provided username/password.

*/
auth?: "auto" | "digest" | "basic";
auth?: "auto" | "digest" | "basic" | undefined;
/**

@@ -109,3 +109,3 @@ * When true, sets content type to application/json and sends request body as JSON string,

*/
json?: boolean;
json?: boolean | undefined;
/**

@@ -120,3 +120,3 @@ * When sending streams, this lets manually set the Content-Length header

*/
stream_length?: number;
stream_length?: number | undefined;

@@ -126,3 +126,3 @@ /**

*/
localAddress?: string;
localAddress?: string | undefined;

@@ -133,3 +133,3 @@ /**

*/
uri_modifier?: (uri: string) => string;
uri_modifier?: ((uri: string) => string) | undefined;

@@ -140,3 +140,3 @@ // These properties are overwritten by those in the 'headers' field

*/
cookies?: Cookies;
cookies?: Cookies | undefined;
/**

@@ -147,3 +147,3 @@ * If true, sets 'Accept-Encoding' header to 'gzip,deflate',

*/
compressed?: boolean;
compressed?: boolean | undefined;
// Overwritten if present in the URI

@@ -153,11 +153,11 @@ /**

*/
username?: string;
username?: string | undefined;
/**
* For HTTP basic auth. Requires username to be passed, but is optional.
*/
password?: string;
password?: string | undefined;
/**
* Sets 'Accept' HTTP header. Defaults to */*.
*/
accept?: string;
accept?: string | undefined;
/**

@@ -168,3 +168,3 @@ * Sets 'Connection' HTTP header.

*/
connection?: string;
connection?: string | undefined;
/**

@@ -174,3 +174,3 @@ * Sets the 'User-Agent' HTTP header.

*/
user_agent?: string;
user_agent?: string | undefined;
/**

@@ -184,3 +184,3 @@ * Sets the 'Content-Type' header.

*/
content_type?: string;
content_type?: string | undefined;
}

@@ -193,7 +193,7 @@

*/
decode_response?: boolean;
decode_response?: boolean | undefined;
/**
* Alias for decode_response
*/
decode?: ResponseOptions['decode_response'];
decode?: ResponseOptions['decode_response'] | undefined;

@@ -206,7 +206,7 @@ /**

*/
parse_response?: boolean | 'json' | 'xml';
parse_response?: boolean | 'json' | 'xml' | undefined;
/**
* Alias for parse_response
*/
parse?: ResponseOptions['parse_response'];
parse?: ResponseOptions['parse_response'] | undefined;

@@ -218,3 +218,3 @@ /**

*/
parse_cookies?: boolean;
parse_cookies?: boolean | undefined;
/**

@@ -224,3 +224,3 @@ * Dump response output to file.

*/
output?: string;
output?: string | undefined;
}

@@ -234,3 +234,3 @@

*/
follow_set_cookie?: boolean;
follow_set_cookie?: boolean | undefined;
/**

@@ -241,3 +241,3 @@ * Sets the 'Referer' header to the requested URI

*/
follow_set_referer?: boolean;
follow_set_referer?: boolean | undefined;
/**

@@ -248,3 +248,3 @@ * If enabled, resends the request using the original verb

*/
follow_keep_method?: boolean;
follow_keep_method?: boolean | undefined;
/**

@@ -255,3 +255,3 @@ * When true, Needle will only follow redirects that point to the same host

*/
follow_if_same_host?: boolean;
follow_if_same_host?: boolean | undefined;
/**

@@ -262,7 +262,7 @@ * When true, Needle will only follow redirects that point to the same protocol

*/
follow_if_same_protocol?: boolean;
follow_if_same_protocol?: boolean | undefined;
/**
* Unless true, Needle will not follow redirects that point to same location (as set in the response header) as the original request URL. false by default.
*/
follow_if_same_location?: boolean;
follow_if_same_location?: boolean | undefined;
}

@@ -269,0 +269,0 @@

{
"name": "@types/needle",
"version": "2.5.1",
"version": "2.5.2",
"description": "TypeScript definitions for needle",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/needle",
"license": "MIT",

@@ -39,4 +40,4 @@ "contributors": [

},
"typesPublisherContentHash": "f8f1c11bcdb4cee943338915386f1644aa492719980014b00d52c388e451a513",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "ab30d35ba8f6a73bf58f272a89e22c9e9c28e2291d8ff3957d0f86b5e3c6b6d0",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 08 Oct 2020 07:40:58 GMT
* Last updated: Wed, 07 Jul 2021 00:01:46 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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