npm package diff
Package: @forge/cli
Versions: 12.3.0-next.0-experimental-8a53773 - 12.3.0-next.2
File: package/out/bin/postinstall.js
Index: package/out/bin/postinstall.js
===================================================================
--- package/out/bin/postinstall.js
+++ package/out/bin/postinstall.js
@@ -4,25 +4,20 @@
const cli_shared_1 = require("@forge/cli-shared");
const local_file_storage_1 = require("../storage/local-file-storage");
const workers_starter_1 = require("../workers/workers-starter");
const version_info_1 = require("../command-line/version-info");
+const anon_user_id_1 = require("../command-line/anon-user-id");
const isSupportedShell_1 = require("../autocomplete/isSupportedShell");
const cached_config_service_1 = require("../service/cached-config-service");
-void (async () => {
- const ui = new cli_shared_1.CommandLineUI(() => true);
- const cachedConf = cli_shared_1.CachedConf.getCache(cli_shared_1.CONFIG_PROJECT_NAME);
- const configService = new cached_config_service_1.CachedConfigService(cachedConf);
- const nullCredentialGetter = {
- async getCredentials() {
- throw new Error('No credentials');
- }
- };
- const analyticsClientReporter = new analytics_client_1.AnalyticsClientReporter(new local_file_storage_1.LocalFileStorage(), configService, nullCredentialGetter);
- const cliDetails = (0, version_info_1.getCLIDetails)();
- const attributes = { version: cliDetails?.version };
- await analyticsClientReporter.reportSuccess('postinstall', attributes);
- if ((0, isSupportedShell_1.isSupportedShell)()) {
- ui.info(cli_shared_1.Text.autocomplete.postinstall);
- }
- new workers_starter_1.WorkersStarter(undefined);
-})();
+const ui = new cli_shared_1.CommandLineUI(() => true);
+const cachedConf = cli_shared_1.CachedConf.getCache(cli_shared_1.CONFIG_PROJECT_NAME);
+const configService = new cached_config_service_1.CachedConfigService(cachedConf);
+const analyticsClientReporter = new analytics_client_1.AnalyticsClientReporter(new local_file_storage_1.LocalFileStorage(), configService);
+const cliDetails = (0, version_info_1.getCLIDetails)();
+const attributes = { version: cliDetails?.version };
+const anonId = (0, anon_user_id_1.getAnonId)(true);
+analyticsClientReporter.reportSuccess('postinstall', anonId, attributes);
+if ((0, isSupportedShell_1.isSupportedShell)()) {
+ ui.info(cli_shared_1.Text.autocomplete.postinstall);
+}
+new workers_starter_1.WorkersStarter(undefined);
//# sourceMappingURL=postinstall.js.map
\ No newline at end of file