We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0a89d commit a241fb7Copy full SHA for a241fb7
src/registries/npm-registry.js
@@ -84,7 +84,10 @@ export default class NpmRegistry extends Registry {
84
opts.headers,
85
);
86
87
- if (alwaysAuth || (packageName || pathname)[0] === `@`) {
+ const packageIdent = packageName || pathname;
88
+ const isScoppedPackage = packageIdent.match(/^@|\/@/);
89
+
90
+ if (alwaysAuth || isScoppedPackage) {
91
const authorization = this.getAuth(packageName || pathname);
92
if (authorization) {
93
headers.authorization = authorization;
0 commit comments