jjpwrgem 0.5.0 → 0.5.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/binary.js CHANGED
@@ -1,6 +1,5 @@
1
1
  const { Package } = require("./binary-install");
2
2
  const os = require("os");
3
- const cTable = require("console.table");
4
3
  const libc = require("detect-libc");
5
4
  const { configureProxy } = require("axios-proxy-builder");
6
5
 
@@ -17,7 +16,7 @@ const {
17
16
  } = require("./package.json");
18
17
 
19
18
  const builderGlibcMajorVersion = glibcMinimum.major;
20
- const builderGlibcMInorVersion = glibcMinimum.series;
19
+ const builderGlibcMinorVersion = glibcMinimum.series;
21
20
 
22
21
  const getPlatform = () => {
23
22
  const rawOsType = os.type();
@@ -53,7 +52,7 @@ const getPlatform = () => {
53
52
  osType = "unknown-linux-musl-dynamic";
54
53
  } else if (libc.isNonGlibcLinuxSync()) {
55
54
  console.warn(
56
- "Your libc is neither glibc nor musl; trying static musl binary instead",
55
+ "Your libc is neither glibc nor musl; trying static musl binary instead"
57
56
  );
58
57
  osType = "unknown-linux-musl-static";
59
58
  } else {
@@ -63,12 +62,12 @@ const getPlatform = () => {
63
62
  let libcMinorVersion = splitLibcVersion[1];
64
63
  if (
65
64
  libcMajorVersion != builderGlibcMajorVersion ||
66
- libcMinorVersion < builderGlibcMInorVersion
65
+ libcMinorVersion < builderGlibcMinorVersion
67
66
  ) {
68
67
  // We can't run the glibc binaries, but we can run the static musl ones
69
68
  // if they exist
70
69
  console.warn(
71
- "Your glibc isn't compatible; trying static musl binary instead",
70
+ "Your glibc isn't compatible; trying static musl binary instead"
72
71
  );
73
72
  osType = "unknown-linux-musl-static";
74
73
  }
@@ -83,8 +82,8 @@ const getPlatform = () => {
83
82
  if (!platform) {
84
83
  error(
85
84
  `Platform with type "${rawOsType}" and architecture "${rawArchitecture}" is not supported by ${name}.\nYour system must be one of the following:\n\n${Object.keys(
86
- supportedPlatforms,
87
- ).join(",")}`,
85
+ supportedPlatforms
86
+ ).join(",")}`
88
87
  );
89
88
  }
90
89
 
package/install.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { install } = require("./binary");
4
- install(false);
4
+ install(false);
Binary file