@apollo/rover 0.8.0 → 0.8.1

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 (3) hide show
  1. package/binary.js +10 -8
  2. package/package.json +2 -2
  3. package/run.js +1 -1
package/binary.js CHANGED
@@ -100,19 +100,21 @@ const getBinary = () => {
100
100
  return binary;
101
101
  };
102
102
 
103
- const install = () => {
103
+ const install = (suppressLogs = false) => {
104
104
  const binary = getBinary();
105
105
  const proxy = configureProxy(binary.url);
106
106
  // these messages are duplicated in `src/command/install/mod.rs`
107
107
  // for the curl installer.
108
- console.log(
109
- "If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
110
- );
111
- console.log(
112
- "You can check out our documentation at https://go.apollo.dev/r/docs."
113
- );
108
+ if (!suppressLogs) {
109
+ console.error(
110
+ "If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
111
+ );
112
+ console.error(
113
+ "You can check out our documentation at https://go.apollo.dev/r/docs."
114
+ );
115
+ }
114
116
 
115
- return binary.install(proxy);
117
+ return binary.install(proxy, suppressLogs);
116
118
  };
117
119
 
118
120
  const run = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo/rover",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "The new Apollo CLI",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  "homepage": "https://github.com/apollographql/rover#readme",
39
39
  "dependencies": {
40
40
  "axios-proxy-builder": "^0.1.1",
41
- "binary-install": "^1.0.2",
41
+ "binary-install": "^1.0.6",
42
42
  "console.table": "^0.10.0",
43
43
  "detect-libc": "^2.0.0"
44
44
  },
package/run.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { run, install: maybeInstall } = require("./binary");
4
- maybeInstall().then(run);
4
+ maybeInstall(true).then(run);