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.1.0 to 4.1.2

2

dist/enhancers/withBasicAuth.js

@@ -13,3 +13,3 @@ import { FetchError } from '../fetchError.js';

const responseText = await response.text();
const errorUrl = typeof url === 'string' ? url : url?.url;
const errorUrl = typeof url === 'string' ? url : url instanceof URL ? url.toString() : url?.url;
throw new FetchError({ message: responseText ?? 'fetch error', url: errorUrl, status: response.status });

@@ -16,0 +16,0 @@ }

@@ -12,3 +12,3 @@ import retry from 'async-retry';

const responseText = await response.text();
const errorUrl = typeof url === 'string' ? url : url?.url;
const errorUrl = typeof url === 'string' ? url : url instanceof URL ? url.toString() : url?.url;
throw new FetchError({

@@ -19,4 +19,4 @@ message: responseText ?? 'fetch error',

data: {
attempt: String(attempt),
status: String(response.status),
attempt: attempt.toString(),
status: response.status.toString(),
},

@@ -23,0 +23,0 @@ });

@@ -12,3 +12,3 @@ import { FetchError } from '../fetchError.js';

}
const errorUrl = typeof url === 'string' ? url : url?.url;
const errorUrl = typeof url === 'string' ? url : url instanceof URL ? url.toString() : url?.url;
throw new FetchError({

@@ -15,0 +15,0 @@ message: responseText ?? 'fetch error',

@@ -11,3 +11,3 @@ import { FetchError } from '../fetchError.js';

catch (error) {
const errorUrl = typeof url === 'string' ? url : url?.url;
const errorUrl = typeof url === 'string' ? url : url instanceof URL ? url.toString() : url?.url;
throw new FetchError({

@@ -14,0 +14,0 @@ message: error.message ?? 'fetch error',

@@ -1,1 +0,1 @@

export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
export type Fetch = (url: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
{
"name": "@osskit/fetch-enhancers",
"version": "4.1.0",
"version": "4.1.2",
"repository": {

@@ -30,22 +30,22 @@ "url": "https://github.com/osskit/fetch-enhancers"

"devDependencies": {
"@osskit/eslint-config": "^1.0.15",
"@osskit/eslint-config": "^1.0.17",
"@osskit/prettier-config": "^0.0.1",
"@osskit/tsconfig": "^0.0.6",
"@types/async-retry": "^1.4.5",
"@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": "^27.1.7",
"eslint-plugin-react": "^7.31.11",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"eslint": "^8.33.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-unicorn": "^45.0.2",
"husky": "^8.0.2",
"jest": "^29.3.1",
"husky": "^8.0.3",
"jest": "^29.4.1",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"ts-jest": "^29.0.3",
"prettier": "^2.8.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
"typescript": "^4.9.5"
},

@@ -52,0 +52,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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