New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

iso-web

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-web - npm Package Compare versions

Comparing version
1.4.1
to
1.4.2
+1
-1
package.json
{
"name": "iso-web",
"type": "module",
"version": "1.4.1",
"version": "1.4.2",
"description": "Isomorphic web apis utilities for fetch, event target, signals, crypto and doh.",

@@ -6,0 +6,0 @@ "author": "Hugo Dias <hugomrdias@gmail.com> (hugodias.me)",

@@ -282,10 +282,10 @@ import delay from 'delay'

if (methods.includes(request.method.toLowerCase())) {
return true
}
const statusCodes = retry.statusCodes ?? [
408, 413, 429, 500, 502, 503, 504,
]
if (statusCodes.includes(response.status)) {
if (
methods.includes(request.method.toLowerCase()) &&
HttpError.is(ctx.error) &&
statusCodes.includes(ctx.error.code)
) {
return true

@@ -292,0 +292,0 @@ }