@osskit/fetch-enhancers
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -1,3 +0,2 @@ | ||
import type { HeadersInit } from 'node-fetch'; | ||
import type { Fetch } from '../types.js'; | ||
export declare const withHeaders: (fetch: Fetch, getHeaders: (headers?: HeadersInit) => Record<string, string>) => Fetch; | ||
export declare const withHeaders: (fetch: Fetch, getHeaders: (headers?: HeadersInit) => HeadersInit) => Fetch; |
@@ -1,2 +0,1 @@ | ||
import type { RequestInfo, RequestInit, Response } from 'node-fetch'; | ||
export declare type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>; | ||
export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>; |
{ | ||
"name": "@osskit/fetch-enhancers", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"repository": { | ||
@@ -30,26 +30,25 @@ "url": "https://github.com/osskit/fetch-enhancers" | ||
"devDependencies": { | ||
"@osskit/eslint-config": "^1.0.8", | ||
"@osskit/eslint-config": "^1.0.15", | ||
"@osskit/prettier-config": "^0.0.1", | ||
"@osskit/tsconfig": "^0.0.6", | ||
"@types/async-retry": "^1.4.5", | ||
"@types/jest": "^28.1.7", | ||
"@types/node": "^18.7.8", | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
"@typescript-eslint/parser": "^5.33.1", | ||
"eslint": "^8.22.0", | ||
"@types/jest": "^29.2.4", | ||
"@types/node": "^18.11.17", | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
"@typescript-eslint/parser": "^5.47.0", | ||
"eslint": "^8.30.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.8.5", | ||
"eslint-plugin-react": "^7.30.1", | ||
"eslint-plugin-unicorn": "^43.0.2", | ||
"husky": "^8.0.1", | ||
"jest": "^28.1.3", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"ts-jest": "^28.0.8", | ||
"eslint-plugin-jest": "^27.1.7", | ||
"eslint-plugin-react": "^7.31.11", | ||
"eslint-plugin-unicorn": "^45.0.2", | ||
"husky": "^8.0.2", | ||
"jest": "^29.3.1", | ||
"lint-staged": "^13.1.0", | ||
"prettier": "^2.8.1", | ||
"ts-jest": "^29.0.3", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.9.4" | ||
}, | ||
"dependencies": { | ||
"async-retry": "^1.3.3", | ||
"node-fetch": "^3.2.10" | ||
"async-retry": "^1.3.3" | ||
}, | ||
@@ -56,0 +55,0 @@ "lint-staged": { |
@@ -21,3 +21,2 @@ <p align="center"> | ||
``` | ||
import fetch from 'node-fetch' | ||
import {withTimeout,withRetry} from '@osskit/fetch-enhancers' | ||
@@ -24,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
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
1
16136
169
88
- Removednode-fetch@^3.2.10
- Removeddata-uri-to-buffer@4.0.1(transitive)
- Removedfetch-blob@3.2.0(transitive)
- Removedformdata-polyfill@4.0.10(transitive)
- Removednode-domexception@1.0.0(transitive)
- Removednode-fetch@3.3.2(transitive)
- Removedweb-streams-polyfill@3.3.3(transitive)