@salesforce/plugin-telemetry 2.1.5 → 2.2.0
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/commandExecution.d.ts +6 -4
- package/lib/commandExecution.js +12 -36
- package/lib/commandExecution.js.map +1 -1
- package/lib/commands/telemetry.d.ts +9 -3
- package/lib/commands/telemetry.js +10 -3
- package/lib/commands/telemetry.js.map +1 -1
- package/lib/hooks/telemetryPrerun.js +40 -25
- package/lib/hooks/telemetryPrerun.js.map +1 -1
- package/lib/uploader.js +1 -23
- package/lib/uploader.js.map +1 -1
- package/oclif.manifest.json +10 -2
- package/package.json +7 -6
|
@@ -6,10 +6,10 @@ export type CommandExecutionOptions = {
|
|
|
6
6
|
argv: string[];
|
|
7
7
|
config: Partial<Config>;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type PluginInfo = {
|
|
10
10
|
name: Optional<string>;
|
|
11
11
|
version: Optional<string>;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
export declare class CommandExecution extends AsyncCreatable {
|
|
14
14
|
status?: number;
|
|
15
15
|
private specifiedFlags;
|
|
@@ -18,8 +18,10 @@ export declare class CommandExecution extends AsyncCreatable {
|
|
|
18
18
|
private argv;
|
|
19
19
|
private config;
|
|
20
20
|
private vcs?;
|
|
21
|
-
private
|
|
22
|
-
private
|
|
21
|
+
private orgId?;
|
|
22
|
+
private devhubId?;
|
|
23
|
+
private orgApiVersion?;
|
|
24
|
+
private devhubApiVersion?;
|
|
23
25
|
constructor(options: CommandExecutionOptions);
|
|
24
26
|
/**
|
|
25
27
|
* Determines whether the SFDX project is using GIT for version control or some other VCS.
|
package/lib/commandExecution.js
CHANGED
|
@@ -48,33 +48,6 @@ class CommandExecution extends kit_1.AsyncCreatable {
|
|
|
48
48
|
}
|
|
49
49
|
toJson() {
|
|
50
50
|
const pluginInfo = this.getPluginInfo();
|
|
51
|
-
let oclifPerf = {};
|
|
52
|
-
try {
|
|
53
|
-
oclifPerf = {
|
|
54
|
-
'oclif.runMs': core_1.Performance.highlights.runTime,
|
|
55
|
-
// The amount of time (ms) required for oclif to get to the point where it can start running the command.
|
|
56
|
-
'oclif.initMs': core_1.Performance.highlights.initTime,
|
|
57
|
-
// The amount of time (ms) required for oclif to load the Config.
|
|
58
|
-
'oclif.configLoadMs': core_1.Performance.highlights.configLoadTime,
|
|
59
|
-
// The amount of time (ms) required for oclif to load the command.
|
|
60
|
-
'oclif.commandLoadMs': core_1.Performance.highlights.commandLoadTime,
|
|
61
|
-
// The amount of time (ms) required for oclif to load core (i.e. bundled) plugins.
|
|
62
|
-
'oclif.corePluginsLoadMs': core_1.Performance.highlights.corePluginsLoadTime,
|
|
63
|
-
// The amount of time (ms) required for oclif to load user plugins.
|
|
64
|
-
'oclif.userPluginsLoadMs': core_1.Performance.highlights.userPluginsLoadTime,
|
|
65
|
-
// The amount of time (ms) required for oclif to load linked plugins.
|
|
66
|
-
'oclif.linkedPluginsLoadMs': core_1.Performance.highlights.linkedPluginsLoadTime,
|
|
67
|
-
// The amount of time (ms) required for oclif to run all the init hooks
|
|
68
|
-
'oclif.initHookMs': core_1.Performance.highlights.hookRunTimes.init?.total,
|
|
69
|
-
// The amount of time (ms) required for oclif to run all the prerun hooks
|
|
70
|
-
'oclif.prerunHookMs': core_1.Performance.highlights.hookRunTimes.prerun?.total,
|
|
71
|
-
// The amount of time (ms) required for oclif to run all the postrun hooks
|
|
72
|
-
'oclif.postrunHookMs': core_1.Performance.highlights.hookRunTimes.postrun?.total,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
catch (err) {
|
|
76
|
-
(0, debugger_1.debug)('Unable to get oclif performance metrics', err);
|
|
77
|
-
}
|
|
78
51
|
return {
|
|
79
52
|
eventName: 'COMMAND_EXECUTION',
|
|
80
53
|
// System information
|
|
@@ -108,14 +81,11 @@ class CommandExecution extends kit_1.AsyncCreatable {
|
|
|
108
81
|
// Don't log status or timestamp as a number, otherwise vscode will think it is a metric
|
|
109
82
|
status: (0, ts_types_1.isNumber)(this.status) ? this.status.toString() : undefined,
|
|
110
83
|
timestamp: String(Date.now()),
|
|
111
|
-
// Oclif Performance Metrics
|
|
112
|
-
...oclifPerf,
|
|
113
84
|
// Salesforce Information
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
orgUsername: this.orgUsername,
|
|
85
|
+
orgId: this.orgId,
|
|
86
|
+
devhubId: this.devhubId,
|
|
87
|
+
orgApiVersion: this.orgApiVersion,
|
|
88
|
+
devhubApiVersion: this.devhubApiVersion,
|
|
119
89
|
};
|
|
120
90
|
}
|
|
121
91
|
getPluginInfo() {
|
|
@@ -142,8 +112,14 @@ class CommandExecution extends kit_1.AsyncCreatable {
|
|
|
142
112
|
catch (error) {
|
|
143
113
|
(0, debugger_1.debug)('Error parsing flags');
|
|
144
114
|
}
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
115
|
+
this.orgId = flags['target-org'] ? flags['target-org'].getOrgId() : null;
|
|
116
|
+
this.devhubId = flags['target-dev-hub'] ? flags['target-dev-hub'].getOrgId() : null;
|
|
117
|
+
this.orgApiVersion = flags['target-org']
|
|
118
|
+
? flags['target-org'].getConnection().getApiVersion()
|
|
119
|
+
: null;
|
|
120
|
+
this.devhubApiVersion = flags['target-dev-hub']
|
|
121
|
+
? flags['target-dev-hub'].getConnection().getApiVersion()
|
|
122
|
+
: null;
|
|
147
123
|
this.determineSpecifiedFlags(argv, flags, flagDefinitions);
|
|
148
124
|
this.vcs = await CommandExecution.resolveVCSInfo();
|
|
149
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandExecution.js","sourceRoot":"","sources":["../src/commandExecution.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,yBAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"commandExecution.js","sourceRoot":"","sources":["../src/commandExecution.ts"],"names":[],"mappings":";AAAA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AAK,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACtC,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,IAAK,eAAe,CAAC,QAAQ,CAAC,CAAC,IAAe,CAAC;gBAC1F,uFAAuF;gBACvF,kDAAkD;gBAClD,IAAI,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,KAAK,SAAS,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;oBAClF,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;oBACpC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC5C;qBAAM,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,MAAM,QAAQ,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;oBAC5E,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBACnC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC5C;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CACF;AAlKD,4CAkKC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type TelemetryGetResult = {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
cliId: string;
|
|
5
|
+
tmpDir: string;
|
|
6
|
+
cacheDir: string;
|
|
7
|
+
};
|
|
8
|
+
export default class TelemetryGet extends SfCommand<TelemetryGetResult> {
|
|
3
9
|
static hidden: boolean;
|
|
4
|
-
run(): Promise<
|
|
10
|
+
run(): Promise<TelemetryGetResult>;
|
|
5
11
|
}
|
|
@@ -6,17 +6,24 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const
|
|
9
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
10
10
|
const telemetry_1 = require("@salesforce/telemetry");
|
|
11
11
|
const telemetry_2 = require("../telemetry");
|
|
12
|
-
class TelemetryGet extends
|
|
12
|
+
class TelemetryGet extends sf_plugins_core_1.SfCommand {
|
|
13
13
|
async run() {
|
|
14
14
|
const enabled = await telemetry_1.default.determineSfdxTelemetryEnabled();
|
|
15
|
+
const cliId = global.cliTelemetry?.getCLIId();
|
|
15
16
|
this.log(`Telemetry is ${enabled ? 'enabled' : 'disabled'}.`);
|
|
16
17
|
this.log(`Telemetry tmp directory is ${telemetry_2.default.tmpDir}.`);
|
|
17
18
|
this.log(`Telemetry cache directory is ${this.config.cacheDir}.`);
|
|
18
19
|
this.log();
|
|
19
|
-
this.log(`Salesforce CLI ID is ${
|
|
20
|
+
this.log(`Salesforce CLI ID is ${cliId}.`);
|
|
21
|
+
return {
|
|
22
|
+
enabled,
|
|
23
|
+
cliId,
|
|
24
|
+
tmpDir: telemetry_2.default.tmpDir,
|
|
25
|
+
cacheDir: this.config.cacheDir,
|
|
26
|
+
};
|
|
20
27
|
}
|
|
21
28
|
}
|
|
22
29
|
exports.default = TelemetryGet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../src/commands/telemetry.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../src/commands/telemetry.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,iEAAwD;AACxD,qDAAsD;AACtD,4CAAqC;AAYrC,MAAqB,YAAa,SAAQ,2BAA6B;IAG9D,KAAK,CAAC,GAAG;QACd,MAAM,OAAO,GAAG,MAAM,mBAAiB,CAAC,6BAA6B,EAAE,CAAC;QACxE,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC;QAE9C,IAAI,CAAC,GAAG,CAAC,gBAAgB,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC,GAAG,CAAC,8BAA8B,mBAAS,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5D,IAAI,CAAC,GAAG,CAAC,gCAAgC,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClE,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,IAAI,CAAC,GAAG,CAAC,wBAAwB,KAAK,GAAG,CAAC,CAAC;QAE3C,OAAO;YACL,OAAO;YACP,KAAK;YACL,MAAM,EAAE,mBAAS,CAAC,MAAM;YACxB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;SAC/B,CAAC;IACJ,CAAC;;AAnBH,+BAoBC;AAnBe,mBAAM,GAAG,IAAI,CAAC"}
|
|
@@ -27,6 +27,7 @@ const hook = async function (options) {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
try {
|
|
30
|
+
const errors = [];
|
|
30
31
|
// Instantiating telemetry shows data collection warning.
|
|
31
32
|
// Adding this to the global so that telemetry events are sent even when different
|
|
32
33
|
// versions of this plugin are in use by the CLI.
|
|
@@ -65,8 +66,38 @@ const hook = async function (options) {
|
|
|
65
66
|
});
|
|
66
67
|
(0, debugger_1.debug)('Setting up process exit handler');
|
|
67
68
|
process.once('exit', (status) => {
|
|
69
|
+
let oclifPerf = {};
|
|
70
|
+
try {
|
|
71
|
+
oclifPerf = {
|
|
72
|
+
'oclif.runMs': core_1.Performance.highlights.runTime,
|
|
73
|
+
// The amount of time (ms) required for oclif to get to the point where it can start running the command.
|
|
74
|
+
'oclif.initMs': core_1.Performance.highlights.initTime,
|
|
75
|
+
// The amount of time (ms) required for oclif to load the Config.
|
|
76
|
+
'oclif.configLoadMs': core_1.Performance.highlights.configLoadTime,
|
|
77
|
+
// The amount of time (ms) required for oclif to load the command.
|
|
78
|
+
'oclif.commandLoadMs': core_1.Performance.highlights.commandLoadTime,
|
|
79
|
+
// The amount of time (ms) required for oclif to load core (i.e. bundled) plugins.
|
|
80
|
+
'oclif.corePluginsLoadMs': core_1.Performance.highlights.corePluginsLoadTime,
|
|
81
|
+
// The amount of time (ms) required for oclif to load user plugins.
|
|
82
|
+
'oclif.userPluginsLoadMs': core_1.Performance.highlights.userPluginsLoadTime,
|
|
83
|
+
// The amount of time (ms) required for oclif to load linked plugins.
|
|
84
|
+
'oclif.linkedPluginsLoadMs': core_1.Performance.highlights.linkedPluginsLoadTime,
|
|
85
|
+
// The amount of time (ms) required for oclif to run all the init hooks
|
|
86
|
+
'oclif.initHookMs': core_1.Performance.highlights.hookRunTimes.init?.total,
|
|
87
|
+
// The amount of time (ms) required for oclif to run all the prerun hooks
|
|
88
|
+
'oclif.prerunHookMs': core_1.Performance.highlights.hookRunTimes.prerun?.total,
|
|
89
|
+
// The amount of time (ms) required for oclif to run all the postrun hooks
|
|
90
|
+
'oclif.postrunHookMs': core_1.Performance.highlights.hookRunTimes.postrun?.total,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
(0, debugger_1.debug)('Unable to get oclif performance metrics', err);
|
|
95
|
+
}
|
|
96
|
+
for (const { event, error } of errors) {
|
|
97
|
+
telemetry.recordError(error, { ...event, ...oclifPerf });
|
|
98
|
+
}
|
|
68
99
|
commandExecution.status = status;
|
|
69
|
-
telemetry.record(commandExecution.toJson());
|
|
100
|
+
telemetry.record({ ...commandExecution.toJson(), ...oclifPerf });
|
|
70
101
|
if (process.listenerCount('exit') >= 20) {
|
|
71
102
|
// On exit listeners have been a problem in the past. Make sure we don't accumulate too many...
|
|
72
103
|
// This could be from too many plugins. If we start getting this, log number of plugins too.
|
|
@@ -89,30 +120,14 @@ const hook = async function (options) {
|
|
|
89
120
|
// At this point, any other events during the CLI lifecycle should be logged.
|
|
90
121
|
telemetry.upload();
|
|
91
122
|
});
|
|
92
|
-
// Log command errors to the server.
|
|
93
|
-
//
|
|
94
|
-
process.on('cmdError',
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
try {
|
|
101
|
-
orgType = org && (await org.determineIfDevHubOrg()) ? 'devhub' : undefined;
|
|
102
|
-
if (!orgType && org) {
|
|
103
|
-
await org.checkScratchOrg();
|
|
104
|
-
orgType = 'scratch';
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
catch (err) {
|
|
108
|
-
/* leave the org as unknown for app insights */
|
|
109
|
-
}
|
|
110
|
-
// Telemetry will scrub the exception
|
|
111
|
-
telemetry.recordError(cmdErr, Object.assign(commandExecution.toJson(), {
|
|
112
|
-
eventName: 'COMMAND_ERROR',
|
|
113
|
-
apiVersion,
|
|
114
|
-
orgType,
|
|
115
|
-
}));
|
|
123
|
+
// Log command errors to the server.
|
|
124
|
+
// Record failed command executions from commands that extend SfdxCommand
|
|
125
|
+
process.on('cmdError', (error) => {
|
|
126
|
+
errors.push({ error, event: { ...commandExecution.toJson(), eventName: 'COMMAND_ERROR' } });
|
|
127
|
+
});
|
|
128
|
+
// Record failed command executions from commands that extend SfCommand
|
|
129
|
+
process.on('sfCommandError', (error) => {
|
|
130
|
+
errors.push({ error, event: { ...commandExecution.toJson(), eventName: 'COMMAND_ERROR' } });
|
|
116
131
|
});
|
|
117
132
|
const commonDataMemoized = () => {
|
|
118
133
|
if (!commonData) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryPrerun.js","sourceRoot":"","sources":["../../src/hooks/telemetryPrerun.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,+BAA4B;AAC5B,sCAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"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
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Uploader = void 0;
|
|
10
|
-
const core_1 = require("@salesforce/core");
|
|
11
10
|
const telemetry_1 = require("@salesforce/telemetry");
|
|
12
11
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
13
12
|
const telemetry_2 = require("./telemetry");
|
|
@@ -49,20 +48,12 @@ class Uploader {
|
|
|
49
48
|
try {
|
|
50
49
|
const events = await this.telemetry.read();
|
|
51
50
|
for (const event of events) {
|
|
51
|
+
event.telemetryVersion = debugger_1.version;
|
|
52
52
|
const eventType = (0, ts_types_1.asString)(event.type) || telemetry_2.default.EVENT;
|
|
53
53
|
const eventName = (0, ts_types_1.asString)(event.eventName) || 'UNKNOWN';
|
|
54
54
|
delete event.type;
|
|
55
55
|
delete event.eventName;
|
|
56
56
|
if (eventType === telemetry_2.default.EVENT) {
|
|
57
|
-
event.telemetryVersion = debugger_1.version;
|
|
58
|
-
// Resolve orgs for all events.
|
|
59
|
-
// eslint-disable-next-line no-await-in-loop
|
|
60
|
-
event.orgId = await getOrgId(false, (0, ts_types_1.asString)(event.orgUsername));
|
|
61
|
-
// eslint-disable-next-line no-await-in-loop
|
|
62
|
-
event.devHubId = await getOrgId(true, (0, ts_types_1.asString)(event.devHubUsername));
|
|
63
|
-
// Usernames are GDPR info, so don't log.
|
|
64
|
-
delete event.orgUsername;
|
|
65
|
-
delete event.devHubUsername;
|
|
66
57
|
reporter.sendTelemetryEvent(eventName, event);
|
|
67
58
|
}
|
|
68
59
|
else if (eventType === telemetry_2.default.EXCEPTION) {
|
|
@@ -99,17 +90,4 @@ class Uploader {
|
|
|
99
90
|
}
|
|
100
91
|
}
|
|
101
92
|
exports.Uploader = Uploader;
|
|
102
|
-
const getOrgId = async (isDevHub, aliasOrUsername) => {
|
|
103
|
-
const orgOptions = { isDevHub };
|
|
104
|
-
// If no aliasOrUsername, it will try to get the default
|
|
105
|
-
if (aliasOrUsername) {
|
|
106
|
-
orgOptions.aliasOrUsername = aliasOrUsername;
|
|
107
|
-
}
|
|
108
|
-
try {
|
|
109
|
-
return (await core_1.Org.create(orgOptions)).getOrgId();
|
|
110
|
-
}
|
|
111
|
-
catch (error) {
|
|
112
|
-
// Don't do anything, there is no specified or default.
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
93
|
//# sourceMappingURL=uploader.js.map
|
package/lib/uploader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.js","sourceRoot":"","sources":["../src/uploader.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"uploader.js","sourceRoot":"","sources":["../src/uploader.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,qDAAsD;AACtD,mDAA4D;AAC5D,2CAAoC;AACpC,yCAA4C;AAM5C,MAAM,OAAO,GAAG,gBAAgB,CAAC;AACjC,MAAM,gBAAgB,GAAG,sCAAsC,CAAC;AAEhE,MAAa,QAAQ;IACnB,YAA4B,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IAAG,CAAC;IAEpD;;OAEG;IACI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE,iBAAyB;QACpE,MAAM,SAAS,GAAG,CAAC,MAAM,CAAC,YAAY,GAAG,MAAM,mBAAS,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;QAClG,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;QACzC,MAAM,QAAQ,CAAC,eAAe,EAAE,CAAC;IACnC,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,eAAe;QAC3B,IAAI,QAA2B,CAAC;QAChC,IAAI;YACF,QAAQ,GAAG,MAAM,mBAAiB,CAAC,MAAM,CAAC;gBACxC,OAAO,EAAE,OAAO;gBAChB,GAAG,EAAE,gBAAgB;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,IAAI,SAAS,CAAC;oBACrD,KAAK,CAAC,OAAO,GAAG,IAAA,mBAAQ,EAAC,WAAW,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC;oBAC3D,KAAK,CAAC,KAAK,GAAG,IAAA,mBAAQ,EAAC,WAAW,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;oBACvD,QAAQ,CAAC,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;iBAC/C;aACF;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,KAAK,GAAG,GAAc,CAAC;YAC7B,IAAA,gBAAK,EAAC,8CAA8C,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;SACtE;gBAAS;YACR,IAAI;gBACF,6BAA6B;gBAC7B,QAAQ,CAAC,IAAI,EAAE,CAAC;aACjB;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,KAAK,GAAG,GAAc,CAAC;gBAC7B,IAAA,gBAAK,EAAC,sCAAsC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aAC9D;oBAAS;gBACR,mCAAmC;gBACnC,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;aAC9B;SACF;IACH,CAAC;CACF;AAxED,4BAwEC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.2.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"telemetry": {
|
|
5
5
|
"id": "telemetry",
|
|
@@ -9,7 +9,15 @@
|
|
|
9
9
|
"pluginType": "core",
|
|
10
10
|
"hidden": true,
|
|
11
11
|
"aliases": [],
|
|
12
|
-
"flags": {
|
|
12
|
+
"flags": {
|
|
13
|
+
"json": {
|
|
14
|
+
"name": "json",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Format output as json.",
|
|
17
|
+
"helpGroup": "GLOBAL",
|
|
18
|
+
"allowNo": false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
13
21
|
"args": {}
|
|
14
22
|
}
|
|
15
23
|
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-telemetry",
|
|
3
3
|
"description": "Command usage and error telemetry for the Salesforce CLI",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^2.8.2",
|
|
9
|
-
"@salesforce/core": "^3.
|
|
10
|
-
"@salesforce/
|
|
9
|
+
"@salesforce/core": "^3.35.0",
|
|
10
|
+
"@salesforce/sf-plugins-core": "^2.3.0",
|
|
11
|
+
"@salesforce/telemetry": "^3.2.25",
|
|
11
12
|
"debug": "^4.3.4",
|
|
12
13
|
"tslib": "^2"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
16
|
"@oclif/plugin-command-snapshot": "^3.3.10",
|
|
16
17
|
"@oclif/plugin-help": "^5.2.8",
|
|
17
|
-
"@salesforce/cli-plugins-testkit": "^3.
|
|
18
|
+
"@salesforce/cli-plugins-testkit": "^3.3.4",
|
|
18
19
|
"@salesforce/dev-config": "^3.0.1",
|
|
19
20
|
"@salesforce/dev-scripts": "^4.3.0",
|
|
20
21
|
"@salesforce/plugin-command-reference": "^1.6.5",
|
|
@@ -202,7 +203,7 @@
|
|
|
202
203
|
}
|
|
203
204
|
},
|
|
204
205
|
"sfdx": {
|
|
205
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-telemetry/2.
|
|
206
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-telemetry/2.
|
|
206
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-telemetry/2.2.0.crt",
|
|
207
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-telemetry/2.2.0.sig"
|
|
207
208
|
}
|
|
208
209
|
}
|