@appland/scanner 1.71.6 → 1.71.7
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 -0
- package/built/cli/scan/watchScan.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@appland/scanner-v1.71.7](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.71.6...@appland/scanner-v1.71.7) (2022-10-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* scanner works on windows ([a2bf89f](https://github.com/getappmap/appmap-js/commit/a2bf89f7921d65bf16aee2a341c4902e4d84b6d8))
|
|
7
|
+
|
|
1
8
|
# [@appland/scanner-v1.71.6](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.71.5...@appland/scanner-v1.71.6) (2022-10-17)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -128,7 +128,7 @@ class Watcher {
|
|
|
128
128
|
return;
|
|
129
129
|
this.queue.push(mtimePath);
|
|
130
130
|
}
|
|
131
|
-
scan(mtimePath) {
|
|
131
|
+
scan(mtimePath, callback) {
|
|
132
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
133
|
(0, assert_1.default)(this.config, `config should always be loaded before appmapWatcher triggers a scan`);
|
|
134
134
|
const appmapFile = [path_1.default.dirname(mtimePath), 'appmap.json'].join('.');
|
|
@@ -144,6 +144,10 @@ class Watcher {
|
|
|
144
144
|
const rawScanResults = yield scanner.scan();
|
|
145
145
|
// Always report the raw data
|
|
146
146
|
yield (0, promises_1.writeFile)(reportFile, (0, formatReport_1.formatReport)(rawScanResults));
|
|
147
|
+
// tell the queue that the current task is complete
|
|
148
|
+
if (callback) {
|
|
149
|
+
yield callback();
|
|
150
|
+
}
|
|
147
151
|
});
|
|
148
152
|
}
|
|
149
153
|
reloadConfig() {
|