Socket
Socket
Sign inDemoInstall

@types/supertest

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/supertest - npm Package Compare versions

Comparing version 1.1.32 to 2.0.0

28

supertest/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for SuperTest v1.1.0
// Type definitions for SuperTest v2.0.1
// Project: https://github.com/visionmedia/supertest

@@ -10,3 +10,3 @@ // Definitions by: Alex Varju <https://github.com/varju/>

declare function supertest(app: any): supertest.SuperTest<any>;
declare function supertest(app: any): supertest.SuperTest<supertest.Test>;
declare namespace supertest {

@@ -21,14 +21,14 @@ interface Response extends superagent.Response {

interface Test extends Request {
app?: any;
url: string;
serverAddress(app: any, path: string): string;
expect(status: number, callback?: CallbackHandler): this;
app?: any;
url: string;
serverAddress(app: any, path: string): string;
expect(status: number, callback?: CallbackHandler): this;
expect(status: number, body: any, callback?: CallbackHandler): this;
expect(body: string, callback?: CallbackHandler): this;
expect(body: RegExp, callback?: CallbackHandler): this;
expect(body: Object, callback?: CallbackHandler): this;
expect(field: string, val: string, callback?: CallbackHandler): this;
expect(fzield: string, val: RegExp, callback?: CallbackHandler): this;
expect(checker: (res: Response) => any): this;
end(callback?: CallbackHandler): this;
expect(body: string, callback?: CallbackHandler): this;
expect(body: RegExp, callback?: CallbackHandler): this;
expect(body: Object, callback?: CallbackHandler): this;
expect(field: string, val: string, callback?: CallbackHandler): this;
expect(fzield: string, val: RegExp, callback?: CallbackHandler): this;
expect(checker: (res: Response) => any): this;
end(callback?: CallbackHandler): this;
}

@@ -38,5 +38,5 @@

interface SuperTest<T extends Request> extends superagent.SuperAgent<T> {
interface SuperTest<T> extends superagent.SuperAgent<T> {
}
}
{
"name": "@types/supertest",
"version": "1.1.32",
"description": "TypeScript definitions for SuperTest v1.1.0",
"version": "2.0.0",
"description": "TypeScript definitions for SuperTest",
"license": "MIT",

@@ -18,3 +18,3 @@ "author": "Alex Varju <https://github.com/varju/>",

"typings": "index.d.ts",
"typesPublisherContentHash": "3856b0028d33ca4905113d838992d623c6b7548c4521656c258c3991f0f5fb14"
"typesPublisherContentHash": "5a9d632b984d1eb4b49bf956f9dd6b0626627bcb9fb7d0ce879a3c4027986bb9"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for SuperTest v1.1.0 (https://github.com/visionmedia/supertest).
This package contains type definitions for SuperTest (https://github.com/visionmedia/supertest).

@@ -12,3 +12,3 @@ # Details

Additional Details
* Last updated: Tue, 22 Nov 2016 20:59:30 GMT
* Last updated: Mon, 28 Nov 2016 16:28:40 GMT
* File structure: ProperModule

@@ -15,0 +15,0 @@ * Library Dependencies: none

@@ -8,5 +8,5 @@ {

],
"libraryMajorVersion": 1,
"libraryMinorVersion": 1,
"libraryName": "SuperTest v1.1.0",
"libraryMajorVersion": 2,
"libraryMinorVersion": 0,
"libraryName": "SuperTest",
"typingsPackageName": "supertest",

@@ -27,3 +27,3 @@ "projectName": "https://github.com/visionmedia/supertest",

"hasPackageJson": false,
"contentHash": "3856b0028d33ca4905113d838992d623c6b7548c4521656c258c3991f0f5fb14"
"contentHash": "5a9d632b984d1eb4b49bf956f9dd6b0626627bcb9fb7d0ce879a3c4027986bb9"
}
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