scanoss 0.7.8 → 0.7.9
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/.idea/workspace.xml +47 -31
- package/.nyc_output/3da9f448-90e4-4399-887b-e4fd1b8d7052.json +1 -0
- package/.nyc_output/processinfo/3da9f448-90e4-4399-887b-e4fd1b8d7052.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/build/main/index.d.ts +2 -0
- package/build/main/index.js +3 -1
- package/build/main/sdk/FileCount/FileCount.d.ts +6 -0
- package/build/main/sdk/FileCount/FileCount.js +88 -0
- package/build/main/sdk/FileCount/FileCountFilter.d.ts +2 -0
- package/build/main/sdk/FileCount/FileCountFilter.js +10 -0
- package/build/main/sdk/FileCount/Interfaces.d.ts +19 -0
- package/build/main/sdk/FileCount/Interfaces.js +8 -0
- package/build/main/sdk/Filtering/DefaultFilterForDependencies.d.ts +2 -0
- package/build/main/sdk/Filtering/DefaultFilterForDependencies.js +144 -0
- package/build/main/sdk/Filtering/DefaultFilterForScanning.d.ts +2 -0
- package/build/main/sdk/Filtering/DefaultFilterForScanning.js +193 -0
- package/build/main/sdk/Filtering/Filtering.d.ts +80 -0
- package/build/main/sdk/Filtering/Filtering.js +259 -0
- package/build/main/sdk/tree/Filters/DependencyFilter.js +4 -4
- package/build/main/sdk/tree/Filters/ScanFilter.js +4 -4
- package/build/main/tsconfig.tsbuildinfo +81 -38
- package/build/module/index.d.ts +2 -0
- package/build/module/index.js +3 -1
- package/build/module/sdk/FileCount/FileCount.d.ts +6 -0
- package/build/module/sdk/FileCount/FileCount.js +63 -0
- package/build/module/sdk/FileCount/FileCountFilter.d.ts +2 -0
- package/build/module/sdk/FileCount/FileCountFilter.js +8 -0
- package/build/module/sdk/FileCount/Interfaces.d.ts +19 -0
- package/build/module/sdk/FileCount/Interfaces.js +6 -0
- package/build/module/sdk/Filtering/DefaultFilterForDependencies.d.ts +2 -0
- package/build/module/sdk/Filtering/DefaultFilterForDependencies.js +142 -0
- package/build/module/sdk/Filtering/DefaultFilterForScanning.d.ts +2 -0
- package/build/module/sdk/Filtering/DefaultFilterForScanning.js +191 -0
- package/build/module/sdk/Filtering/Filtering.d.ts +80 -0
- package/build/module/sdk/Filtering/Filtering.js +229 -0
- package/build/module/sdk/tree/Filters/DependencyFilter.js +4 -4
- package/build/module/sdk/tree/Filters/ScanFilter.js +4 -4
- package/build/module/tsconfig.module.tsbuildinfo +81 -38
- package/package-lock.json +2 -3
- package/package.json +3 -3
- package/src/index.ts +5 -0
- package/src/sdk/FileCount/FileCount.ts +81 -0
- package/src/sdk/FileCount/FileCountFilter.ts +14 -0
- package/src/sdk/FileCount/Interfaces.ts +23 -0
- package/src/sdk/Filtering/DefaultFilterForDependencies.ts +148 -0
- package/src/sdk/Filtering/DefaultFilterForScanning.ts +206 -0
- package/src/sdk/Filtering/Filtering.ts +273 -0
- package/src/sdk/tree/Filters/DependencyFilter.ts +4 -4
- package/src/sdk/tree/Filters/ScanFilter.ts +4 -4
- package/src/sdk/tree/Node.ts +1 -1
- package/src/sdk/tree/Tree.ts +1 -1
- package/tests/sdk/FileCount/FileCount.spec.ts +35 -0
- package/tests/sdk/FileCount/samples/16557/.y.ts +27 -0
- package/tests/sdk/FileCount/samples/16557/.z.ts +129 -0
- package/tests/sdk/FileCount/samples/16557/files/a.ts +195 -0
- package/tests/sdk/FileCount/samples/16557/files/b.ts +184 -0
- package/tests/sdk/FileCount/samples/16557/files/c.ts +47 -0
- package/tests/sdk/FileCount/samples/22036/files/a.ts +195 -0
- package/tests/sdk/FileCount/samples/22036/files/b.ts +184 -0
- package/tests/sdk/FileCount/samples/22036/files/c.ts +47 -0
- package/tests/sdk/FileCount/samples/22036/files/d.ts +48 -0
- package/tests/sdk/FileCount/samples/22036/y.ts +27 -0
- package/tests/sdk/FileCount/samples/22036/z.ts +129 -0
- package/yarn.lock +4938 -4938
- package/src/sdk/filters/DefaultFilterForDependencies.ts +0 -149
- package/src/sdk/filters/DefaultFilterForScanning.ts +0 -207
- package/src/sdk/filters/filtering.ts +0 -235
package/.idea/workspace.xml
CHANGED
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
39
39
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
40
40
|
"WebServerToolWindowFactoryState": "false",
|
|
41
|
-
"
|
|
41
|
+
"full.screen.before.presentation.mode": "false",
|
|
42
|
+
"last_opened_file_path": "/home/ubuntu/Projects/SCANOSS/scanoss.js/tests/sdk/FileCount/samples",
|
|
42
43
|
"node.js.detected.package.eslint": "true",
|
|
43
44
|
"node.js.detected.package.tslint": "true",
|
|
44
45
|
"node.js.selected.package.eslint": "(autodetect)",
|
|
@@ -46,17 +47,17 @@
|
|
|
46
47
|
"nodejs.mocha.mocha_node_package_dir": "/home/ubuntu/Projects/SCANOSS/scanoss.js/node_modules/mocha",
|
|
47
48
|
"nodejs_package_manager_path": "yarn",
|
|
48
49
|
"settings.editor.selected.configurable": "reference.settings.ide.settings.new.ui",
|
|
49
|
-
"ts.external.directory.path": "/
|
|
50
|
+
"ts.external.directory.path": "/snap/webstorm/294/plugins/javascript-impl/jsLanguageServicesImpl/external",
|
|
50
51
|
"vue.rearranger.settings.migration": "true"
|
|
51
52
|
}
|
|
52
53
|
}]]></component>
|
|
53
54
|
<component name="RecentsManager">
|
|
54
55
|
<key name="CopyFile.RECENT_KEYS">
|
|
56
|
+
<recent name="$PROJECT_DIR$/tests/sdk/FileCount/samples" />
|
|
57
|
+
<recent name="$PROJECT_DIR$/src/sdk/FileCount" />
|
|
55
58
|
<recent name="$PROJECT_DIR$/tests/sdk/Dependencies/LocalDependency/Parsers/samples/gradle/2" />
|
|
56
59
|
<recent name="$PROJECT_DIR$/tests/sdk/Dependencies/LocalDependency/Parsers/samples" />
|
|
57
60
|
<recent name="$PROJECT_DIR$/tests/sdk/Dependencies/LocalDependency/Parsers/samples/yarn-lock/v1_2" />
|
|
58
|
-
<recent name="$PROJECT_DIR$/tests/sdk/Scanner/WfpProvider/WfpSplitter/samples" />
|
|
59
|
-
<recent name="$PROJECT_DIR$/tests/sdk/Scanner/WfpProvider/WfpSplitter" />
|
|
60
61
|
</key>
|
|
61
62
|
<key name="MoveFile.RECENT_KEYS">
|
|
62
63
|
<recent name="$PROJECT_DIR$/tests/sdk/Dependencies/LocalDependency/Parsers/samples/gradle/1" />
|
|
@@ -65,8 +66,8 @@
|
|
|
65
66
|
<recent name="$PROJECT_DIR$/tests/sdk/DataLayer/samples/simple-1" />
|
|
66
67
|
</key>
|
|
67
68
|
</component>
|
|
68
|
-
<component name="RunManager" selected="Mocha.Suit test for
|
|
69
|
-
<configuration name="Suit test for
|
|
69
|
+
<component name="RunManager" selected="Mocha.Suit test for FileCount.Testing dir with hidden files in CSV formats">
|
|
70
|
+
<configuration name="Suit test for FileCount.Testing dir with files with CSV formats" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
|
|
70
71
|
<node-interpreter>project</node-interpreter>
|
|
71
72
|
<node-options />
|
|
72
73
|
<mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
|
|
@@ -74,14 +75,15 @@
|
|
|
74
75
|
<pass-parent-env>true</pass-parent-env>
|
|
75
76
|
<ui>bdd</ui>
|
|
76
77
|
<extra-mocha-options>--require ts-node/register</extra-mocha-options>
|
|
77
|
-
<test-kind>
|
|
78
|
-
<test-file>$PROJECT_DIR$/tests/sdk/
|
|
78
|
+
<test-kind>TEST</test-kind>
|
|
79
|
+
<test-file>$PROJECT_DIR$/tests/sdk/FileCount/FileCount.spec.ts</test-file>
|
|
79
80
|
<test-names>
|
|
80
|
-
<name value="Suit test for
|
|
81
|
+
<name value="Suit test for FileCount" />
|
|
82
|
+
<name value="Testing dir with files with CSV formats" />
|
|
81
83
|
</test-names>
|
|
82
84
|
<method v="2" />
|
|
83
85
|
</configuration>
|
|
84
|
-
<configuration name="Suit test for
|
|
86
|
+
<configuration name="Suit test for FileCount.Testing dir with hidden files in CSV formats" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
|
|
85
87
|
<node-interpreter>project</node-interpreter>
|
|
86
88
|
<node-options />
|
|
87
89
|
<mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
|
|
@@ -90,14 +92,14 @@
|
|
|
90
92
|
<ui>bdd</ui>
|
|
91
93
|
<extra-mocha-options>--require ts-node/register</extra-mocha-options>
|
|
92
94
|
<test-kind>TEST</test-kind>
|
|
93
|
-
<test-file>$PROJECT_DIR$/tests/sdk/
|
|
95
|
+
<test-file>$PROJECT_DIR$/tests/sdk/FileCount/FileCount.spec.ts</test-file>
|
|
94
96
|
<test-names>
|
|
95
|
-
<name value="Suit test for
|
|
96
|
-
<name value="Testing
|
|
97
|
+
<name value="Suit test for FileCount" />
|
|
98
|
+
<name value="Testing dir with hidden files in CSV formats" />
|
|
97
99
|
</test-names>
|
|
98
100
|
<method v="2" />
|
|
99
101
|
</configuration>
|
|
100
|
-
<configuration name="Suit test for
|
|
102
|
+
<configuration name="Suit test for FileCount.Testing empty dir .csproj files" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
|
|
101
103
|
<node-interpreter>project</node-interpreter>
|
|
102
104
|
<node-options />
|
|
103
105
|
<mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
|
|
@@ -106,14 +108,14 @@
|
|
|
106
108
|
<ui>bdd</ui>
|
|
107
109
|
<extra-mocha-options>--require ts-node/register</extra-mocha-options>
|
|
108
110
|
<test-kind>TEST</test-kind>
|
|
109
|
-
<test-file>$PROJECT_DIR$/tests/sdk/
|
|
111
|
+
<test-file>$PROJECT_DIR$/tests/sdk/FileCount/FileCount.spec.ts</test-file>
|
|
110
112
|
<test-names>
|
|
111
|
-
<name value="Suit test for
|
|
112
|
-
<name value="
|
|
113
|
+
<name value="Suit test for FileCount" />
|
|
114
|
+
<name value="Testing empty dir .csproj files" />
|
|
113
115
|
</test-names>
|
|
114
116
|
<method v="2" />
|
|
115
117
|
</configuration>
|
|
116
|
-
<configuration name="Suit test for
|
|
118
|
+
<configuration name="Suit test for FileCount.Testing empty dir with CSV and RAW formats" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
|
|
117
119
|
<node-interpreter>project</node-interpreter>
|
|
118
120
|
<node-options />
|
|
119
121
|
<mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
|
|
@@ -122,14 +124,14 @@
|
|
|
122
124
|
<ui>bdd</ui>
|
|
123
125
|
<extra-mocha-options>--require ts-node/register</extra-mocha-options>
|
|
124
126
|
<test-kind>TEST</test-kind>
|
|
125
|
-
<test-file>$PROJECT_DIR$/tests/sdk/
|
|
127
|
+
<test-file>$PROJECT_DIR$/tests/sdk/FileCount/FileCount.spec.ts</test-file>
|
|
126
128
|
<test-names>
|
|
127
|
-
<name value="Suit test for
|
|
128
|
-
<name value="Testing
|
|
129
|
+
<name value="Suit test for FileCount" />
|
|
130
|
+
<name value="Testing empty dir with CSV and RAW formats" />
|
|
129
131
|
</test-names>
|
|
130
132
|
<method v="2" />
|
|
131
133
|
</configuration>
|
|
132
|
-
<configuration name="Suit test for
|
|
134
|
+
<configuration name="Suit test for FileCount.Testing empty dir" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
|
|
133
135
|
<node-interpreter>project</node-interpreter>
|
|
134
136
|
<node-options />
|
|
135
137
|
<mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
|
|
@@ -138,20 +140,20 @@
|
|
|
138
140
|
<ui>bdd</ui>
|
|
139
141
|
<extra-mocha-options>--require ts-node/register</extra-mocha-options>
|
|
140
142
|
<test-kind>TEST</test-kind>
|
|
141
|
-
<test-file>$PROJECT_DIR$/tests/sdk/
|
|
143
|
+
<test-file>$PROJECT_DIR$/tests/sdk/FileCount/FileCount.spec.ts</test-file>
|
|
142
144
|
<test-names>
|
|
143
|
-
<name value="Suit test for
|
|
144
|
-
<name value="Testing
|
|
145
|
+
<name value="Suit test for FileCount" />
|
|
146
|
+
<name value="Testing empty dir" />
|
|
145
147
|
</test-names>
|
|
146
148
|
<method v="2" />
|
|
147
149
|
</configuration>
|
|
148
150
|
<recent_temporary>
|
|
149
151
|
<list>
|
|
150
|
-
<item itemvalue="Mocha.Suit test for
|
|
151
|
-
<item itemvalue="Mocha.Suit test for
|
|
152
|
-
<item itemvalue="Mocha.Suit test for
|
|
153
|
-
<item itemvalue="Mocha.Suit test for
|
|
154
|
-
<item itemvalue="Mocha.Suit test for
|
|
152
|
+
<item itemvalue="Mocha.Suit test for FileCount.Testing dir with hidden files in CSV formats" />
|
|
153
|
+
<item itemvalue="Mocha.Suit test for FileCount.Testing dir with files with CSV formats" />
|
|
154
|
+
<item itemvalue="Mocha.Suit test for FileCount.Testing empty dir with CSV and RAW formats" />
|
|
155
|
+
<item itemvalue="Mocha.Suit test for FileCount.Testing empty dir" />
|
|
156
|
+
<item itemvalue="Mocha.Suit test for FileCount.Testing empty dir .csproj files" />
|
|
155
157
|
</list>
|
|
156
158
|
</recent_temporary>
|
|
157
159
|
</component>
|
|
@@ -228,7 +230,9 @@
|
|
|
228
230
|
<workItem from="1674219866376" duration="5814000" />
|
|
229
231
|
<workItem from="1674462529281" duration="13003000" />
|
|
230
232
|
<workItem from="1674554709205" duration="9520000" />
|
|
231
|
-
<workItem from="1674653043050" duration="
|
|
233
|
+
<workItem from="1674653043050" duration="5782000" />
|
|
234
|
+
<workItem from="1674740072787" duration="1836000" />
|
|
235
|
+
<workItem from="1674813191793" duration="15903000" />
|
|
232
236
|
</task>
|
|
233
237
|
<servers />
|
|
234
238
|
</component>
|
|
@@ -284,6 +288,18 @@
|
|
|
284
288
|
<line>110</line>
|
|
285
289
|
<option name="timeStamp" value="13" />
|
|
286
290
|
</line-breakpoint>
|
|
291
|
+
<line-breakpoint enabled="true" type="javascript">
|
|
292
|
+
<url>file://$PROJECT_DIR$/src/sdk/FileCount/FileCount.ts</url>
|
|
293
|
+
<line>12</line>
|
|
294
|
+
<properties lambdaOrdinal="-1" />
|
|
295
|
+
<option name="timeStamp" value="18" />
|
|
296
|
+
</line-breakpoint>
|
|
297
|
+
<line-breakpoint enabled="true" type="javascript">
|
|
298
|
+
<url>file://$PROJECT_DIR$/src/sdk/FileCount/FileCount.ts</url>
|
|
299
|
+
<line>17</line>
|
|
300
|
+
<properties lambdaOrdinal="-1" />
|
|
301
|
+
<option name="timeStamp" value="19" />
|
|
302
|
+
</line-breakpoint>
|
|
287
303
|
</breakpoints>
|
|
288
304
|
</breakpoint-manager>
|
|
289
305
|
<watches-manager>
|