@appland/scanner 1.85.0 → 1.87.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.87.0](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.86.0...@appland/scanner-v1.87.0) (2024-04-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * Build scanner binary packages with Node 18 ([37c939b](https://github.com/getappmap/appmap-js/commit/37c939b7b3e19a098bfe81d2e5a66bacb413f6e3))
7
+
8
+ # [@appland/scanner-v1.86.0](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.85.0...@appland/scanner-v1.86.0) (2023-12-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * Update @appland/client in @appland/appmap ([953872f](https://github.com/getappmap/appmap-js/commit/953872f398b856348a5897929a08f0e695a5ec81))
14
+
1
15
  # [@appland/scanner-v1.85.0](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.84.1...@appland/scanner-v1.85.0) (2023-12-28)
2
16
 
3
17
 
package/LICENSE.txt CHANGED
@@ -12,7 +12,7 @@ Software: @appland/scanner
12
12
 
13
13
  License: MIT License
14
14
 
15
- Copyright 2023, AppLand Inc
15
+ Copyright 2024, AppLand Inc
16
16
 
17
17
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
18
18
  to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@@ -106,20 +106,7 @@ class RuleChecker {
106
106
  if (!checkInstance.filterEvent(event, appMapIndex)) {
107
107
  return;
108
108
  }
109
- let appmapConfigDir;
110
- {
111
- let searchDir = (0, path_1.dirname)((0, path_1.resolve)(appMapFileName));
112
- while (!appmapConfigDir) {
113
- if (yield (0, util_1.fileExists)((0, path_1.join)(searchDir, 'appmap.yml'))) {
114
- appmapConfigDir = searchDir;
115
- }
116
- else {
117
- if ((0, path_1.dirname)(searchDir) === searchDir)
118
- break;
119
- searchDir = (0, path_1.dirname)(searchDir);
120
- }
121
- }
122
- }
109
+ const appmapConfigDir = yield findConfigDir(appMapFileName);
123
110
  const resolvePath = (path) => __awaiter(this, void 0, void 0, function* () {
124
111
  const candidates = [path];
125
112
  if (appmapConfigDir)
@@ -272,3 +259,26 @@ class RuleChecker {
272
259
  }
273
260
  }
274
261
  exports.default = RuleChecker;
262
+ const configDirs = new Map();
263
+ function findConfigDir(appMapFileName) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ if (configDirs.has(appMapFileName))
266
+ return configDirs.get(appMapFileName);
267
+ let appmapConfigDir;
268
+ {
269
+ let searchDir = (0, path_1.dirname)((0, path_1.resolve)(appMapFileName));
270
+ while (!appmapConfigDir) {
271
+ if (yield (0, util_1.fileExists)((0, path_1.join)(searchDir, 'appmap.yml'))) {
272
+ appmapConfigDir = searchDir;
273
+ }
274
+ else {
275
+ if ((0, path_1.dirname)(searchDir) === searchDir)
276
+ break;
277
+ searchDir = (0, path_1.dirname)(searchDir);
278
+ }
279
+ }
280
+ }
281
+ configDirs.set(appMapFileName, appmapConfigDir);
282
+ return appmapConfigDir;
283
+ });
284
+ }
@@ -25,4 +25,5 @@ checks:
25
25
  - rule: too-many-updates
26
26
  # - rule: unbatched-materialized-query
27
27
  - rule: unauthenticated-encryption
28
+ - rule: unfulfilled-promise
28
29
  - rule: update-in-get-request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/scanner",
3
- "version": "1.85.0",
3
+ "version": "1.87.0",
4
4
  "description": "Analyze AppMaps for code flaws",
5
5
  "bin": "built/cli.js",
6
6
  "main": "built/index.js",
@@ -51,7 +51,7 @@
51
51
  "jest": "^29.5.0",
52
52
  "nock": "^13.2.2",
53
53
  "openapi-types": "^9.3.0",
54
- "pkg": "^5.5.2",
54
+ "pkg": "^5.8.0",
55
55
  "prettier": "^2.7.1",
56
56
  "semantic-release": "^19.0.2",
57
57
  "sinon": "^13.0.1",
@@ -62,8 +62,8 @@
62
62
  "typescript": "^4.4.2"
63
63
  },
64
64
  "dependencies": {
65
- "@appland/client": "^1.5.0",
66
- "@appland/models": "^2.6.3",
65
+ "@appland/client": "^1.12.0",
66
+ "@appland/models": "^2.10.0",
67
67
  "@appland/openapi": "^1.7.0",
68
68
  "@appland/sql-parser": "^1.5.0",
69
69
  "@types/cli-progress": "^3.9.2",
@@ -98,10 +98,10 @@
98
98
  },
99
99
  "pkg": {
100
100
  "targets": [
101
- "node16-linux-x64",
102
- "node16-win-x64",
103
- "node16-macos-x64",
104
- "node16-macos-arm64"
101
+ "node18-linux-x64",
102
+ "node18-win-x64",
103
+ "node18-macos-x64",
104
+ "node18-macos-arm64"
105
105
  ],
106
106
  "scripts": [
107
107
  "built/scanner/*.js",