@trustify-da/trustify-da-javascript-client 0.3.0-ea.a783c26 → 0.3.0-ea.a9624b2

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.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/dist/package.json +25 -22
  3. package/dist/src/analysis.d.ts +14 -7
  4. package/dist/src/analysis.js +29 -13
  5. package/dist/src/cli.js +58 -1
  6. package/dist/src/cyclone_dx_sbom.d.ts +7 -1
  7. package/dist/src/cyclone_dx_sbom.js +29 -8
  8. package/dist/src/index.d.ts +72 -11
  9. package/dist/src/index.js +76 -7
  10. package/dist/src/license/index.d.ts +3 -3
  11. package/dist/src/license/index.js +4 -1
  12. package/dist/src/license/license_utils.js +4 -1
  13. package/dist/src/license/licenses_api.d.ts +2 -2
  14. package/dist/src/oci_image/images.d.ts +1 -1
  15. package/dist/src/oci_image/images.js +15 -1
  16. package/dist/src/oci_image/utils.d.ts +5 -5
  17. package/dist/src/provider.d.ts +4 -3
  18. package/dist/src/provider.js +6 -2
  19. package/dist/src/providers/base_java.d.ts +14 -12
  20. package/dist/src/providers/base_java.js +18 -44
  21. package/dist/src/providers/base_javascript.d.ts +20 -9
  22. package/dist/src/providers/base_javascript.js +10 -3
  23. package/dist/src/providers/base_pyproject.d.ts +15 -6
  24. package/dist/src/providers/base_pyproject.js +12 -4
  25. package/dist/src/providers/containerfile_parser.d.ts +5 -0
  26. package/dist/src/providers/containerfile_parser.js +20 -0
  27. package/dist/src/providers/golang_gomodules.d.ts +11 -1
  28. package/dist/src/providers/golang_gomodules.js +65 -8
  29. package/dist/src/providers/java_gradle.d.ts +19 -0
  30. package/dist/src/providers/java_gradle.js +116 -2
  31. package/dist/src/providers/java_gradle_groovy.d.ts +1 -1
  32. package/dist/src/providers/java_gradle_kotlin.d.ts +1 -1
  33. package/dist/src/providers/java_maven.d.ts +10 -2
  34. package/dist/src/providers/java_maven.js +165 -1
  35. package/dist/src/providers/javascript_bun.d.ts +10 -0
  36. package/dist/src/providers/javascript_bun.js +100 -0
  37. package/dist/src/providers/javascript_npm.d.ts +6 -1
  38. package/dist/src/providers/javascript_pnpm.js +6 -2
  39. package/dist/src/providers/marker_evaluator.d.ts +14 -0
  40. package/dist/src/providers/marker_evaluator.js +191 -0
  41. package/dist/src/providers/oci_dockerfile.d.ts +51 -0
  42. package/dist/src/providers/oci_dockerfile.js +177 -0
  43. package/dist/src/providers/processors/yarn_berry_processor.d.ts +2 -2
  44. package/dist/src/providers/processors/yarn_classic_processor.d.ts +2 -2
  45. package/dist/src/providers/python_controller.d.ts +5 -1
  46. package/dist/src/providers/python_controller.js +58 -4
  47. package/dist/src/providers/python_pip.d.ts +5 -0
  48. package/dist/src/providers/python_pip.js +5 -5
  49. package/dist/src/providers/python_pip_pyproject.js +3 -1
  50. package/dist/src/providers/python_poetry.d.ts +63 -8
  51. package/dist/src/providers/python_poetry.js +132 -21
  52. package/dist/src/providers/python_uv.d.ts +20 -1
  53. package/dist/src/providers/python_uv.js +122 -2
  54. package/dist/src/providers/rust_cargo.d.ts +6 -2
  55. package/dist/src/providers/rust_cargo.js +31 -4
  56. package/dist/src/providers/tree-sitter-containerfile.wasm +0 -0
  57. package/dist/src/sbom.d.ts +7 -1
  58. package/dist/src/sbom.js +4 -2
  59. package/dist/src/tools.d.ts +28 -2
  60. package/dist/src/tools.js +58 -0
  61. package/dist/src/updaters/maven_updater.d.ts +26 -0
  62. package/dist/src/updaters/maven_updater.js +322 -0
  63. package/dist/src/workspace.d.ts +9 -0
  64. package/dist/src/workspace.js +1 -1
  65. package/package.json +26 -23
@@ -0,0 +1,322 @@
1
+ import { XMLParser } from 'fast-xml-parser';
2
+ /**
3
+ * Extracts the trimmed text content of a simple XML element from a string block.
4
+ * @param {string} block - the XML text to search within
5
+ * @param {string} tagName - the element name whose content to extract
6
+ * @returns {string|null} the trimmed text content, or null if not found
7
+ */
8
+ function extractTagContent(block, tagName) {
9
+ const openTag = `<${tagName}>`;
10
+ const closeTag = `</${tagName}>`;
11
+ const start = block.indexOf(openTag);
12
+ if (start === -1) {
13
+ return null;
14
+ }
15
+ const contentStart = start + openTag.length;
16
+ const end = block.indexOf(closeTag, contentStart);
17
+ if (end === -1) {
18
+ return null;
19
+ }
20
+ return block.substring(contentStart, end).trim();
21
+ }
22
+ /**
23
+ * Finds the character positions of an XML element's text content within the raw file.
24
+ * Returns the start (inclusive) and end (exclusive) offsets of the text between the
25
+ * opening and closing tags.
26
+ * @param {string} content - full raw XML content
27
+ * @param {number} searchStart - start offset to search from
28
+ * @param {number} searchEnd - end offset to search within
29
+ * @param {string} tagName - the element name whose content position to locate
30
+ * @returns {{start: number, end: number}|null} character offsets, or null if not found
31
+ */
32
+ function findTagContentPosition(content, searchStart, searchEnd, tagName) {
33
+ const openTag = `<${tagName}>`;
34
+ const closeTag = `</${tagName}>`;
35
+ const tagStart = content.indexOf(openTag, searchStart);
36
+ if (tagStart === -1 || tagStart >= searchEnd) {
37
+ return null;
38
+ }
39
+ const contentStart = tagStart + openTag.length;
40
+ const tagEnd = content.indexOf(closeTag, contentStart);
41
+ if (tagEnd === -1 || tagEnd > searchEnd) {
42
+ return null;
43
+ }
44
+ return { start: contentStart, end: tagEnd };
45
+ }
46
+ /**
47
+ * Checks whether the character immediately following a tag prefix indicates
48
+ * that the prefix is the complete tag name (e.g. `<dependency>` vs `<dependencyManagement>`).
49
+ * @param {string} char - the character after the tag prefix
50
+ * @returns {boolean} true if the character terminates the tag name
51
+ */
52
+ function isTagBoundary(char) {
53
+ return char === '>' || char === ' ' || char === '\t'
54
+ || char === '\n' || char === '\r' || char === '/';
55
+ }
56
+ /**
57
+ * Finds the text content position of a `<version>` element within the first
58
+ * `<dependency>` block matching the given groupId and artifactId.
59
+ * Searches through all `<dependency>` elements in the file, covering both
60
+ * `<dependencies>` and `<dependencyManagement>` sections.
61
+ * @param {string} content - full raw pom.xml content
62
+ * @param {string} groupId - the dependency's groupId to match
63
+ * @param {string} artifactId - the dependency's artifactId to match
64
+ * @returns {{start: number, end: number}|null} version content offsets, or null
65
+ */
66
+ function findDependencyVersionPosition(content, groupId, artifactId) {
67
+ let searchStart = 0;
68
+ const TAG_PREFIX = '<dependency';
69
+ const CLOSE_TAG = '</dependency>';
70
+ while (searchStart < content.length) {
71
+ const start = content.indexOf(TAG_PREFIX, searchStart);
72
+ if (start === -1) {
73
+ break;
74
+ }
75
+ // Verify this is exactly <dependency> and not <dependencyManagement> etc.
76
+ const charAfterTag = content.charAt(start + TAG_PREFIX.length);
77
+ if (!isTagBoundary(charAfterTag)) {
78
+ searchStart = start + 1;
79
+ continue;
80
+ }
81
+ // Find closing </dependency>
82
+ const end = content.indexOf(CLOSE_TAG, start + TAG_PREFIX.length);
83
+ if (end === -1) {
84
+ break;
85
+ }
86
+ const blockEnd = end + CLOSE_TAG.length;
87
+ const block = content.substring(start, blockEnd);
88
+ const gid = extractTagContent(block, 'groupId');
89
+ const aid = extractTagContent(block, 'artifactId');
90
+ if (gid === groupId && aid === artifactId) {
91
+ const pos = findTagContentPosition(content, start, blockEnd, 'version');
92
+ if (pos) {
93
+ return pos;
94
+ }
95
+ // Matching dependency but no <version> element; continue searching
96
+ // (the version may be in <dependencyManagement>)
97
+ }
98
+ searchStart = blockEnd;
99
+ }
100
+ return null;
101
+ }
102
+ /**
103
+ * Finds the text content position of a property element inside a `<properties>` block.
104
+ * Searches through all `<properties>` blocks in the file.
105
+ * @param {string} content - full raw pom.xml content
106
+ * @param {string} propName - the property element name to locate
107
+ * @returns {{start: number, end: number}|null} property value offsets, or null
108
+ */
109
+ function findPropertyPosition(content, propName) {
110
+ let searchStart = 0;
111
+ const TAG_PREFIX = '<properties';
112
+ const CLOSE_TAG = '</properties>';
113
+ while (searchStart < content.length) {
114
+ const propsStart = content.indexOf(TAG_PREFIX, searchStart);
115
+ if (propsStart === -1) {
116
+ break;
117
+ }
118
+ // Verify this is exactly <properties> and not some other tag
119
+ const charAfter = content.charAt(propsStart + TAG_PREFIX.length);
120
+ if (!isTagBoundary(charAfter)) {
121
+ searchStart = propsStart + 1;
122
+ continue;
123
+ }
124
+ const propsCloseStart = content.indexOf(CLOSE_TAG, propsStart);
125
+ if (propsCloseStart === -1) {
126
+ break;
127
+ }
128
+ const propsBlockEnd = propsCloseStart + CLOSE_TAG.length;
129
+ const result = findTagContentPosition(content, propsStart, propsBlockEnd, propName);
130
+ if (result) {
131
+ return result;
132
+ }
133
+ searchStart = propsBlockEnd;
134
+ }
135
+ return null;
136
+ }
137
+ /**
138
+ * Resolves a Maven property chain, following `${propName}` references through
139
+ * the properties map until a concrete (non-reference) value is reached.
140
+ * Detects circular references via a visited set.
141
+ * @param {string} propName - the initial property name to resolve
142
+ * @param {Object} properties - properties map from the parsed XML
143
+ * @param {Set<string>} [visited] - visited property names (for cycle detection)
144
+ * @returns {{terminalPropName: string, resolvedValue: string}|{error: string}}
145
+ */
146
+ function resolvePropertyChain(propName, properties, visited = new Set()) {
147
+ if (visited.has(propName)) {
148
+ const chain = [...visited, propName].join(' -> ');
149
+ return { error: `Circular property reference detected: ${chain}` };
150
+ }
151
+ visited.add(propName);
152
+ const value = properties[propName];
153
+ if (value == null) {
154
+ return { error: `Property '${propName}' not found in <properties>` };
155
+ }
156
+ const valueStr = String(value);
157
+ const propMatch = valueStr.match(/^\$\{(.+)\}$/);
158
+ if (propMatch) {
159
+ return resolvePropertyChain(propMatch[1], properties, visited);
160
+ }
161
+ return { terminalPropName: propName, resolvedValue: valueStr };
162
+ }
163
+ /**
164
+ * Updates dependency versions in a Maven pom.xml while preserving file formatting.
165
+ *
166
+ * Uses `fast-xml-parser` to understand the XML structure (dependencies and properties),
167
+ * then performs position-based string splice to replace version strings without altering
168
+ * any other formatting, comments, whitespace, or indentation.
169
+ *
170
+ * Supports `${property}` indirection: when a dependency's `<version>` is a property
171
+ * reference, the updater resolves the property chain (including recursive references)
172
+ * and updates the terminal property value in `<properties>` instead.
173
+ *
174
+ * @param {string} pomContent - the raw pom.xml file content
175
+ * @param {Array<{groupId: string, artifactId: string, newVersion: string}>} versionChanges -
176
+ * list of version changes to apply
177
+ * @returns {{content: string, applied: Array, skipped: Array}} the updated content and
178
+ * lists of applied and skipped changes
179
+ */
180
+ export function updateMavenVersions(pomContent, versionChanges) {
181
+ if (!versionChanges || versionChanges.length === 0) {
182
+ return { content: pomContent, applied: [], skipped: [] };
183
+ }
184
+ const parser = new XMLParser({
185
+ parseTagValue: false,
186
+ commentPropName: '#comment',
187
+ });
188
+ let parsed;
189
+ try {
190
+ parsed = parser.parse(pomContent);
191
+ }
192
+ catch (e) {
193
+ return {
194
+ content: pomContent,
195
+ applied: [],
196
+ skipped: versionChanges.map(vc => ({
197
+ groupId: vc.groupId,
198
+ artifactId: vc.artifactId,
199
+ newVersion: vc.newVersion,
200
+ reason: `Failed to parse pom.xml: ${e.message}`,
201
+ })),
202
+ };
203
+ }
204
+ const project = parsed?.project;
205
+ if (!project) {
206
+ return {
207
+ content: pomContent,
208
+ applied: [],
209
+ skipped: versionChanges.map(vc => ({
210
+ groupId: vc.groupId,
211
+ artifactId: vc.artifactId,
212
+ newVersion: vc.newVersion,
213
+ reason: 'No <project> element found in pom.xml',
214
+ })),
215
+ };
216
+ }
217
+ const properties = project.properties || {};
218
+ const applied = [];
219
+ const skipped = [];
220
+ /** @type {Map<number, {start: number, end: number, newValue: string}>} */
221
+ const replacementsByPosition = new Map();
222
+ for (const change of versionChanges) {
223
+ const versionPos = findDependencyVersionPosition(pomContent, change.groupId, change.artifactId);
224
+ if (!versionPos) {
225
+ skipped.push({
226
+ groupId: change.groupId,
227
+ artifactId: change.artifactId,
228
+ newVersion: change.newVersion,
229
+ reason: 'Dependency not found in pom.xml or has no <version> element',
230
+ });
231
+ continue;
232
+ }
233
+ const currentVersion = pomContent.substring(versionPos.start, versionPos.end);
234
+ const propMatch = currentVersion.match(/^\$\{(.+)\}$/);
235
+ if (propMatch) {
236
+ const resolved = resolvePropertyChain(propMatch[1], properties);
237
+ if (resolved.error) {
238
+ skipped.push({
239
+ groupId: change.groupId,
240
+ artifactId: change.artifactId,
241
+ newVersion: change.newVersion,
242
+ reason: resolved.error,
243
+ });
244
+ continue;
245
+ }
246
+ const propPos = findPropertyPosition(pomContent, resolved.terminalPropName);
247
+ if (!propPos) {
248
+ skipped.push({
249
+ groupId: change.groupId,
250
+ artifactId: change.artifactId,
251
+ newVersion: change.newVersion,
252
+ reason: `Could not locate property '${resolved.terminalPropName}' in pom.xml`,
253
+ });
254
+ continue;
255
+ }
256
+ // Deduplicate: multiple deps may share the same property
257
+ const existing = replacementsByPosition.get(propPos.start);
258
+ if (existing) {
259
+ if (existing.newValue !== change.newVersion) {
260
+ skipped.push({
261
+ groupId: change.groupId,
262
+ artifactId: change.artifactId,
263
+ newVersion: change.newVersion,
264
+ reason: `Property '${resolved.terminalPropName}' already targeted `
265
+ + `with a different version '${existing.newValue}'`,
266
+ });
267
+ continue;
268
+ }
269
+ // Same replacement already queued; record as applied without duplicating
270
+ }
271
+ else {
272
+ replacementsByPosition.set(propPos.start, {
273
+ start: propPos.start,
274
+ end: propPos.end,
275
+ newValue: change.newVersion,
276
+ });
277
+ }
278
+ applied.push({
279
+ groupId: change.groupId,
280
+ artifactId: change.artifactId,
281
+ newVersion: change.newVersion,
282
+ type: 'property',
283
+ property: resolved.terminalPropName,
284
+ });
285
+ }
286
+ else {
287
+ const existing = replacementsByPosition.get(versionPos.start);
288
+ if (existing) {
289
+ if (existing.newValue !== change.newVersion) {
290
+ skipped.push({
291
+ groupId: change.groupId,
292
+ artifactId: change.artifactId,
293
+ newVersion: change.newVersion,
294
+ reason: `Version already targeted with a different version '${existing.newValue}'`,
295
+ });
296
+ continue;
297
+ }
298
+ }
299
+ else {
300
+ replacementsByPosition.set(versionPos.start, {
301
+ start: versionPos.start,
302
+ end: versionPos.end,
303
+ newValue: change.newVersion,
304
+ });
305
+ }
306
+ applied.push({
307
+ groupId: change.groupId,
308
+ artifactId: change.artifactId,
309
+ newVersion: change.newVersion,
310
+ type: 'direct',
311
+ });
312
+ }
313
+ }
314
+ // Sort replacements by position descending to preserve offsets during splice
315
+ const sortedReplacements = [...replacementsByPosition.values()]
316
+ .sort((a, b) => b.start - a.start);
317
+ let result = pomContent;
318
+ for (const r of sortedReplacements) {
319
+ result = result.substring(0, r.start) + r.newValue + result.substring(r.end);
320
+ }
321
+ return { content: result, applied, skipped };
322
+ }
@@ -42,6 +42,15 @@ export function discoverWorkspacePackages(workspaceRoot: string, opts?: {
42
42
  TRUSTIFY_DA_WORKSPACE_DISCOVERY_IGNORE?: string;
43
43
  [key: string]: unknown;
44
44
  }): Promise<string[]>;
45
+ /**
46
+ * Convert workspace glob patterns to manifest-file glob patterns,
47
+ * correctly handling negation prefixes.
48
+ *
49
+ * @param {string[]} patterns - Workspace glob patterns (may include negations)
50
+ * @param {string} manifestFileName - e.g. 'package.json' or 'Cargo.toml'
51
+ * @returns {string[]}
52
+ */
53
+ export function toManifestGlobPatterns(patterns: string[], manifestFileName: string): string[];
45
54
  /**
46
55
  * Discover all Cargo.toml manifest paths in a Cargo workspace.
47
56
  * Uses `cargo metadata` to get workspace members.
@@ -172,7 +172,7 @@ function parsePnpmPackages(content) {
172
172
  * @param {string} manifestFileName - e.g. 'package.json' or 'Cargo.toml'
173
173
  * @returns {string[]}
174
174
  */
175
- function toManifestGlobPatterns(patterns, manifestFileName) {
175
+ export function toManifestGlobPatterns(patterns, manifestFileName) {
176
176
  return patterns.map(p => {
177
177
  if (p.startsWith('!')) {
178
178
  return `!${p.slice(1)}/${manifestFileName}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustify-da/trustify-da-javascript-client",
3
- "version": "0.3.0-ea.a783c26",
3
+ "version": "0.3.0-ea.a9624b2",
4
4
  "description": "Code-Ready Dependency Analytics JavaScript API.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/guacsec/trustify-da-javascript-client#README.md",
@@ -35,32 +35,33 @@
35
35
  "config/**/*"
36
36
  ],
37
37
  "scripts": {
38
- "lint": "eslint src test --ext js",
39
- "lint:fix": "eslint src test --ext js --fix",
38
+ "lint": "eslint src test",
39
+ "lint:fix": "eslint src test --fix",
40
40
  "test": "c8 npm run tests",
41
41
  "tests": "mocha --config .mocharc.json",
42
42
  "tests:rep": "mocha --reporter-option maxDiffSize=0 --reporter json > unit-tests-result.json",
43
- "pretest": "cp node_modules/tree-sitter-requirements/tree-sitter-requirements.wasm src/providers/tree-sitter-requirements.wasm && cp node_modules/tree-sitter-gomod/tree-sitter-gomod.wasm src/providers/tree-sitter-gomod.wasm",
43
+ "pretest": "cp node_modules/tree-sitter-requirements/tree-sitter-requirements.wasm src/providers/tree-sitter-requirements.wasm && cp node_modules/tree-sitter-gomod/tree-sitter-gomod.wasm src/providers/tree-sitter-gomod.wasm && cp node_modules/tree-sitter-containerfile/tree-sitter-containerfile.wasm src/providers/tree-sitter-containerfile.wasm",
44
44
  "precompile": "rm -rf dist",
45
45
  "compile": "tsc -p tsconfig.json",
46
46
  "compile:dev": "tsc -p tsconfig.dev.json",
47
- "postcompile": "cp node_modules/tree-sitter-requirements/tree-sitter-requirements.wasm dist/src/providers/tree-sitter-requirements.wasm && cp node_modules/tree-sitter-gomod/tree-sitter-gomod.wasm dist/src/providers/tree-sitter-gomod.wasm"
47
+ "postcompile": "cp node_modules/tree-sitter-requirements/tree-sitter-requirements.wasm dist/src/providers/tree-sitter-requirements.wasm && cp node_modules/tree-sitter-gomod/tree-sitter-gomod.wasm dist/src/providers/tree-sitter-gomod.wasm && cp node_modules/tree-sitter-containerfile/tree-sitter-containerfile.wasm dist/src/providers/tree-sitter-containerfile.wasm"
48
48
  },
49
49
  "dependencies": {
50
50
  "@babel/core": "^7.23.2",
51
- "@cyclonedx/cyclonedx-library": "^6.13.0",
51
+ "@cyclonedx/cyclonedx-library": "^10.0.0",
52
52
  "eslint-import-resolver-typescript": "^4.4.4",
53
53
  "fast-glob": "^3.3.3",
54
- "fast-toml": "^0.5.4",
55
54
  "fast-xml-parser": "^5.3.4",
56
55
  "help": "^3.0.2",
57
- "https-proxy-agent": "^7.0.6",
56
+ "https-proxy-agent": "^9.0.0",
58
57
  "js-yaml": "^4.1.1",
58
+ "jsonc-parser": "^3.3.1",
59
59
  "micromatch": "^4.0.8",
60
60
  "node-fetch": "^3.3.2",
61
- "p-limit": "^4.0.0",
61
+ "p-limit": "^7.3.0",
62
62
  "packageurl-js": "~1.0.2",
63
63
  "smol-toml": "^1.6.0",
64
+ "tree-sitter-containerfile": "^0.8.1",
64
65
  "tree-sitter-gomod": "github:strum355/tree-sitter-go-mod#56326f2ad478892ace58ff247a97d492a3cbcdda",
65
66
  "tree-sitter-requirements": "github:Strum355/tree-sitter-requirements#d0261ee76b84253997fe70d7d397e78c006c3801",
66
67
  "web-tree-sitter": "^0.26.7",
@@ -68,23 +69,24 @@
68
69
  },
69
70
  "devDependencies": {
70
71
  "@babel/core": "^7.23.2",
71
- "@trustify-da/trustify-da-api-model": "^2.0.7",
72
- "@types/node": "^20.17.30",
72
+ "@eslint/js": "^10.0.0",
73
+ "@trustify-da/trustify-da-api-model": "^2.0.12",
74
+ "@types/node": "^25.9.1",
73
75
  "@types/which": "^3.0.4",
74
76
  "babel-plugin-rewire": "^1.2.0",
75
77
  "c8": "^11.0.0",
76
- "chai": "^4.3.7",
77
- "eslint": "^8.42.0",
78
+ "chai": "^6.2.2",
79
+ "eslint": "^10.4.1",
78
80
  "eslint-import-resolver-typescript": "^4.4.4",
79
- "eslint-plugin-editorconfig": "^4.0.3",
80
- "eslint-plugin-import": "^2.29.1",
81
+ "eslint-plugin-import-x": "^4.16.2",
81
82
  "esmock": "^2.6.2",
82
- "mocha": "^10.2.0",
83
+ "globals": "^17.6.0",
84
+ "mocha": "^11.7.6",
83
85
  "msw": "^2.12.7",
84
- "sinon": "^15.1.2",
85
- "sinon-chai": "^3.7.0",
86
- "typescript": "^5.1.3",
87
- "which": "^5.0.0"
86
+ "sinon": "^22.0.0",
87
+ "sinon-chai": "^4.0.1",
88
+ "typescript": "^6.0.3",
89
+ "which": "^7.0.0"
88
90
  },
89
91
  "mocha": {
90
92
  "check-leaks": false,
@@ -112,12 +114,13 @@
112
114
  "reporter": [
113
115
  "html",
114
116
  "json",
117
+ "lcov",
115
118
  "text"
116
119
  ]
117
120
  },
118
- "eslintIgnore": [
119
- "index.js"
120
- ],
121
+ "overrides": {
122
+ "tree-sitter": "0.22.4"
123
+ },
121
124
  "resolutions": {
122
125
  "@hapi/joi": "17.1.1"
123
126
  }