@appland/scanner 1.75.0 → 1.76.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@appland/scanner-v1.76.0](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.75.1...@appland/scanner-v1.76.0) (2023-02-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * Show a warning when watch scanning fails ([19e782c](https://github.com/getappmap/appmap-js/commit/19e782c4ab4571b428c98c4b2a3957fac5d57c93))
7
+
8
+ # [@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)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Upgrade @appland/models to v2.0.0 ([68dea5a](https://github.com/getappmap/appmap-js/commit/68dea5a0a0e313d6067acfda99281a0194b2d353))
14
+
1
15
  # [@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)
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("../../lib/isAncestorPath"));
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 {
@@ -77,6 +77,7 @@ class Watcher {
77
77
  // passing plain async function doesn't work (?)
78
78
  this.queue = (0, async_1.queue)((0, node_util_1.callbackify)(this.scan.bind(this)), 2);
79
79
  watchScanTelemetry_1.WatchScanTelemetry.watch(this.scanEventEmitter);
80
+ this.queue.error((error, task) => console.warn(`Problem processing ${task}:\n`, error));
80
81
  }
81
82
  watch() {
82
83
  return __awaiter(this, void 0, void 0, function* () {
@@ -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("../../lib/eventAggregator"));
7
+ const eventAggregator_1 = __importDefault(require("../../util/eventAggregator"));
8
8
  const scanResults_1 = require("../../report/scanResults");
9
9
  class WatchScanTelemetry {
10
10
  constructor(scanEvents) {
@@ -33,8 +33,8 @@ function collectAppMapFiles(appmapFile, appmapDir) {
33
33
  }
34
34
  exports.collectAppMapFiles = collectAppMapFiles;
35
35
  let isVerbose = false;
36
- function verbose(v = null) {
37
- if (v === true || v === false) {
36
+ function verbose(v) {
37
+ if (v !== undefined) {
38
38
  isVerbose = v;
39
39
  }
40
40
  return isVerbose;
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/scanner",
3
- "version": "1.75.0",
3
+ "version": "1.76.0",
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": "^1.18.1",
65
- "@appland/openapi": "1.3.0",
64
+ "@appland/models": "^2.0.0",
65
+ "@appland/openapi": "1.4.1",
66
66
  "@appland/sql-parser": "^1.5.0",
67
67
  "@types/cli-progress": "^3.9.2",
68
68
  "ajv": "^8.8.2",