sogtj 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -6,7 +6,7 @@ Pacote npm pequeno para iniciar a instalacao do iSOG pelo comando:
6
6
  npx -y sogtj
7
7
  ```
8
8
 
9
- Na versao `0.1.3`, o bootstrap suporta apenas Windows. O pacote baixa o
9
+ Na versao `0.1.4`, o bootstrap suporta apenas Windows. O pacote baixa o
10
10
  instalador publicado no R2, confere a integridade automaticamente e abre o
11
11
  instalador.
12
12
 
package/bin/sogtj.js CHANGED
@@ -9,7 +9,7 @@ const os = require("node:os");
9
9
  const path = require("node:path");
10
10
  const { pipeline } = require("node:stream/promises");
11
11
 
12
- const PACKAGE_VERSION = "0.1.3";
12
+ const PACKAGE_VERSION = "0.1.4";
13
13
  const INSTALLER_VERSION = "0.1.1";
14
14
  const DISPLAY_NAME = "iSOG";
15
15
  const DOWNLOAD_BASE = "https://sog.carlosguimaraes.us/sogtj";
@@ -139,7 +139,7 @@ async function ensureInstaller(config) {
139
139
  const actual = await sha256(config.installerPath);
140
140
  if (actual.toLowerCase() !== config.expectedSha256.toLowerCase()) {
141
141
  await fs.promises.rm(config.installerPath, { force: true });
142
- throw new Error(`SHA256 invalido para ${config.assetName}. Esperado ${config.expectedSha256}, obtido ${actual}.`);
142
+ throw new Error('O instalador baixado nao passou na verificacao de integridade. Tente executar o comando novamente.');
143
143
  }
144
144
  }
145
145
  }
@@ -166,7 +166,8 @@ async function main() {
166
166
  const config = getInstallConfig();
167
167
 
168
168
  if (args.dryRun) {
169
- console.log(JSON.stringify(config, null, 2));
169
+ const { expectedSha256, ...publicConfig } = config;
170
+ console.log(JSON.stringify({ ...publicConfig, integrityCheck: 'enabled' }, null, 2));
170
171
  return;
171
172
  }
172
173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogtj",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Instalador via npx para o iSOG.",
5
5
  "bin": {
6
6
  "sogtj": "bin/sogtj.js"