@pablozaiden/installer 0.0.4 → 0.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/update.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pablozaiden/installer",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Reusable GitHub release binary installer and updater utilities",
5
5
  "repository": {
6
6
  "type": "git",
package/src/update.ts CHANGED
@@ -328,7 +328,6 @@ async function stageInstalledBinaryReplacement(
328
328
  const targetPath = target.targetPath;
329
329
  let tempDirectory: string | undefined;
330
330
  let tempPath: string | undefined;
331
- let tempCreated = false;
332
331
  let staged = false;
333
332
 
334
333
  try {
@@ -343,7 +342,6 @@ async function stageInstalledBinaryReplacement(
343
342
  const payload = new Uint8Array(await response.arrayBuffer());
344
343
  await verifyReleaseAssetChecksum(asset, payload, checksumPolicy, dependencies);
345
344
  await dependencies.writeBinary(tempPath, payload);
346
- tempCreated = true;
347
345
 
348
346
  const installedBinaryStat = await dependencies.statFile(targetPath);
349
347
  const executableMode = installedBinaryStat.mode & 0o777;