supertest-fetch
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var http_1 = __importDefault(require("http")); | ||
var http_1 = require("http"); | ||
var Server_1 = __importDefault(require("./Server")); | ||
@@ -52,3 +52,3 @@ var Test_1 = __importDefault(require("./Test")); | ||
var server = target && target.route | ||
? http_1.default.createServer(target) | ||
? http_1.createServer(target) | ||
: target; | ||
@@ -55,0 +55,0 @@ if (!server || !server.listen || !server.address || !server.close) { |
{ | ||
"name": "supertest-fetch", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Supertest with WHATWG fetch like interface.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
/// <reference types="node" /> | ||
/// <reference types="express" /> | ||
import http from 'http'; | ||
import { Server as httpServer } from 'http'; | ||
import { Express } from 'express'; | ||
@@ -21,3 +21,3 @@ import * as nodeFetch from 'node-fetch'; | ||
*/ | ||
export default function fetch(server: http.Server, url: string | nodeFetch.Request, init?: nodeFetch.RequestInit): Test; | ||
export default function fetch(server: httpServer, url: string | nodeFetch.Request, init?: nodeFetch.RequestInit): Test; | ||
/** | ||
@@ -32,3 +32,3 @@ * Creates a `fetch` function for a server. | ||
*/ | ||
export declare function makeFetch(target: http.Server | Express): (url: string | nodeFetch.Request, init?: nodeFetch.RequestInit | undefined) => Test; | ||
export declare function makeFetch(target: httpServer | Express): (url: string | nodeFetch.Request, init?: nodeFetch.RequestInit | undefined) => Test; | ||
export { fetch }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36445