We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06f1968 commit cea9ed5Copy full SHA for cea9ed5
dist/index.js
@@ -5066,7 +5066,7 @@ async function getJson (obj) {
5066
5067
res.on('data', () => {})
5068
5069
- const { etag } = res.headers
+ const etag = JSON.stringify(res.headers).etag
5070
if (!obj.etagValue || obj.eTagValue !== etag || !fs.existsSync(obj.jsonFile)) {
5071
obj.etagValue = etag
5072
fs.writeFileSync(obj.etagFile, etag)
src/is-node-vulnerable.js
@@ -58,7 +58,7 @@ async function getJson (obj) {
58
59
60
61
62
63
64
0 commit comments