diff --git a/node_modules/make-fetch-happen/index.js b/node_modules/make-fetch-happen/index.js index fb2e115ff4d2a..5a0b15d466287 100644 --- a/node_modules/make-fetch-happen/index.js +++ b/node_modules/make-fetch-happen/index.js @@ -256,6 +256,9 @@ function conditionalFetch (req, cachedRes, opts) { } function remoteFetchHandleIntegrity (res, integrity) { + if (res.status !== 200) { + return res // Error responses aren't subject to integrity checks. + } const oldBod = res.body const newBod = ssri.integrityStream({ integrity diff --git a/node_modules/make-fetch-happen/package.json b/node_modules/make-fetch-happen/package.json index 794283aab21cd..594483fb18325 100644 --- a/node_modules/make-fetch-happen/package.json +++ b/node_modules/make-fetch-happen/package.json @@ -1,6 +1,6 @@ { "name": "make-fetch-happen", - "version": "8.0.9", + "version": "8.0.10", "description": "Opinionated, caching, retrying fetch client", "main": "index.js", "files": [ diff --git a/package-lock.json b/package-lock.json index 951b1e669e848..4f9d44d9007dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3648,9 +3648,9 @@ "dev": true }, "node_modules/make-fetch-happen": { - "version": "8.0.9", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.9.tgz", - "integrity": "sha512-uHa4gv/NIdm9cUvfOhYb57nxrCY08iyMRXru0jbpaH57Q3NCge/ypY7fOvgCr8tPyucKrGbVndKhjXE0IX0VfQ==", + "version": "8.0.10", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.10.tgz", + "integrity": "sha512-jPLPKQjBmDLK5r1BdyDyNKBytmkv2AsDWm2CxHJh+fqhSmC9Pmb7RQxwOq8xQig9+AWIS49+51k4f6vDQ3VnrQ==", "inBundle": true, "dependencies": { "agentkeepalive": "^4.1.0", @@ -10994,9 +10994,9 @@ "dev": true }, "make-fetch-happen": { - "version": "8.0.9", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.9.tgz", - "integrity": "sha512-uHa4gv/NIdm9cUvfOhYb57nxrCY08iyMRXru0jbpaH57Q3NCge/ypY7fOvgCr8tPyucKrGbVndKhjXE0IX0VfQ==", + "version": "8.0.10", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.10.tgz", + "integrity": "sha512-jPLPKQjBmDLK5r1BdyDyNKBytmkv2AsDWm2CxHJh+fqhSmC9Pmb7RQxwOq8xQig9+AWIS49+51k4f6vDQ3VnrQ==", "requires": { "agentkeepalive": "^4.1.0", "cacache": "^15.0.0",