@aikidosec/safe-chain 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -23,7 +23,9 @@ export async function runYarnCommand(args) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
async function fixYarnProxyEnvironmentVariables(env) {
|
|
26
|
-
// Yarn ignores standard proxy environment
|
|
26
|
+
// Yarn ignores standard proxy environment variable HTTPS_PROXY
|
|
27
|
+
// It does respect NODE_EXTRA_CA_CERTS for custom CA certificates though.
|
|
28
|
+
// Don't use YARN_HTTPS_CA_FILE_PATH though, as it causes to ignore all system CAs
|
|
27
29
|
|
|
28
30
|
// Yarn v2/v3 and v4+ use different environment variables for proxy and CA certs
|
|
29
31
|
// When setting all variables, yarn returns an error about conflicting variables
|
|
@@ -35,10 +37,8 @@ async function fixYarnProxyEnvironmentVariables(env) {
|
|
|
35
37
|
|
|
36
38
|
if (majorVersion >= 4) {
|
|
37
39
|
env.YARN_HTTPS_PROXY = env.HTTPS_PROXY;
|
|
38
|
-
env.YARN_HTTPS_CA_FILE_PATH = env.NODE_EXTRA_CA_CERTS;
|
|
39
40
|
} else if (majorVersion === 2 || majorVersion === 3) {
|
|
40
41
|
env.YARN_HTTPS_PROXY = env.HTTPS_PROXY;
|
|
41
|
-
env.YARN_CA_FILE_PATH = env.NODE_EXTRA_CA_CERTS;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|