Skip to content

Commit

Permalink
chore: Merge branch 'release/v9.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuthor committed Oct 3, 2023
2 parents 5290837 + bf0ce54 commit 7ddfd8c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [9.4.1] - 2023-10-03

### Bug Fixes

- KMS: remove starting slashes in access rights endpoints

## [9.4.0] - 2023-10-03

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ From the version 8.0.0, `cloudproof_js` depends on [cloudproof_rust](https://git
| 9.1.0,9.1.1 | 2.1.0 | 4.3.0 |
| 9.2.0 | 2.2.1 | 4.5.0 |
| 9.3.0 | 2.2.3 | 4.6.0 |
| 9.4.0 | 2.2.4 | 4.7.0 |
| 9.4.0,9.4.1 | 2.2.4 | 4.7.0 |
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudproof_js",
"version": "9.4.0",
"version": "9.4.1",
"license": "MIT",
"description": "Cosmian Cloudproof javascript client library",
"author": "Bruno Grieder<[email protected]>, Pauline Hochard<[email protected]>, Emmanuel Coste<[email protected]>, Thibaud Dauce<[email protected]>",
Expand Down
10 changes: 5 additions & 5 deletions src/kms/kms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ export class KmsClient {
uniqueIdentifier,
userIdentifier,
operationType,
"/access/grant",
"access/grant",
)
}

Expand All @@ -1135,7 +1135,7 @@ export class KmsClient {
uniqueIdentifier,
userIdentifier,
operationType,
"/access/revoke",
"access/revoke",
)
}

Expand All @@ -1145,7 +1145,7 @@ export class KmsClient {
* @returns response from KMS server
*/
public async listAccess(uniqueIdentifier: string): Promise<Response> {
const listAccessUrl = new URL(`/access/list/${uniqueIdentifier}`, this.url)
const listAccessUrl = new URL(`access/list/${uniqueIdentifier}`, this.url)
const response = await fetch(listAccessUrl, {
method: "GET",
headers: this.headers,
Expand Down Expand Up @@ -1175,15 +1175,15 @@ export class KmsClient {
* @returns response from KMS server
*/
public async listOwnedObjects(): Promise<Response> {
return await this.listObjects("/access/owned")
return await this.listObjects("access/owned")
}

/**
* List objects a user has obtained access for
* @returns response from KMS server
*/
public async listObtainedObjects(): Promise<Response> {
return await this.listObjects("/access/obtained")
return await this.listObjects("access/obtained")
}
}

Expand Down

0 comments on commit 7ddfd8c

Please sign in to comment.