heroku 8.11.3 → 8.11.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/lib/global_telemetry.js +4 -0
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/lib/global_telemetry.js
CHANGED
|
@@ -15,6 +15,7 @@ const path = require('path');
|
|
|
15
15
|
const { version } = require('../package.json');
|
|
16
16
|
const root = path.resolve(__dirname, '../package.json');
|
|
17
17
|
const isDev = process.env.IS_DEV_ENVIRONMENT === 'true';
|
|
18
|
+
const isTelemetryDisabled = process.env.DISABLE_TELEMETRY === 'true';
|
|
18
19
|
function getToken() {
|
|
19
20
|
const config = new core_1.Config({ root });
|
|
20
21
|
const heroku = new command_1.APIClient(config);
|
|
@@ -106,6 +107,9 @@ function reportCmdNotFound(config) {
|
|
|
106
107
|
exports.reportCmdNotFound = reportCmdNotFound;
|
|
107
108
|
async function sendTelemetry(currentTelemetry, rollbarCb) {
|
|
108
109
|
// send telemetry to honeycomb and rollbar
|
|
110
|
+
if (isTelemetryDisabled) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
109
113
|
const telemetry = currentTelemetry;
|
|
110
114
|
if (telemetry instanceof Error) {
|
|
111
115
|
await Promise.all([
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heroku",
|
|
3
3
|
"description": "CLI to interact with Heroku",
|
|
4
|
-
"version": "8.11.
|
|
4
|
+
"version": "8.11.4",
|
|
5
5
|
"author": "Jeff Dickey @jdxcode",
|
|
6
6
|
"bin": "./bin/run",
|
|
7
7
|
"bugs": "https://github.com/heroku/cli/issues",
|
|
@@ -359,5 +359,5 @@
|
|
|
359
359
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
360
360
|
},
|
|
361
361
|
"types": "lib/index.d.ts",
|
|
362
|
-
"gitHead": "
|
|
362
|
+
"gitHead": "501330bcb81e9c6c80802a84cc059fb5372f442a"
|
|
363
363
|
}
|