Socket
Socket
Sign inDemoInstall

@types/superagent

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/superagent - npm Package Compare versions

Comparing version 2.0.36 to 2.0.37

superagent/LICENSE

15

superagent/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for SuperAgent v2.0.0
// Type definitions for SuperAgent v2.0.1
// Project: https://github.com/visionmedia/superagent
// Definitions by: Alex Varju <https://github.com/varju/>
// Nico Zelaya <https://github.com/NicoZelaya/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,2 +10,3 @@

import stream = require('stream');
import https = require('https');

@@ -16,3 +18,10 @@ type CallbackHandler = (err: any, res: request.Response) => void;

declare namespace request {
interface SuperAgentRequest extends Request { }
interface SuperAgentRequest extends Request {
agent(agent: https.Agent): this;
agent(): this;
method: string;
url: string;
cookies: string;
}
interface SuperAgentStatic extends SuperAgent<SuperAgentRequest> {

@@ -81,3 +90,3 @@ (url: string): SuperAgentRequest;

forbidden: boolean;
xhr: XMLHttpRequest;
xhr: XMLHttpRequest;
get(header: string): string;

@@ -84,0 +93,0 @@ }

17

superagent/package.json
{
"name": "@types/superagent",
"version": "2.0.36",
"version": "2.0.37",
"description": "TypeScript definitions for SuperAgent",
"license": "MIT",
"author": "Alex Varju <https://github.com/varju/>",
"contributors": [
{
"name": "Alex Varju",
"url": "https://github.com/varju/"
},
{
"name": "Nico Zelaya",
"url": "https://github.com/NicoZelaya/"
}
],
"main": "",

@@ -17,4 +26,4 @@ "repository": {

"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "02a5d98f0bb8d6505124894b50412cf5d02ce84786f99b2fb69dd353c04d0ba7"
"typesPublisherContentHash": "a396595b3e265ef6b6c16991188e36ccb76cebc31463547bd4403b719dd19a8e",
"typeScriptVersion": "2.0"
}

@@ -8,12 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/superagent
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/superagent
Additional Details
* Last updated: Mon, 28 Nov 2016 16:28:40 GMT
* File structure: ProperModule
* Library Dependencies: node
* Module Dependencies: stream
* Global values: request
* Last updated: Fri, 02 Jun 2017 13:45:13 GMT
* Dependencies: stream, https, node
* Global values: none
# Credits
These definitions were written by Alex Varju <https://github.com/varju/>.
These definitions were written by Alex Varju <https://github.com/varju/>, Nico Zelaya <https://github.com/NicoZelaya/>.
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