@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggplanty/mycli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A simple CLI demo built with Go",
5
5
  "bin": {
6
6
  "mycli": "scripts/run.js"
@@ -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
  }