From 4cb0b00656a63050b2788f3db4031756932014bb Mon Sep 17 00:00:00 2001 From: ccorsin Date: Tue, 3 Oct 2023 15:18:37 +0200 Subject: [PATCH 1/2] Fix slash --- src/kms/kms.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kms/kms.ts b/src/kms/kms.ts index 8bdb7663..4c241493 100644 --- a/src/kms/kms.ts +++ b/src/kms/kms.ts @@ -1115,7 +1115,7 @@ export class KmsClient { uniqueIdentifier, userIdentifier, operationType, - "/access/grant", + "access/grant", ) } @@ -1135,7 +1135,7 @@ export class KmsClient { uniqueIdentifier, userIdentifier, operationType, - "/access/revoke", + "access/revoke", ) } @@ -1145,7 +1145,7 @@ export class KmsClient { * @returns response from KMS server */ public async listAccess(uniqueIdentifier: string): Promise { - 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, @@ -1175,7 +1175,7 @@ export class KmsClient { * @returns response from KMS server */ public async listOwnedObjects(): Promise { - return await this.listObjects("/access/owned") + return await this.listObjects("access/owned") } /** @@ -1183,7 +1183,7 @@ export class KmsClient { * @returns response from KMS server */ public async listObtainedObjects(): Promise { - return await this.listObjects("/access/obtained") + return await this.listObjects("access/obtained") } } From bf0ce54b26877bcce82897418d8c05ba0a20303d Mon Sep 17 00:00:00 2001 From: Manuthor Date: Tue, 3 Oct 2023 15:55:56 +0200 Subject: [PATCH 2/2] fix(KMS): remove starting slashes in access rights endpoints --- CHANGELOG.md | 6 ++++++ README.md | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a4e07e6..bbb2a6ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 012c41c9..ae3f9768 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/package.json b/package.json index 8f6ad6d4..6fdf2168 100644 --- a/package.json +++ b/package.json @@ -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, Pauline Hochard, Emmanuel Coste, Thibaud Dauce",