@sonar-autofix/sonar-client 0.0.1 → 0.0.2

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 (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -35,7 +35,7 @@ class SonarClient {
35
35
  try {
36
36
  var params = {
37
37
  componentKeys: projectKey,
38
- statuses: 'OPEN,CONFIRMED,REOPENED'
38
+ statuses: 'OPEN,CONFIRMED'
39
39
  };
40
40
  if (severity) {
41
41
  params.severities = severity;
@@ -43,7 +43,9 @@ class SonarClient {
43
43
  const response = await this.axiosInstance.get(`/api/issues/search`, {
44
44
  params: params
45
45
  });
46
- return response.data;
46
+
47
+ const openIssues = response.data.issues.filter(data => data.statatus === 'OPEN');
48
+ return openIssues;
47
49
  } catch (error) {
48
50
  // Provide more detailed error information for debugging
49
51
  if (error.response) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonar-autofix/sonar-client",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Sonar client for the Sonar Autofix tool",
5
5
  "main": "index.js",
6
6
  "scripts": {