mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
This commit is contained in:
parent
fbc87fc26e
commit
f89bf27f5a
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ export function setSecurityWebHeaders(req: $RequestExtend, res: $ResponseExtend,
|
|||
// flow: express does not match properly
|
||||
// flow info https://github.com/flowtype/flow-typed/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+express
|
||||
export function validateName(req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer, value: string, name: string): void {
|
||||
if (value.charAt(0) === '-') {
|
||||
if (value === '-') {
|
||||
// special case in couchdb usually
|
||||
next('route');
|
||||
} else if (utilValidateName(value)) {
|
||||
|
@ -46,7 +46,7 @@ export function validateName(req: $RequestExtend, res: $ResponseExtend, next: $N
|
|||
// flow: express does not match properly
|
||||
// flow info https://github.com/flowtype/flow-typed/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+express
|
||||
export function validatePackage(req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer, value: string, name: string): void {
|
||||
if (value.charAt(0) === '-') {
|
||||
if (value === '-') {
|
||||
// special case in couchdb usually
|
||||
next('route');
|
||||
} else if (utilValidatePackage(value)) {
|
||||
|
|
Loading…
Reference in a new issue