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

@osskit/fetch-enhancers

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osskit/fetch-enhancers - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

3

dist/enhancers/withHeaders.d.ts

@@ -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

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