From 566adb7c0a0c0845e90a6e867a2c0ef5d2ada575 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 5 Jun 2024 17:24:52 -0400 Subject: fix(npm): use configured auth for tarball urls instead of scope auth (#24111) Deno was using the scope auth for the tarball urls, which is not always correct. We are going to do a release immediately for this issue. --- tests/specs/npm/npmrc_bad_token/.npmrc | 4 ++-- tests/specs/npm/npmrc_bad_token/main.out | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/specs/npm/npmrc_bad_token') diff --git a/tests/specs/npm/npmrc_bad_token/.npmrc b/tests/specs/npm/npmrc_bad_token/.npmrc index 6ead678f4..04f7c3109 100644 --- a/tests/specs/npm/npmrc_bad_token/.npmrc +++ b/tests/specs/npm/npmrc_bad_token/.npmrc @@ -1,2 +1,2 @@ -@denotest:registry=http://127.0.0.1:4261/ -//127.0.0.1:4261/:_authToken=invalid-token +@denotest:registry=http://localhost:4261/ +//localhost:4261/:_authToken=invalid-token diff --git a/tests/specs/npm/npmrc_bad_token/main.out b/tests/specs/npm/npmrc_bad_token/main.out index ceee1fed4..17619e5ce 100644 --- a/tests/specs/npm/npmrc_bad_token/main.out +++ b/tests/specs/npm/npmrc_bad_token/main.out @@ -1,4 +1,4 @@ ⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag. -Download http://127.0.0.1:4261/@denotest/basic -error: Error getting response at http://127.0.0.1:4261/@denotest/basic for package "@denotest/basic": Bad response: 401 +Download http://localhost:4261/@denotest/basic +error: Error getting response at http://localhost:4261/@denotest/basic for package "@denotest/basic": Bad response: 401 [WILDCARD] \ No newline at end of file -- cgit v1.2.3