Merge branch 'main' into feature/WebCrawl

# Conflicts:
#	packages/components/src/utils.ts
This commit is contained in:
Henry
2023-07-08 00:09:58 +01:00
18 changed files with 389 additions and 16 deletions
+14
View File
@@ -336,6 +336,20 @@ export async function xmlScrape(currentURL: string, limit: number): Promise<stri
return urls
}
/*
* Get env variables
* @param {string} url
* @param {number} limit
* @returns {string[]}
*/
export const getEnvironmentVariable = (name: string): string | undefined => {
try {
return typeof process !== 'undefined' ? process.env?.[name] : undefined
} catch (e) {
return undefined
}
}
/**
* Custom chain handler class
*/