make-fetch-happen
Advanced tools
Comparing version 13.0.0 to 13.0.1
@@ -277,2 +277,4 @@ const { Request, Response } = require('minipass-fetch') | ||
cacheWriteReject = reject | ||
}).catch((err) => { | ||
body.emit('error', err) | ||
}) | ||
@@ -279,0 +281,0 @@ |
@@ -5,2 +5,3 @@ const { Minipass } = require('minipass') | ||
const ssri = require('ssri') | ||
const { log } = require('proc-log') | ||
@@ -93,2 +94,4 @@ const CachingMinipassPipeline = require('./pipeline.js') | ||
/* eslint-disable-next-line max-len */ | ||
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${res.status}`) | ||
return retryHandler(res) | ||
@@ -117,2 +120,3 @@ } | ||
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${err.code}`) | ||
return retryHandler(err) | ||
@@ -119,0 +123,0 @@ } |
{ | ||
"name": "make-fetch-happen", | ||
"version": "13.0.0", | ||
"version": "13.0.1", | ||
"description": "Opinionated, caching, retrying fetch client", | ||
@@ -14,3 +14,3 @@ "main": "lib/index.js", | ||
"eslint": "eslint", | ||
"lint": "eslint \"**/*.js\"", | ||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", | ||
"lintfix": "npm run lint -- --fix", | ||
@@ -46,2 +46,3 @@ "postlint": "template-oss-check", | ||
"negotiator": "^0.6.3", | ||
"proc-log": "^4.2.0", | ||
"promise-retry": "^2.0.1", | ||
@@ -52,3 +53,3 @@ "ssri": "^10.0.0" | ||
"@npmcli/eslint-config": "^4.0.0", | ||
"@npmcli/template-oss": "4.18.0", | ||
"@npmcli/template-oss": "4.21.4", | ||
"nock": "^13.2.4", | ||
@@ -74,11 +75,5 @@ "safe-buffer": "^5.2.1", | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"ciVersions": [ | ||
"16.14.0", | ||
"16.x", | ||
"18.0.0", | ||
"18.x" | ||
], | ||
"version": "4.18.0", | ||
"version": "4.21.4", | ||
"publish": "true" | ||
} | ||
} |
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
52787
939
12
+ Addedproc-log@^4.2.0
+ Addedproc-log@4.2.0(transitive)