@osskit/fetch-enhancers
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -1,3 +0,2 @@ | ||
import { Headers } from 'node-fetch'; | ||
import { Fetch } from '../types'; | ||
export declare const withHeaders: (fetch: Fetch, headers: Headers) => Fetch; | ||
export declare const withHeaders: (fetch: Fetch, headers: Record<string, string>) => Fetch; |
{ | ||
"name": "@osskit/fetch-enhancers", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/osskit/monitor" |
@@ -1,2 +0,2 @@ | ||
import { Headers, RequestInfo, RequestInit } from 'node-fetch'; | ||
import { RequestInfo, RequestInit } from 'node-fetch'; | ||
@@ -6,3 +6,3 @@ import { Fetch } from '../types'; | ||
export const withHeaders = | ||
(fetch: Fetch, headers: Headers): Fetch => | ||
(fetch: Fetch, headers: Record<string, string>): Fetch => | ||
(url: RequestInfo, init?: RequestInit) => | ||
@@ -9,0 +9,0 @@ fetch(url, { |
Sorry, the diff of this file is not supported yet
40618
694