dossiers 0.1.0 → 0.4.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.
Files changed (2) hide show
  1. package/install.js +5 -7
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -4,7 +4,7 @@ const fs = require("fs");
4
4
  const https = require("https");
5
5
 
6
6
  const platform = `${os.platform()}-${os.arch()}`;
7
- const version = "0.1.0";
7
+ const version = "0.4.2";
8
8
  const targets = {
9
9
  "linux-x64": "dossiers-linux-x86_64",
10
10
  "linux-arm64": "dossiers-linux-aarch64",
@@ -48,7 +48,7 @@ function download(url, destination) {
48
48
 
49
49
  if (res.statusCode !== 200) {
50
50
  return reject(
51
- new Error(`Download failed with status ${res.statusCode}`)
51
+ new Error(`Download failed with status ${res.statusCode}`),
52
52
  );
53
53
  }
54
54
 
@@ -56,11 +56,9 @@ function download(url, destination) {
56
56
  file.on("finish", () => file.close(resolve));
57
57
  };
58
58
 
59
- https
60
- .get(url, handleResponse)
61
- .on("error", (err) => {
62
- fs.rm(destination, { force: true }, () => reject(err));
63
- });
59
+ https.get(url, handleResponse).on("error", (err) => {
60
+ fs.rm(destination, { force: true }, () => reject(err));
61
+ });
64
62
  });
65
63
  }
66
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dossiers",
3
- "version": "0.1.0",
3
+ "version": "0.4.2",
4
4
  "bin": {
5
5
  "dossiers": "run.js"
6
6
  },