fix(js): set the unsafeHttpWhitelist when the set has any items (#21216)
This commit is contained in:
parent
d45a13e4fa
commit
8f6eed11d4
@ -192,7 +192,7 @@ function setYarnUnsafeHttpWhitelist(
|
||||
currentWhitelist: Set<string>,
|
||||
options: VerdaccioExecutorSchema
|
||||
) {
|
||||
if (currentWhitelist.size > 1) {
|
||||
if (currentWhitelist.size > 0) {
|
||||
execSync(
|
||||
`yarn config set unsafeHttpWhitelist --json '${JSON.stringify(
|
||||
Array.from(currentWhitelist)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user