@appland/scanner 1.71.4 → 1.71.6
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/rules/lib/parseRuleDescription.js +2 -1
- package/package.json +4 -4
- package/src/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@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
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix scanner tests in windows ([e565f30](https://github.com/getappmap/appmap-js/commit/e565f30b7c4f7b43e7eb5652fc9afc58b511da2d))
|
|
7
|
+
|
|
8
|
+
# [@appland/scanner-v1.71.5](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.71.4...@appland/scanner-v1.71.5) (2022-10-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Fix unresolved type in Rule.Options ([f4ed63c](https://github.com/getappmap/appmap-js/commit/f4ed63ca27e7c79b8e9bdb9faf63c9b3cd10145f))
|
|
14
|
+
|
|
1
15
|
# [@appland/scanner-v1.71.4](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.71.3...@appland/scanner-v1.71.4) (2022-10-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -10,7 +10,8 @@ function parseRuleDescription(id) {
|
|
|
10
10
|
const docPath = (0, path_1.join)(__dirname, `../../../doc/rules/${(0, util_1.dasherize)(id)}.md`);
|
|
11
11
|
if (!fs_1.default.existsSync(docPath))
|
|
12
12
|
return `No doc exists for rule ${id}`;
|
|
13
|
-
|
|
13
|
+
// replace any carriage return with a newline
|
|
14
|
+
const content = fs_1.default.readFileSync(docPath, 'utf-8').replace(/\r\n/g, '\n');
|
|
14
15
|
const propertiesContent = content.match(/---\n((?:.*\n)+)---\n((?:.*\n)+?)##?#?/);
|
|
15
16
|
if (!propertiesContent) {
|
|
16
17
|
// This is probably a new doc that doesn't have front matter yet.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appland/scanner",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": "built/cli.js",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"types": "src/types.d.ts",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "
|
|
13
|
+
"build": "node bin/preBuild.js && tsc -p tsconfig.build.json && yarn schema && yarn doc",
|
|
14
14
|
"build-native": "yarn build && ./bin/build-native",
|
|
15
15
|
"start": "ts-node src/cli.ts",
|
|
16
16
|
"doc": "ts-node ./bin/verify-rules-doc.ts && ts-node ./bin/verify-labels-doc.ts && ts-node ./bin/front-matter.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"doc-up-to-date": "git diff --exit-code doc/",
|
|
20
20
|
"lint": "eslint src --ext .ts",
|
|
21
21
|
"ci": "yarn lint && yarn build && yarn schema-up-to-date && yarn doc-up-to-date && yarn test",
|
|
22
|
-
"test": "jest",
|
|
22
|
+
"test": "jest --filter=./test/testFilter.js",
|
|
23
23
|
"semantic-release": "semantic-release"
|
|
24
24
|
},
|
|
25
25
|
"author": "AppLand, Inc.",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@appland/client": "^1.3.0",
|
|
63
63
|
"@appland/models": "^1.18.1",
|
|
64
|
-
"@appland/openapi": "1.0.
|
|
64
|
+
"@appland/openapi": "1.0.3",
|
|
65
65
|
"@appland/sql-parser": "^1.5.0",
|
|
66
66
|
"@types/cli-progress": "^3.9.2",
|
|
67
67
|
"ajv": "^8.8.2",
|
package/src/types.d.ts
CHANGED
|
@@ -148,7 +148,7 @@ interface Rule {
|
|
|
148
148
|
impactDomain?: ImpactDomain;
|
|
149
149
|
references?: Record<string, URL>;
|
|
150
150
|
// User-defined options for the rule.
|
|
151
|
-
Options?:
|
|
151
|
+
Options?: any; // FIXME
|
|
152
152
|
// Function to instantiate the rule logic from configured options.
|
|
153
153
|
build: (options: this['Options']) => RuleLogic;
|
|
154
154
|
}
|