fix private scoped packages without dedicated auth

This commit is contained in:
silverwind 2019-06-27 19:25:12 +02:00
parent bfebd2bb92
commit af46b35fec
Signed by: silverwind
GPG Key ID: 2E62B41C93869443
3 changed files with 24 additions and 1 deletions

20
test.js

@ -53,6 +53,11 @@ async function main() {
new: "5.0.0-beta.6",
info: "https://github.com/styled-components/styled-components",
},
"@babel/preset-env": {
old: "7.0.0",
new: "7.4.5",
info: "https://babeljs.io/",
}
}
});
@ -88,6 +93,11 @@ async function main() {
new: "5.0.0-beta.6",
info: "https://github.com/styled-components/styled-components",
},
"@babel/preset-env": {
old: "7.0.0",
new: "7.4.5",
info: "https://babeljs.io/",
}
}
});
@ -128,6 +138,11 @@ async function main() {
new: "5.0.0-beta.6",
info: "https://github.com/styled-components/styled-components",
},
"@babel/preset-env": {
old: "7.0.0",
new: "7.4.5",
info: "https://babeljs.io/",
}
}
});
@ -168,6 +183,11 @@ async function main() {
new: "4.3.2",
info: "https://github.com/styled-components/styled-components",
},
"@babel/preset-env": {
old: "7.0.0",
new: "7.4.5",
info: "https://babeljs.io/",
}
}
});

@ -6,6 +6,7 @@
"html-webpack-plugin": "4.0.0-alpha.2",
"noty": "3.1.0",
"jpeg-buffer-orientation": "0.0.0",
"styled-components": "2.5.0-1"
"styled-components": "2.5.0-1",
"@babel/preset-env": "7.0.0"
}
}

@ -215,6 +215,8 @@ function getAuthAndRegistry(name, registry) {
registry = url;
}
} catch (err) {}
} else {
auth = registryAuthToken(registry);
}
}
} catch (err) {