From a094d64b323da996e4b390cdb4e6e684e2059c5c Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 30 Apr 2024 09:45:06 -0700 Subject: [PATCH 1/2] deps: @npmcli/redact@2.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 154f9f02..12665ecc 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "author": "GitHub Inc.", "license": "ISC", "dependencies": { - "@npmcli/redact": "^1.1.0", + "@npmcli/redact": "^2.0.0", "make-fetch-happen": "^13.0.0", "minipass": "^7.0.2", "minipass-fetch": "^3.0.0", From 40db901bcdd569ac1d52417cb61f6890079c42b3 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 30 Apr 2024 09:50:26 -0700 Subject: [PATCH 2/2] chore: fix linting in test files --- test/check-response.js | 6 +++--- test/errors.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/check-response.js b/test/check-response.js index e9e1e34a..736ddd21 100644 --- a/test/check-response.js +++ b/test/check-response.js @@ -81,7 +81,7 @@ t.test('log x-fetch-attempts header value', async t => { t.test('log the url fetched', t => { const headers = new Headers() const EE = require('events') - headers.get = header => undefined + headers.get = () => undefined const res = Object.assign({}, mockFetchRes, { headers, status: 200, @@ -110,7 +110,7 @@ t.test('log the url fetched', t => { t.test('redact password from log', t => { const headers = new Headers() const EE = require('events') - headers.get = header => undefined + headers.get = () => undefined const res = Object.assign({}, mockFetchRes, { headers, status: 200, @@ -138,7 +138,7 @@ t.test('redact password from log', t => { t.test('redact well known token from log', t => { const headers = new Headers() const EE = require('events') - headers.get = header => undefined + headers.get = () => undefined const res = Object.assign({}, mockFetchRes, { headers, status: 200, diff --git a/test/errors.js b/test/errors.js index fb71d783..26cad0df 100644 --- a/test/errors.js +++ b/test/errors.js @@ -141,7 +141,7 @@ t.test('OTP error with prompt', async t => { } return true }) - .reply((...args) => { + .reply(() => { if (OTP === '12345') { return [200, { ok: 'this is fine' }, {}] } else { @@ -171,7 +171,7 @@ t.test('OTP error with prompt, expired OTP in settings', async t => { } return true }) - .reply((...args) => { + .reply(() => { if (OTP === '12345') { return [200, { ok: 'this is fine' }, {}] } else { @@ -189,7 +189,7 @@ t.test('OTP error with prompt, expired OTP in settings', async t => { t.test('OTP error with prompt that fails', t => { tnock(t, OPTS.registry) .get('/otplease') - .reply((...args) => { + .reply(() => { return [401, { error: 'otp, please' }, { 'www-authenticate': 'otp' }] }) @@ -202,7 +202,7 @@ t.test('OTP error with prompt that fails', t => { t.test('OTP error with prompt that returns nothing', t => { tnock(t, OPTS.registry) .get('/otplease') - .reply((...args) => { + .reply(() => { return [401, { error: 'otp, please' }, { 'www-authenticate': 'otp' }] })