@salesforce/telemetry 3.0.1 → 3.1.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/CHANGELOG.md +7 -1
- package/lib/appInsights.js +4 -4
- package/lib/exported.js +1 -1
- package/lib/telemetryReporter.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## [3.1.0](https://github.com/forcedotcom/telemetry/compare/v3.0.0...v3.1.0) (2021-11-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* bump version of core and axios ([376ae9c](https://github.com/forcedotcom/telemetry/commit/376ae9c2c2c26517f2ede7e1ac7b065caeca9390))
|
|
6
11
|
|
|
7
12
|
|
|
8
13
|
### Bug Fixes
|
|
@@ -11,6 +16,7 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
11
16
|
* replace homedir ([2bcb2ed](https://github.com/forcedotcom/telemetry/commit/2bcb2ede66dc7ef3c14cb40d530fb34530b84147))
|
|
12
17
|
* sanitizing exception strings ([b12c52c](https://github.com/forcedotcom/telemetry/commit/b12c52cad97b736bcb0e5968c8427ae89f0d8397))
|
|
13
18
|
* sinon types match sinon ([4cbefbf](https://github.com/forcedotcom/telemetry/commit/4cbefbf4ded50b4fdd1f451e27aba449c886b481))
|
|
19
|
+
* typescript bump and fixes ([012bcff](https://github.com/forcedotcom/telemetry/commit/012bcffee2655705b0e97684eec20b81d3f9e6f2))
|
|
14
20
|
|
|
15
21
|
## 3.0.0 (2021-07-08)
|
|
16
22
|
|
package/lib/appInsights.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppInsights = exports.buildPropertiesAndMeasurements = exports.getCpus = exports.getPlatformVersion = void 0;
|
|
3
|
+
exports.AppInsights = exports.buildPropertiesAndMeasurements = exports.getCpus = exports.getPlatformVersion = exports.TelemetryClient = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -54,13 +54,13 @@ function buildPropertiesAndMeasurements(attributes) {
|
|
|
54
54
|
const measurements = {};
|
|
55
55
|
Object.keys(attributes).forEach((key) => {
|
|
56
56
|
const value = attributes[key];
|
|
57
|
-
if (ts_types_1.isString(value)) {
|
|
57
|
+
if ((0, ts_types_1.isString)(value)) {
|
|
58
58
|
properties[key] = value.replace(homeDir, '~');
|
|
59
59
|
}
|
|
60
|
-
else if (ts_types_1.isNumber(value)) {
|
|
60
|
+
else if ((0, ts_types_1.isNumber)(value)) {
|
|
61
61
|
measurements[key] = value;
|
|
62
62
|
}
|
|
63
|
-
else if (ts_types_1.isBoolean(value)) {
|
|
63
|
+
else if ((0, ts_types_1.isBoolean)(value)) {
|
|
64
64
|
properties[key] = value.toString();
|
|
65
65
|
}
|
|
66
66
|
});
|
package/lib/exported.js
CHANGED
|
@@ -13,7 +13,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
o[k2] = m[k];
|
|
14
14
|
}));
|
|
15
15
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const telemetryReporter_1 = require("./telemetryReporter");
|
package/lib/telemetryReporter.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/telemetry",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Library for application insights",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"repository": "forcedotcom/telemetry",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"!lib/**/*.map"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@salesforce/core": "^2.
|
|
36
|
+
"@salesforce/core": "^2.31.0",
|
|
37
37
|
"@salesforce/ts-types": "^1.2.1",
|
|
38
38
|
"applicationinsights": "^1.4.0",
|
|
39
|
-
"axios": "^0.21.
|
|
39
|
+
"axios": "^0.21.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@salesforce/dev-config": "^2.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"prettier": "^2.0.5",
|
|
61
61
|
"sinon": "^9.0.2",
|
|
62
62
|
"ts-node": "^8.10.2",
|
|
63
|
-
"typescript": "^
|
|
63
|
+
"typescript": "^4.1.3"
|
|
64
64
|
},
|
|
65
65
|
"types": "lib/exported.d.ts",
|
|
66
66
|
"publishConfig": {
|