@appland/scanner 1.74.6 → 1.75.1
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 +14 -0
- package/built/cli/scan/watchScan.js +1 -1
- package/built/cli/scan/watchScanTelemetry.js +1 -1
- package/built/report/scanResults.js +2 -1
- package/built/rules/lib/util.js +2 -2
- package/built/telemetry.js +4 -1
- package/built/{lib → util}/eventAggregator.js +0 -0
- package/built/{lib → util}/isAncestorPath.js +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@appland/scanner-v1.75.1](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.75.0...@appland/scanner-v1.75.1) (2023-02-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Upgrade @appland/models to v2.0.0 ([68dea5a](https://github.com/getappmap/appmap-js/commit/68dea5a0a0e313d6067acfda99281a0194b2d353))
|
|
7
|
+
|
|
8
|
+
# [@appland/scanner-v1.75.0](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.74.6...@appland/scanner-v1.75.0) (2023-01-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Report env var names ([6264cb6](https://github.com/getappmap/appmap-js/commit/6264cb6c73927a90fc350bfb1531d3a8dd97df69))
|
|
14
|
+
|
|
1
15
|
# [@appland/scanner-v1.74.6](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.74.5...@appland/scanner-v1.74.6) (2023-01-09)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -48,7 +48,7 @@ const configurationProvider_1 = require("../../configuration/configurationProvid
|
|
|
48
48
|
const telemetry_1 = __importDefault(require("../../telemetry"));
|
|
49
49
|
const events_1 = __importDefault(require("events"));
|
|
50
50
|
const watchScanTelemetry_1 = require("./watchScanTelemetry");
|
|
51
|
-
const isAncestorPath_1 = __importDefault(require("../../
|
|
51
|
+
const isAncestorPath_1 = __importDefault(require("../../util/isAncestorPath"));
|
|
52
52
|
function isDir(targetPath) {
|
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
54
|
try {
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.WatchScanTelemetry = void 0;
|
|
7
|
-
const eventAggregator_1 = __importDefault(require("../../
|
|
7
|
+
const eventAggregator_1 = __importDefault(require("../../util/eventAggregator"));
|
|
8
8
|
const scanResults_1 = require("../../report/scanResults");
|
|
9
9
|
class WatchScanTelemetry {
|
|
10
10
|
constructor(scanEvents) {
|
|
@@ -101,6 +101,7 @@ function sendScanResultsTelemetry(telemetry) {
|
|
|
101
101
|
numAppMaps: telemetry.numAppMaps,
|
|
102
102
|
numFindings: telemetry.numFindings,
|
|
103
103
|
},
|
|
104
|
-
})
|
|
104
|
+
}),
|
|
105
|
+
{ includeEnvironmentVariables: true };
|
|
105
106
|
}
|
|
106
107
|
exports.sendScanResultsTelemetry = sendScanResultsTelemetry;
|
package/built/rules/lib/util.js
CHANGED
|
@@ -33,8 +33,8 @@ function collectAppMapFiles(appmapFile, appmapDir) {
|
|
|
33
33
|
}
|
|
34
34
|
exports.collectAppMapFiles = collectAppMapFiles;
|
|
35
35
|
let isVerbose = false;
|
|
36
|
-
function verbose(v
|
|
37
|
-
if (v
|
|
36
|
+
function verbose(v) {
|
|
37
|
+
if (v !== undefined) {
|
|
38
38
|
isVerbose = v;
|
|
39
39
|
}
|
|
40
40
|
return isVerbose;
|
package/built/telemetry.js
CHANGED
|
@@ -159,11 +159,14 @@ class Telemetry {
|
|
|
159
159
|
}
|
|
160
160
|
return this._client;
|
|
161
161
|
}
|
|
162
|
-
static sendEvent(data) {
|
|
162
|
+
static sendEvent(data, options = { includeEnvironment: false }) {
|
|
163
163
|
try {
|
|
164
164
|
const transformedProperties = transformProps(Object.assign({ version: version, args: process.argv.slice(1).join(' ') }, data.properties));
|
|
165
165
|
const transformedMetrics = transformProps(data.metrics || {});
|
|
166
166
|
const properties = Object.assign({ 'common.source': name, 'common.os': os.platform(), 'common.platformversion': os.release(), 'common.arch': os.arch(), 'appmap.cli.machineId': Telemetry.machineId, 'appmap.cli.sessionId': Telemetry.session.id }, transformedProperties);
|
|
167
|
+
if (options.includeEnvironment) {
|
|
168
|
+
properties['common.environmentVariables'] = Object.keys(process.env).sort().join(',');
|
|
169
|
+
}
|
|
167
170
|
const event = {
|
|
168
171
|
name: `${name}/${data.name}`,
|
|
169
172
|
measurements: transformedMetrics,
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appland/scanner",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.75.1",
|
|
4
4
|
"description": "Analyze AppMaps for code flaws",
|
|
5
5
|
"bin": "built/cli.js",
|
|
6
6
|
"files": [
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@appland/client": "^1.5.0",
|
|
64
|
-
"@appland/models": "^
|
|
65
|
-
"@appland/openapi": "1.3.
|
|
64
|
+
"@appland/models": "^2.0.0",
|
|
65
|
+
"@appland/openapi": "1.3.3",
|
|
66
66
|
"@appland/sql-parser": "^1.5.0",
|
|
67
67
|
"@types/cli-progress": "^3.9.2",
|
|
68
68
|
"ajv": "^8.8.2",
|