@eggplanty/mycli 1.0.1 → 1.0.2
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 +1 -1
- package/scripts/install.js +4 -1
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -40,8 +40,11 @@ const dest = path.join(binDir, NAME + (isWindows ? ".exe" : ""));
|
|
|
40
40
|
fs.mkdirSync(binDir, { recursive: true });
|
|
41
41
|
|
|
42
42
|
function download(url, destPath) {
|
|
43
|
+
// --ssl-revoke-best-effort: on Windows (Schannel), avoid CRYPT_E_REVOCATION_OFFLINE
|
|
44
|
+
// errors when the certificate revocation list server is unreachable
|
|
45
|
+
const sslFlag = isWindows ? "--ssl-revoke-best-effort " : "";
|
|
43
46
|
execSync(
|
|
44
|
-
`curl --fail --location --silent --show-error --connect-timeout 10 --max-time 120 --output "${destPath}" "${url}"`,
|
|
47
|
+
`curl ${sslFlag}--fail --location --silent --show-error --connect-timeout 10 --max-time 120 --output "${destPath}" "${url}"`,
|
|
45
48
|
{ stdio: ["ignore", "ignore", "pipe"] }
|
|
46
49
|
);
|
|
47
50
|
}
|