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

vi-fetch

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vi-fetch - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

12

matchers.d.ts
interface FetchAssertions<R> {
toHaveFetched(): R;
toFetch(): R;
toHaveFetched<T>(data?: T): R;
toFetch<T>(data?: T): R;
toHaveFetchedNthTime<T>(times: number, data: T): R;
toFetchNthTime<T>(times: number, data: T): R;
toHaveFetchedTimes(times: number): R;
toFetchTimes(times: number): R;
// toHaveFetchedWithHeaders(
// headers: Record<string, string | number | undefined>
// ): R;
// toFetchWithHeaders(headers: Record<string, string | number | undefined>): R;
toHaveFetchedWithBody(body: any): R;

@@ -14,0 +12,0 @@ toFetchWithBody(body: any): R;

{
"name": "vi-fetch",
"version": "0.5.0",
"version": "0.6.0",
"description": "Easiest way to mock fetch",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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