@groma/scanner-javascript 0.1.1 → 0.2.1
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/README.md +52 -37
- package/dist/index.js +529 -190
- package/package.json +23 -3
- package/validation.md +2 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groma/scanner-javascript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "JavaScript source declarations, outlines and operation bodies without project dependencies.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -9,6 +9,26 @@
|
|
|
9
9
|
"scanner": {
|
|
10
10
|
"id": "javascript",
|
|
11
11
|
"entry": "./dist/index.js",
|
|
12
|
+
"include": [
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.mjs",
|
|
15
|
+
"**/*.cjs",
|
|
16
|
+
"**/*.jsx",
|
|
17
|
+
"**/package.json",
|
|
18
|
+
"**/*.html",
|
|
19
|
+
"**/project.json",
|
|
20
|
+
"**/nx.json"
|
|
21
|
+
],
|
|
22
|
+
"exclude": [
|
|
23
|
+
"*.min.js",
|
|
24
|
+
"*.min.mjs",
|
|
25
|
+
"*.min.cjs",
|
|
26
|
+
"*.min.jsx",
|
|
27
|
+
"node_modules/",
|
|
28
|
+
"dist/",
|
|
29
|
+
"build/",
|
|
30
|
+
"coverage/"
|
|
31
|
+
],
|
|
12
32
|
"discovery": {
|
|
13
33
|
"technologies": [
|
|
14
34
|
"javascript"
|
|
@@ -28,14 +48,14 @@
|
|
|
28
48
|
}
|
|
29
49
|
],
|
|
30
50
|
"compatibility": {
|
|
31
|
-
"groma": ">=0.
|
|
51
|
+
"groma": ">=0.5.0"
|
|
32
52
|
}
|
|
33
53
|
}
|
|
34
54
|
}
|
|
35
55
|
},
|
|
36
56
|
"repository": {
|
|
37
57
|
"type": "git",
|
|
38
|
-
"url": "https://github.com/MrLesk/
|
|
58
|
+
"url": "https://github.com/MrLesk/groma.md.git"
|
|
39
59
|
},
|
|
40
60
|
"publishConfig": {
|
|
41
61
|
"access": "public"
|
package/validation.md
CHANGED
|
@@ -9,7 +9,7 @@ project build were installed or run.
|
|
|
9
9
|
manifest rule.
|
|
10
10
|
- 47 authored files were inventoried with 122 declarations, 1,249 operations,
|
|
11
11
|
758 of them carrying body tokens, and 4,762 calls, every one unresolved.
|
|
12
|
-
- 579 files under `vendor/` stayed out
|
|
12
|
+
- 579 files under `vendor/` stayed out of the scan.
|
|
13
13
|
- Repeating the scan produced identical evidence. The first fold created 49
|
|
14
14
|
elements; folding the same evidence again created none and refreshed the same
|
|
15
15
|
47 files.
|
|
@@ -22,16 +22,10 @@ project build were installed or run.
|
|
|
22
22
|
no HTTP row was derived there.
|
|
23
23
|
- Each scan of the whole project finished in under a second.
|
|
24
24
|
|
|
25
|
-
The minified rules were measured against 137 authored candidate files in four
|
|
26
|
-
JavaScript repositories. The longest-lined authored file averaged 57 characters
|
|
27
|
-
per line. Exactly one file reached the 500-character average: a built asset under
|
|
28
|
-
an ordinary `.js` name, which the rule excluded. Vendored and built directories
|
|
29
|
-
are already outside the shared Git boundary.
|
|
30
|
-
|
|
31
25
|
The independent `javascript-source` fixture verifies ECMAScript modules,
|
|
32
26
|
CommonJS, JSX, a browser script whose top-level calls belong to the module,
|
|
33
27
|
exact source positions, tokens on named bodies only, and the exclusion of a
|
|
34
|
-
`.min.js` name
|
|
28
|
+
`.min.js` name by the default exclusions and of the TypeScript file beside it.
|
|
35
29
|
`javascript-outline` verifies the declaration list and the module, CommonJS and
|
|
36
30
|
script visibility rules, including a CommonJS file that publishes a function value
|
|
37
31
|
and keeps its own helpers private; `javascript-parity` verifies that one body
|