@meltstudio/meltctl 4.80.0 → 4.81.0
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/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.
|
|
17
|
+
CLI_VERSION = "4.81.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -675,6 +675,14 @@ function createFindingsResource(config2) {
|
|
|
675
675
|
throw new Error(data.error ?? `Failed to fetch findings stats (${status})`);
|
|
676
676
|
return data;
|
|
677
677
|
},
|
|
678
|
+
async getCatalog() {
|
|
679
|
+
const { data, status } = await apiFetch(config2, "/findings/catalog");
|
|
680
|
+
if (status === 403)
|
|
681
|
+
throw new Error("Access denied. Only Team Managers can view the catalog.");
|
|
682
|
+
if (status !== 200)
|
|
683
|
+
throw new Error(data.error ?? `Failed to fetch findings catalog (${status})`);
|
|
684
|
+
return data;
|
|
685
|
+
},
|
|
678
686
|
async getStatsByRepository() {
|
|
679
687
|
const { data, status } = await apiFetch(config2, "/findings/stats/by-repository");
|
|
680
688
|
if (status === 403)
|
package/package.json
CHANGED