Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
cc2d8605
Commit
cc2d8605
authored
6 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix: correct log for npmjs headers
parent
77fb7070
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/datasource/npm.js
+3
-3
3 additions, 3 deletions
lib/datasource/npm.js
with
3 additions
and
3 deletions
lib/datasource/npm.js
+
3
−
3
View file @
cc2d8605
...
@@ -171,15 +171,15 @@ async function getDependency(name, retries = 5) {
...
@@ -171,15 +171,15 @@ async function getDependency(name, retries = 5) {
});
});
const
res
=
raw
.
body
;
const
res
=
raw
.
body
;
// istanbul ignore if
// istanbul ignore if
if
(
regUrl
===
'
https://registry.npmjs.org
'
&&
name
.
startsWith
(
'
@
'
))
{
if
(
regUrl
===
'
https://registry.npmjs.org
/
'
&&
name
.
startsWith
(
'
@
'
))
{
// npmjs is having problems with scoped package consistency so we are debug logging headers until the problem goes away
// npmjs is having problems with scoped package consistency so we are debug logging headers until the problem goes away
logger
.
debug
(
logger
.
debug
(
{
{
name
,
package
:
name
,
latest
:
res
[
'
dist-tags
'
].
latest
,
latest
:
res
[
'
dist-tags
'
].
latest
,
headers
:
raw
.
headers
,
headers
:
raw
.
headers
,
},
},
'
npmjs res.headers for scoped package
s
'
'
npmjs res.headers for scoped package
'
);
);
}
}
if
(
!
(
res
.
name
&&
res
.
name
.
toLowerCase
()
===
name
.
toLowerCase
()))
{
if
(
!
(
res
.
name
&&
res
.
name
.
toLowerCase
()
===
name
.
toLowerCase
()))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment