@common-stack/core
Advanced tools
Comparing version 0.2.24 to 0.2.25
@@ -12,4 +12,4 @@ import * as envalid from 'envalid'; | ||
}>; | ||
config: Readonly<T & envalid.CleanedEnvAccessors>; | ||
cleanEnv: () => Readonly<T & envalid.CleanedEnvAccessors>; | ||
}; | ||
export { buildEnv }; |
@@ -5,5 +5,2 @@ "use strict"; | ||
const envalid = require("envalid"); | ||
const llne = envalid.cleanEnv(process.env, { | ||
test: envalid.str(), | ||
}); | ||
function buildEnv(environment, specs, options) { | ||
@@ -16,6 +13,8 @@ const envalidConfig = Object.keys(specs).reduce((prev, key) => { | ||
}, {}); | ||
const config = envalid.cleanEnv(environment, specs, options); | ||
function cleanEnv() { | ||
return envalid.cleanEnv(environment, specs, options); | ||
} | ||
return { | ||
envalidConfig, | ||
config, | ||
cleanEnv, | ||
}; | ||
@@ -22,0 +21,0 @@ } |
{ | ||
"name": "@common-stack/core", | ||
"version": "0.2.24", | ||
"version": "0.2.25", | ||
"description": "Common core for higher packages to depend on", | ||
@@ -27,3 +27,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "98cbcc31ae1b08db02bbef40f493cf4c022a66be" | ||
"gitHead": "76ab7bc75fc8e2b0e62e3bfd9d0b7347c9a06141" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
11090
185