Socket
Socket
Sign inDemoInstall

@types/responselike

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/responselike - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

responselike/index.d.ts

@@ -8,4 +8,4 @@ // Type definitions for responselike 1.0

import { IncomingMessage } from 'http';
import { Stream } from 'stream';
import { IncomingMessage } from "http";
import { Stream } from "stream";

@@ -33,4 +33,4 @@ export = ResponseLike;

body: Buffer,
url: string
url: string,
);
}
{
"name": "@types/responselike",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript definitions for responselike",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/responselike",
"license": "MIT",

@@ -14,6 +15,7 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/responselike"
},

@@ -24,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "38ee8db1511cdb4a9133ff67b8bc16901de733aa4dc1efffdb5064b7daaa3f21",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "f455a4d977ac656d0981fba1b87415666d812e96862b4cc39bbf86790744b4f5",
"typeScriptVersion": "4.5"
}

@@ -5,13 +5,51 @@ # Installation

# Summary
This package contains type definitions for responselike ( https://github.com/lukechilds/responselike#readme ).
This package contains type definitions for responselike (https://github.com/lukechilds/responselike#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/responselike
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/responselike.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/responselike/index.d.ts)
````ts
// Type definitions for responselike 1.0
// Project: https://github.com/lukechilds/responselike#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Wed, 30 Jan 2019 18:47:32 GMT
* Dependencies: @types/node
/// <reference types="node" />
import { IncomingMessage } from "http";
import { Stream } from "stream";
export = ResponseLike;
/**
* Returns a streamable response object similar to a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
*/
declare class ResponseLike extends Stream.Readable {
statusCode: number;
headers: { [header: string]: string | string[] | undefined };
body: Buffer;
url: string;
/**
* @param statusCode HTTP response status code.
* @param headers HTTP headers object. Keys will be automatically lowercased.
* @param body A Buffer containing the response body. The Buffer contents will be streamable but is also exposed directly as `response.body`.
* @param url Request URL string.
*/
constructor(
statusCode: number,
headers: { [header: string]: string | string[] | undefined },
body: Buffer,
url: string,
);
}
````
### Additional Details
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/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).

Sorry, the diff of this file is not supported yet

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