Skip to content

Commit c5d1584

Browse files
authored
Add organization parameters to Phylum object (#1532)
This change fixes an oversight from when org support was first added to the extension API. The new `organization` parameters were added to `extensions/phylum.d.ts` but not exposed for consumers in `cli/js/api.js`. [See commit `f890fea`](f890fea) or #1490
1 parent d34ff1e commit c5d1584

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

cli/js/api.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ export function analyze(
6363
project,
6464
group,
6565
label,
66+
organization,
6667
) {
6768
return op_analyze(
6869
packages,
6970
project,
7071
group,
7172
label,
73+
organization,
7274
);
7375
}
7476

@@ -116,20 +118,21 @@ export function getGroups() {
116118
return get_groups();
117119
}
118120

119-
export function getProjects(group) {
120-
return get_projects(group);
121+
export function getProjects(group, organization) {
122+
return get_projects(group, organization);
121123
}
122124

123125
export function createProject(
124126
name,
125127
group,
126128
repository_url,
129+
organization,
127130
) {
128-
return create_project(name, group, repository_url);
131+
return create_project(name, group, repository_url, organization);
129132
}
130133

131-
export function deleteProject(name, group) {
132-
return delete_project(name, group);
134+
export function deleteProject(name, group, organization) {
135+
return delete_project(name, group, organization);
133136
}
134137

135138
export function getPackageDetails(

extensions/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
88

99
## Unreleased
1010

11+
### Fixed
12+
13+
- Add missing `organization` parameters to global `Phylum` object endpoints
14+
1115
## 7.1.1 - 2024-10-09
1216

1317
### Changed

0 commit comments

Comments
 (0)