@salesforce/telemetry 4.0.1 → 4.0.3

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.
@@ -28,7 +28,7 @@ class TelemetryReporter extends kit_1.AsyncCreatable {
28
28
  */
29
29
  static async determineSfdxTelemetryEnabled() {
30
30
  if (!TelemetryReporter.config) {
31
- TelemetryReporter.config = await core_1.SfdxConfigAggregator.create({});
31
+ TelemetryReporter.config = await core_1.ConfigAggregator.create({});
32
32
  }
33
33
  const configValue = TelemetryReporter.config.getPropertyValue(core_1.SfConfigProperties.DISABLE_TELEMETRY);
34
34
  // SF_DISABLE_TELEMETRY is the proper name for this env that will be cheked by config.getPropertyValue. SFDX_DISABLE_INSIGHTS is present for backwards compatibility
@@ -38,7 +38,7 @@ class TelemetryReporter extends kit_1.AsyncCreatable {
38
38
  async init() {
39
39
  this.logger = await core_1.Logger.child('TelemetryReporter');
40
40
  if (!TelemetryReporter.config) {
41
- TelemetryReporter.config = await core_1.SfdxConfigAggregator.create({});
41
+ TelemetryReporter.config = await core_1.ConfigAggregator.create({});
42
42
  }
43
43
  this.config = TelemetryReporter.config;
44
44
  if (this.options.waitForConnection)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/telemetry",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Library for application insights",
5
5
  "main": "lib/exported",
6
6
  "repository": "forcedotcom/telemetry",
@@ -35,25 +35,25 @@
35
35
  "!lib/**/*.map"
36
36
  ],
37
37
  "dependencies": {
38
- "@salesforce/core": "^3.36.2",
38
+ "@salesforce/core": "^4.0.1",
39
39
  "@salesforce/ts-types": "^2.0.2",
40
- "applicationinsights": "^2.6.0",
40
+ "applicationinsights": "^2.7.0",
41
41
  "axios": "^1.4.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@salesforce/dev-config": "^4.0.1",
45
- "@salesforce/dev-scripts": "^5.0.1",
45
+ "@salesforce/dev-scripts": "^5.4.2",
46
46
  "@salesforce/prettier-config": "^0.0.3",
47
47
  "@salesforce/ts-sinon": "^1.4.7",
48
- "@typescript-eslint/eslint-plugin": "^5.59.7",
49
- "@typescript-eslint/parser": "^5.59.7",
48
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
49
+ "@typescript-eslint/parser": "^5.59.8",
50
50
  "chai": "^4.3.7",
51
- "eslint": "^8.41.0",
51
+ "eslint": "^8.42.0",
52
52
  "eslint-config-prettier": "^8.8.0",
53
53
  "eslint-config-salesforce": "^2.0.1",
54
54
  "eslint-config-salesforce-license": "^0.2.0",
55
55
  "eslint-config-salesforce-typescript": "^1.1.1",
56
- "eslint-plugin-header": "^3.0.0",
56
+ "eslint-plugin-header": "^3.1.1",
57
57
  "eslint-plugin-import": "2.27.5",
58
58
  "eslint-plugin-jsdoc": "^44.2.7",
59
59
  "husky": "^8.0.3",