mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
17 lines
530 B
JavaScript
17 lines
530 B
JavaScript
/**
|
|
* Gets the minimum package age in hours from environment variable
|
|
* @returns {string | undefined}
|
|
*/
|
|
export function getMinimumPackageAgeHours() {
|
|
return process.env.SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS;
|
|
}
|
|
|
|
/**
|
|
* Gets the custom npm registries from environment variable
|
|
* Expected format: comma-separated list of registry domains
|
|
* Example: "npm.company.com,registry.internal.net"
|
|
* @returns {string | undefined}
|
|
*/
|
|
export function getNpmCustomRegistries() {
|
|
return process.env.SAFE_CHAIN_NPM_CUSTOM_REGISTRIES;
|
|
}
|