Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/request

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/request - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10

26

request/index.d.ts

@@ -20,5 +20,5 @@ // Type definitions for request 2.0

import https = require('https');
import url = require('url');
import fs = require('fs');
import FormData = require('form-data');
import tough = require('tough-cookie');
import { Url } from 'url';

@@ -69,3 +69,3 @@

jar(store?: any): CookieJar;
cookie(str: string): Cookie;
cookie(str: string): Cookie | undefined;

@@ -313,23 +313,11 @@ debug: boolean;

export type Cookie = tough.Cookie;
export interface CookieJar {
setCookie(cookie: Cookie, uri: string | url.Url, options?: any): void;
getCookieString(uri: string | url.Url): string;
getCookies(uri: string | url.Url): Cookie[];
setCookie(cookieOrStr: Cookie | string, uri: string | Url, options?: tough.CookieJar.SetCookieOptions): void;
getCookieString(uri: string | Url): string;
getCookies(uri: string | Url): Cookie[];
}
export interface CookieValue {
name: string;
value: any;
httpOnly: boolean;
}
export interface Cookie extends Array<CookieValue> {
constructor(name: string, req: Request): void;
str: string;
expires: Date;
path: string;
toString(): string;
}
}
declare var request: request.RequestAPI<request.Request, request.CoreOptions, request.RequiredUriUrl>;
export = request;
{
"name": "@types/request",
"version": "2.0.9",
"version": "2.0.10",
"description": "TypeScript definitions for request",

@@ -51,6 +51,7 @@ "license": "MIT",

"@types/form-data": "*",
"@types/tough-cookie": "*",
"@types/node": "*"
},
"typesPublisherContentHash": "a2a91359850119ccf7f991e8a8f193828a4c74194c45eaa33dc14b93bfb04b81",
"typesPublisherContentHash": "9c3af5b156dccb67b1ccddbd02708d9497663cd4c31f16a6ced91a7de89d3607",
"typeScriptVersion": "2.3"
}

@@ -11,4 +11,4 @@ # Installation

Additional Details
* Last updated: Mon, 11 Dec 2017 23:33:53 GMT
* Dependencies: stream, http, https, url, fs, form-data, node
* Last updated: Thu, 11 Jan 2018 22:07:40 GMT
* Dependencies: stream, http, https, fs, form-data, tough-cookie, url, node
* Global values: none

@@ -15,0 +15,0 @@

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