Fix nodejs process check

This commit is contained in:
2024-11-28 15:30:20 -03:00
parent 10a0619f80
commit 9c54143d2e
4 changed files with 736 additions and 658 deletions

View File

@ -53,7 +53,7 @@ export class TribufuApi extends TribufuApiGenerated {
* ```
*/
public static fromEnv(prefix?: string | null): TribufuApi | null {
if (!process) {
if (typeof process === "undefined") {
return null;
}
@ -93,7 +93,7 @@ export class TribufuApi extends TribufuApiGenerated {
* @returns string
*/
protected static getBaseUrl(): string {
if (!process) {
if (typeof process === "undefined") {
return TRIBUFU_API_URL;
}