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.2.5 to 0.2.6

3

dist/api.js

@@ -68,3 +68,2 @@ import { spyOn } from "tinyspy";

}
const urlObj = new URL(url);
const {

@@ -74,3 +73,3 @@ body = {},

statusText = "ok"
} = typeof result.value === "function" ? await result.value(urlObj, urlOrRequest, optionsOrNothing) : result.value;
} = typeof result.value === "function" ? await result.value(new URL(url), urlOrRequest, optionsOrNothing) : result.value;
return new ResponseMock(url, body, {

@@ -77,0 +76,0 @@ status: statusCode,

export { declareFetchAssertions } from './extend';
export { mockApi, mockDelete, mockGet, mockPatch, mockPost, mockPut, prepareFetch } from './api';
export { createMockApi, mockApi, mockDelete, mockGet, mockPatch, mockPost, mockPut, prepareFetch } from './api';
import 'tinyspy';
import './response';

@@ -9,5 +9,7 @@ import { declareFetchAssertions } from "./extend";

mockPost,
mockPut
mockPut,
createMockApi
} from "./api";
export {
createMockApi,
declareFetchAssertions,

@@ -14,0 +16,0 @@ mockApi,

{
"name": "vi-fetch",
"version": "0.2.5",
"version": "0.2.6",
"description": "Easiest way to mock fetch",

@@ -40,3 +40,6 @@ "main": "./dist/index.js",

"tinyspy": "^0.2.6"
},
"scripts": {
"publish": "tsup && clean-publish --clean-docs"
}
}
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