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

supertest-fetch

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supertest-fetch - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

lib/index.js

@@ -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

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