refactor: use @tsconfig/node16 (#721)

This commit is contained in:
Jamie Magee 2023-04-25 22:51:16 -07:00 committed by GitHub
parent 5fcc920667
commit 1bf6b3ad0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View file

@ -31,7 +31,9 @@ class Input {
? new RegExp(envRegexInput)
: this.options.envRegex;
this._environmentVariables = new Map(
Object.entries(process.env).filter(([key]) => envRegex.test(key))
Object.entries(process.env)
.filter(([key]) => envRegex.test(key))
.filter((pair): pair is [string, string] => pair[1] !== undefined)
);
this.token = this.get(