forked from niki-timofe/verdaccio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix the name validation of a package tarball (verdaccio#2242)
Co-authored-by: Juan Picado <[email protected]>
- Loading branch information
1 parent
2924ffa
commit d2c65da
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@verdaccio/utils': patch | ||
--- | ||
|
||
Fixed the validation of the name when searching for a tarball that have scoped package name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,7 @@ describe('Utilities', () => { | |
expect(validateName('[email protected]')).toBeTruthy(); | ||
// fix https://github.com/verdaccio/verdaccio/issues/1400 | ||
expect(validateName('-build-infra')).toBeTruthy(); | ||
expect(validateName('@pkg-scoped/without-extension')).toBeTruthy(); | ||
}); | ||
|
||
test('should be valid using uppercase', () => { | ||
|