@appland/scanner 1.74.2 → 1.74.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.
- package/CHANGELOG.md +7 -0
- package/built/cli/scan/watchScan.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@appland/scanner-v1.74.3](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.74.2...@appland/scanner-v1.74.3) (2022-12-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Examine errors based on error code instead of error message ([f2c15e8](https://github.com/getappmap/appmap-js/commit/f2c15e8e0b2dfce270fc3d92c2bd64fa775947d7))
|
|
7
|
+
|
|
1
8
|
# [@appland/scanner-v1.74.2](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.74.1...@appland/scanner-v1.74.2) (2022-12-16)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -128,11 +128,14 @@ class Watcher {
|
|
|
128
128
|
.on('error', this.watcherErrorFunction.bind(this));
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
+
isError(error, code) {
|
|
132
|
+
const err = error;
|
|
133
|
+
return err.code === code;
|
|
134
|
+
}
|
|
131
135
|
watcherErrorFunction(error) {
|
|
132
136
|
var _a;
|
|
133
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
if (this.appmapWatcher &&
|
|
135
|
-
error.message.includes('ENOSPC: System limit for number of file watchers reached')) {
|
|
138
|
+
if (this.appmapWatcher && this.isError(error, 'ENOSPC')) {
|
|
136
139
|
console.warn(error.stack);
|
|
137
140
|
console.warn('Will disable file watching. File polling will stay enabled.');
|
|
138
141
|
yield ((_a = this.appmapWatcher) === null || _a === void 0 ? void 0 : _a.close());
|