Skip to content

Commit

Permalink
chore: secure against malicious input
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Sep 16, 2022
1 parent c49f323 commit bf99463
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -366,10 +366,12 @@ a NODE_OPTIONS variable, we won't override it. Hence, the provider generation mi
}

if (!this.isJavascriptTarget || this.options.outputJsii) {
const numberOfWorkers =
const numberOfWorkers = Math.max(
1,
this.options.jsiiParallelism === -1
? this.targets.length
: this.options.jsiiParallelism;
: this.options.jsiiParallelism || 1
);

const work = [...this.targets];
const workers = new Array(numberOfWorkers).fill(async () => {
Expand Down

0 comments on commit bf99463

Please sign in to comment.