Socket
Socket
Sign inDemoInstall

@types/autocannon

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/autocannon - npm Package Compare versions

Comparing version 7.12.0 to 7.12.1

108

autocannon/index.d.ts

@@ -9,3 +9,3 @@ // Type definitions for autocannon 7.12

import { IncomingHttpHeaders } from 'http';
import { IncomingHttpHeaders } from "http";

@@ -69,3 +69,3 @@ declare namespace autocannon {

*/
method?: Request['method'];
method?: Request["method"];

@@ -87,3 +87,3 @@ /**

*/
body?: Request['body'];
body?: Request["body"];

@@ -94,3 +94,3 @@ /**

*/
headers?: Request['headers'];
headers?: Request["headers"];

@@ -105,3 +105,3 @@ /**

*/
setupClient?: ((client: Client) => void);
setupClient?: (client: Client) => void;

@@ -199,3 +199,3 @@ /**

*/
verifyBody?: (body: Request['body']) => boolean;
verifyBody?: (body: Request["body"]) => boolean;

@@ -237,36 +237,36 @@ /**

method?:
| 'ACL'
| 'BIND'
| 'CHECKOUT'
| 'CONNECT'
| 'COPY'
| 'DELETE'
| 'GET'
| 'HEAD'
| 'LINK'
| 'LOCK'
| 'M-SEARCH'
| 'MERGE'
| 'MKACTIVITY'
| 'MKCALENDAR'
| 'MKCOL'
| 'MOVE'
| 'NOTIFY'
| 'OPTIONS'
| 'PATCH'
| 'POST'
| 'PROPFIND'
| 'PROPPATCH'
| 'PURGE'
| 'PUT'
| 'REBIND'
| 'REPORT'
| 'SEARCH'
| 'SOURCE'
| 'SUBSCRIBE'
| 'TRACE'
| 'UNBIND'
| 'UNLINK'
| 'UNLOCK'
| 'UNSUBSCRIBE'
| "ACL"
| "BIND"
| "CHECKOUT"
| "CONNECT"
| "COPY"
| "DELETE"
| "GET"
| "HEAD"
| "LINK"
| "LOCK"
| "M-SEARCH"
| "MERGE"
| "MKACTIVITY"
| "MKCALENDAR"
| "MKCOL"
| "MOVE"
| "NOTIFY"
| "OPTIONS"
| "PATCH"
| "POST"
| "PROPFIND"
| "PROPPATCH"
| "PURGE"
| "PUT"
| "REBIND"
| "REPORT"
| "SEARCH"
| "SOURCE"
| "SUBSCRIBE"
| "TRACE"
| "UNBIND"
| "UNLINK"
| "UNLOCK"
| "UNSUBSCRIBE"
| undefined;

@@ -284,3 +284,3 @@ path?: string | undefined;

*/
on(event: 'start', listener: () => void): this;
on(event: "start", listener: () => void): this;

@@ -291,3 +291,3 @@ /**

*/
on(event: 'tick', listener: () => void): this; // tslint:disable-line:unified-signatures
on(event: "tick", listener: () => void): this; // tslint:disable-line:unified-signatures

@@ -297,3 +297,3 @@ /**

*/
on(event: 'done', listener: (result: Result) => void): this;
on(event: "done", listener: (result: Result) => void): this;

@@ -304,3 +304,3 @@ /**

on(
event: 'response',
event: "response",
listener: (client: Client, statusCode: number, resBytes: number, responseTime: number) => void,

@@ -312,3 +312,3 @@ ): this;

*/
on(event: 'reqError', listener: (err: any) => void): this;
on(event: "reqError", listener: (err: any) => void): this;

@@ -318,3 +318,3 @@ /**

*/
on(event: 'error', listener: (err: any) => void): this; // tslint:disable-line:unified-signatures
on(event: "error", listener: (err: any) => void): this; // tslint:disable-line:unified-signatures
}

@@ -365,3 +365,3 @@

*/
on(event: 'headers', listener: (headers: IncomingHttpHeaders) => void): this;
on(event: "headers", listener: (headers: IncomingHttpHeaders) => void): this;

@@ -371,3 +371,3 @@ /**

*/
on(event: 'body', listener: (body: Buffer) => void): this;
on(event: "body", listener: (body: Buffer) => void): this;

@@ -377,3 +377,3 @@ /**

*/
on(event: 'response', listener: (statusCode: number, resBytes: number, responseTime: number) => void): this;
on(event: "response", listener: (statusCode: number, resBytes: number, responseTime: number) => void): this;
}

@@ -428,15 +428,15 @@

/** The number of 1xx response status codes received. */
'1xx': number;
"1xx": number;
/** The number of 2xx response status codes received. */
'2xx': number;
"2xx": number;
/** The number of 3xx response status codes received. */
'3xx': number;
"3xx": number;
/** The number of 4xx response status codes received. */
'4xx': number;
"4xx": number;
/** The number of 5xx response status codes received. */
'5xx': number;
"5xx": number;

@@ -443,0 +443,0 @@ /** The number of requests with a mismatched body. */

{
"name": "@types/autocannon",
"version": "7.12.0",
"version": "7.12.1",
"description": "TypeScript definitions for autocannon",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/autocannon",

},
"typesPublisherContentHash": "f4bcc2d2e4c581c9ff5e48f33f09ddb21d29a5d56601344caaffb45c3e41ca44",
"typesPublisherContentHash": "523a7056eb03d38d2e1f99579f3831379e1d85194ba2079c8f282a3494f783c1",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Thu, 14 Sep 2023 01:49:18 GMT
* Last updated: Fri, 22 Sep 2023 18:11:04 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