Comparing version 0.2.5 to 0.2.6
@@ -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" | ||
} | ||
} |
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
26093
777